Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access Denied for COM EXE
Message
General information
Forum:
ASP.NET
Category:
Installation, Setup and Configuration
Miscellaneous
Thread ID:
00715493
Message ID:
00715682
Views:
11
Hi Cathi. I got it working, using this method (from Ricks' Internet app book pages 116-118). Wasn't working right away, but after a reboot it started.

Thanks for your patience.

>Run Dcomcnfg.exe and grant aspnet, launch and access permissions to your out-proc COM server.
>
>>I tried to get impersonation working, but no luck so far.
>>
>>Here is an interesting tidbit though. If I recompile a working COM DLL into a COM EXE, reset IIS, copy it up to the webserver, then register it, I get the same error as below. All files in the folder have the same security settings, but there is something different about it being a COM EXE.
>>
>>>Have you tried impersonation to make sure that works? My thinking is that there is more than one file that needs the rights. You could have dependancy files that also need to have the security rights set. Here is a message that explains how to setup impersonation - Message #682735
>>>
>>>>I get the following error on line 158 (below) when I try to access a COM EXE. I followed the instructions and given that user write access, then rebooted, but still get the same error. Any ideas?
>>>>
>>>>********************************
>>>>Access is denied.
>>>>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
>>>>
>>>>Exception Details: System.UnauthorizedAccessException: Access is denied.
>>>>
>>>>The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is '{machinename}\ASPNET', which has limited privileges. Consider granting access rights to the resource to the ASP.NET process identity.
>>>>
>>>>To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the "{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the Write box in the Allow column.
>>>>
>>>>Source Error:
>>>>
>>>>
>>>>Line 156:		{
>>>>Line 157:			string lcPDFName;
>>>>Line 158:			ReportMaker oRep = new ReportMaker();
>>>>Line 159:			lcPDFName = oRep.DO("COMPANYS","");
>>>>Line 160:			if (lcPDFName == "ERROR:")
>>>>
>>>>********************************
Previous
Reply
Map
View

Click here to load this message in the networking platform