Authentication Required in Application_Start but not in Application_BeginRequest

mtbvfr

Perch
Hi All,

When attempting to write or delete a file in the Application_Start event of Global.asax I receive an "Authentication Required" message box requesting a User Id and Password.

After clicking Cancel on the Message Box I receive the following.

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 to the path "D:\hshome\mtbvfr\casas-y-terrenos.com\MapPathTest2009-06-17T21-48-03.txt" 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.

The same code works fine in the Application_BeginRequest event.

Using the H-SPHERE control panel, the "Authentication level" is set to Anonymous. "Allow read access" and "Allow write access" are both checked.

Do I need to request JodoHost to allow ASP.Net access to my directories or is there some other solution?

What version of IIS is JodoHost using?

Thanks in advance, Michael
Hospedaje Los Jardines & Sacred Valley Mountain Bike Tours
http://www.machawasi.com
Cusco Database Development and Cycling Services E.I.R.L.
http://databaseservices.blogspot.com
Cusco Travel Services
http://www.cusco-travel-services.com
Servicios de Ciclismo del Perú
http://www.servicios-de-ciclismo-del-peru.com
 
Yes, please open a support ticket or send us email with mention all details.
we are offering IIS6.0
 
Back
Top