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:
00715513
Views:
11
Evan,

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:")
>
>********************************
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform