Sunday, August 23, 2015

Registering the ASP.Net with IIS server on new server

1. Install 4.5 framework 
2. Get IIS feature enabled 
3. Open inetmgr - check if "ISAPI filter and CGI restrictions" is visible, if not :
a.       32 BIT: C:\Windows\Microsoft.NET\framework

b.      64 BIT: C:\Windows\Microsoft.NET\Framework64

4. Pick both the 2.0 and 4.0 versions and open cmd in admin mode

5. CD C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
5. aspnet_regiis -i
6. CD C:\Windows\Microsoft.NET\Framework64\v2.0.50727\
7. aspnet_regiis –i










8. Once the ASP.Net is installed in IIS, you will see ASP.Net 4.0 Application pools in the IIS server












10. Now hosting a web service post upgration of .net framework version and browsing on a browser give the following error:
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.

11. Now the ASAPI filter and CGI Restrictions option will be visible.








12. Change the restriction level to Allowed for Framework 4.0


CREDITS: aspsnippets.com and other web sites which I refered.

No comments:

Post a Comment