Click here to Skip to main content
15,881,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a code which is working perfectly fine when i host it as a webapplication in default website.
When i host it as a seperate website, it throws me

XML
Server Error in '/' Application.
--------------------------------------------------------------------------------

Login failed: The password is not valid for this login ID.
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: Login failed: The password is not valid for this login ID.

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.


->Its on windows 2008 R2 server with IIS 7.5
->We are using anonymous access to apppool identity.
->I have tried giving access to IUSR, IIS_USRS, ASPNET, {apppool} to the application folder, wwwroot folder.
->My app pool is running under applicationpoolidentity.
->The code is in asp.net 1.1 framework.


Any idea what else I am missing here?

Any help appreciated.

Thanks,
Manognya.K
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900