I'm trying to run an ASP.NET 2.0 application on an XP machine. As far as I know, everything is configured correctly. However, I receive the following message:
Server Application Unavailable
And two events appear in the Application event log each time:
aspnet_wp.exe (PID: 3352) stopped unexpectedly.
Failed to execute the request because the ASP.NET process identity does not have read permissions to the global assembly cache. Error: 0x80070005 Access is denied.
Previously, ASP.NET applications worked fine on this machine.
I've tried the following steps, with no luck:
I'm not sure what else I can do!
Using Process Monitor led me directly to the problem. Many thanks to Mun for the tip.
It was quite an obscure issue: I had previously used the assembly binding log viewer (fuslogvw.exe) and set it to log all binds to disk using the custom path option. However, the ASPNET account did not have permissions to that custom path. So, reverting to using the default path resolved the issue. Granting read/write permissions on that custom path to the ASPNET account also works, as does disabling bind logging.
You might also find Process Monitor useful for troubleshooting these types of problems. If you set-up a filter to show all activity containing aspnet_wp.exe, it should show you which files it's attempting to access, allowing you to update the permissions accordingly.
Here are the necessary permissions: http://msdn.microsoft.com/en-us/library/kwzs111e.aspx
More info: http://support.microsoft.com/default.aspx?kbid=811320
The commands you've run should be enough, but it's worth checking :)
I know it is too late to answer this. I also had this same issue today. I ran the below in the command prompt and it fixed the issue
aspnet_regiis -ga machinename\ASPNET
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With