I've developed a simple ASP.NETwebapplication on my local machine here. I then tried to upload the application to a remote server. I created a virtual folder for the webapp and copied all the required files but it will not run. The live server is part of a domain.
the error is:
Server Error in '/Novopharm' Application.
------------------------
Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\novopharm\58021e02\ccaac3e2" 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 to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\novopharm\58021e02\ccaac3e2" 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.
----------------------
I've given access to every user that appears in a webapp on the sam server and i am still getting the error. There is one user account that shows up in the working webapp permissions list as "Account Unknown" . Which is probably the account i need to give access to but i have no idea how. Any ideas are greatly appreciated!! Thanks!
rwI have had an error like this and basically it was caused by an admin who was non familiar with .NET installing IIS after the .NET framework and so the necessary permissions to the framework dirs etc are not available to the ASP.NET user from IIS.
You can try and set these manually and there are guides in MSDN, however it was quicker for us to uninstall both and reinstall correctly
Hope you get it working
Jeff :-))
Ok after tearing my hair out for a couple of days i discovered that webapp temp folders in the System .Net folder don't magically create themselves when you copy a webapp over to a different server... DOH! I've seen alot of people asking about this problem..
When you see that error i posted above check to see that the:
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\yourwebappname
folder does actually exist on the server you are copying over to. if not, create it and give ASPNET account access to it. That will resolve this issue.
rw
0 comments:
Post a Comment