Starting Application from ASP.NET on Server Machine

N

Nusret Bajric

Hello,

I have a problem with starting a COM application from my ASP.NET application
on
the server machine. I get an error with a message permission denied during
creation of COM object.
If I start an application alone (without call through another COM DLL), it
does nothing (no process activity).
The application starts without problems from normal desktop application.

Do somebody know how cann one start such application from ASP.NET (button
click)?
 
C

Chris Jackson

Check your permissions on that object. By default, the ASP.NET worker
process (aspnet_wp.exe) runs with the user credentials ASPNET. Since most
COM objects are in-process DLLs, then your ASPNET account would need to have
the appropriate permissions to access this object, and then do anything this
object does in order to get its work done. If you want to secure things a
bit, you can use impersonation and windows authentication to launch it using
the credentials of the current user, and you can apply your ACLs based on
the groups which should be allowed to execute this application.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,807
Latest member
ryef

Latest Threads

Top