I'm using a COM object in a web app that needs to write temporary files to disk then delete them.
Once the COM object tires to write to disk I get the folloing message:
Server Error in '/' Application.
--------------------------------------------------------------------------------
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.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
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 appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
The COM Object is trying to write to c:\temp. I've given the ASPNET account full rights to the folder. I've tried setting up the site using both anonymous and non-anonymous access. I tired giving the COM .dll in question filesystemIO permissions in the .net configuration tool but it won't let me because it says the file is not an assembly.
None of these things work. What else can I try or am I SOL and this COM dll is untrusted and cannot write to disk?
--Rick
Once the COM object tires to write to disk I get the folloing message:
Server Error in '/' Application.
--------------------------------------------------------------------------------
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.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
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 appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
The COM Object is trying to write to c:\temp. I've given the ASPNET account full rights to the folder. I've tried setting up the site using both anonymous and non-anonymous access. I tired giving the COM .dll in question filesystemIO permissions in the .net configuration tool but it won't let me because it says the file is not an assembly.
None of these things work. What else can I try or am I SOL and this COM dll is untrusted and cannot write to disk?
--Rick