In my Windows 2003 server SharePoint environment, I had the dreaded task of reinstalling all of my .NET frameworks (don’t ask why). After uninstalling and reinstalling all of the .NET Frameworks (2.0, 3.0 and 3.5), I kept getting an unauthorized page for my .NET web applications that had Windows Authentication enabled (specifically SharePoint 2007):
The error I was getting was:
“You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.
If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the spdev02:88 home page.
You can click Search to look for information on the Internet.
HTTP Error 403 – Forbidden
Internet Explorer “
I first tried to re-install IIS (aspnet_regiis /i) and then tried regular HTML pages, they seemed to work but my ASP.NET 2.0 web apps were not working.
Turns out that for some reason after you re-install the .NET Frameworks, it prohibits ASP.NET 2.0 code:
Just go to Web Server extensions in IIS and allow it.
Also, make sure your IIS settings for each web application have ASP.NET properties to 2.0:
**Update**: Turns out that even when I did all of the above, I was still getting an error. I was finally able to resolve it by giving Script source access to the web application on the Home Directory IIS web application property tab. Again, don’t ask me how this setting turned off by itself.