Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Calling a COM (exe) file from Webservice

Reply
Thread Tools

Calling a COM (exe) file from Webservice

 
 
Jason Wager
Guest
Posts: n/a
 
      11-14-2003
Hello,

I have a programme made in VB6 that I need to reference from a web service.
I tried it from a .NET windows application and it worked perfectly. When I
try it from a web service, though, it does not work at all. It does not give
any error, only a "the page cannot be reached" fault in the web service
(when using post).

I can call VB6 COM components from the .NET web service provided they are
dll-files, but not the one that is an exe-file.

As it works perfectly well from a windows application, it seems it must be a
security issue. Where would I change it so that I can access files of this
type. I have the project from my own computer and log in as an
administrator, but to no avail.

I hope the description of the problem is clear enough, and I hope somebody
knows an answer that can help me.

Thank you in advance,
Jason


 
Reply With Quote
 
 
 
 
Jason Wager
Guest
Posts: n/a
 
      11-14-2003
I found out, when doing it as a web application (instead of web service),
that I got an error message:

Security Exception
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.

Exception Details: System.Security.SecurityException: Permission denied


The problem here is that I have no idea of what to write in the config file
here.

Any answers or pointers to where I can find answers are very wellcome.

Sincerely,
Jason


 
Reply With Quote
 
 
 
 
Jason Wager
Guest
Posts: n/a
 
      11-15-2003
For others who might have same problem or otherwise interested.

Problem:
I could not create an ActiveX object on the ASP .NET page unless using
Impersonate in the web.config. When I wanted to create a COM object that in
itself created an ActiveX object, that was not enough.

The solution to this problem was to give aspnet_wp the rights to the ActiveX
component through the dcomcfng.exe.

This might pose some security issues. Does anybody have any thoughts on
this?

Sincerly,
Jason



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista ASP .Net 1 01-26-2006 12:05 PM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista ASP .Net Web Services 0 01-26-2006 08:14 AM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista ASP .Net 0 01-26-2006 08:13 AM
Calling a webservice from a webservice bgauvey@gmail.com ASP .Net Web Services 2 04-20-2005 02:02 PM
Webservice calling a webservice.....Error Peter Nordström ASP .Net Web Services 0 10-21-2003 12:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57