If you are receiving a page cannot be found error when trying to view aspx pages, it can be the result of the order in which ASP.Net and IIS were installed. Follow these steps to register and allow ASP.Net.
Steps to Allow ASP.Net Pages
1) Naviagate the .Net framework directory (v2.0.50727) to get the path. Click on start then select Run. In the commandline enter the framework path with the following command. aspnet_regiis.exe -I
For example C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -I
2) From IIS go to ASP.NET tab and change the asp.net version to 2.0XXX (in IIS go to the specific virtual directory of the web application for which you are recieving this error. Right-click on it, and in the properties there will be an ASP.NET tab which you can toggle to .NET)
3) From your Run command, type inetmgr and press enter. Expand the appropriate nodes in the IIS to locate the "Webservice Extensions" Node. Click on the same. You will find a list of "prohibited" extensions in the right. Click on ASP.NET and "allow" it.
If this does not resolve your error, you may need to register the ASP.Net libararies for your Application Pool.
4) Naviagate to the Framework directory and run: aspnet_regiis.exe -ga <account running application pool>
For example: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ga "Network Service" to reregister Network Service.
Article ID: 91, Created On: 4/26/2010, Modified: 4/26/2010