ASP.NET 2.0 Server Application Unavailable
- Posted in:
- ASP.NET
I just spent half an hour diagnosing an issue, and was about to give up when I finally solved it. I wanted to save anyone else out there the time.... I just installed VS 2005 RC1 to start playing with .NET 2.0 in earnest, specifically to ensure SlickUpload compatibility. Lo and behold, when I tried to run a 2.0 website in IIS, I get this big red "Server Application Unavailable" error, with a pointer to the event viewer. When I looked in the event viewer, this is what I saw -- "Failed to execute the request because the ASP.NET process identity does not have read permissions to the global assembly cache." I fiddled around with the GAC a bit, found out that I needed to unregister SHFusion.dll to be able to set permissions, made sure the permissions were set, and still nothing.
The fix? ASPNET didn't have permission to the application directory. As soon as I gave it permission, viola, it worked. Why can't Microsoft finally start using error messages that actually make sense? Arrgh.
Comments
How can I unregister SHFusion.dll?
jsc0624For this fix, you don't actually have to. But if you want to for some other reason, use regsvr32 from the command line, something like: "regsvr32 -u shfusion.dll". (remember to cd to or put in the proper path to the dll). You can then reregister it like this: "regsvr32 shfusion.dll".
Chris Hynes