All is okay with this approch, but when a developer try to use localhost as ASP.NET development, Visual studio 2005 will not create site on localhost and gives an error. In this article, I am presenting a approch for resolving this issue.
Issue with creating ASP.NET site on SPS extended web application
Resolution
For resolving this issue, We have to create another web application on IIS on same port (If you want to use same). Steps are here
1. Create a physical directory on file system.
- This directory will be used for mapping IIS web application. I have create 'ASPNETROOT' directory under C:\Inetpub by giving command "md C:\Inetpub\Aspnetroot".
2. Create a new web application on IIS
- Start -> Run -> inetmgr
- Right click on Web sites in Inetmgr
- New -> Web Site
- Press Next
- Put path of newly created directory in step one. In my case it is C:\Inetpub\Aspnetroot. and press next
- Fill discripation. I choose ASP.NET Site. Press next
- Fill header value. Don't leave it blank. I filled in my case ASPDOTNET. Press Next
- Press Next
- Press Finish.
Pictures are here for your reference.
3. Make it entry in hosts file
- you can locate 'hosts' file in C:\
\system32\drivers\etc folder. Note that this file does not have any extension and it is only a plan text file. you can open it with notepad. - You have to add you new wesite in this file
- reset IIS by command iisreset.
Create your ASP.NET apps on newly created web application instead of localhost.