On attempting to check out a project in VS2008, I got the following message:
The local IIS URL http://localhost/ specified for Web project DemoWebsite has not been configured. In order to open this project the virtual directory needs to be configured. Would you like to create the virtual directory now?
On clicking yes, I got the following error:
Creation of the virtual directory http://localhost/ failed with the error: The URL 'http://localhost/' is already mapped to a different folder location.
The rest of the solution checked out all right, but the above project did not; it was marked as unavailable. I right-clicked the project node in the solution explorer and selected the option to edit the project (.csproj) file. Near the bottom of the file, I found the following:
<iisurl>http://localhost/</iisurl>
I edited this entry to add a virtual directory:
<iisurl>http://localhost/myapp</iisurl>
Having saved the change, I then right-clicked the project node in the solution explorer again and reloaded the project. When I was prompted to create the virtual directory again, the creation was successful and the project checked out. The virtual directory is created under the running web site in IIS (on Windows XP).
Tuesday, 8 July 2008
Subscribe to:
Post Comments (Atom)
22 comments:
Neil, thanks to you simple explanation, I was able to resolve it in a matter of minutes. Thank you.
This worked like a charm for me too, thanks for sharing this info!!
Saras
Glad to be of assistance!
THANK YOU!!!
I was unable to find IISUrl tag in the .csproj file. Though I manually added this and it worked.
Thanks
Worked brilliantly. Many thanks
Thanks Neil, this works, I was able to solve my problem.
Thanks a lot of you..
Thank you so much. This solved my issue.
Thank you! This solved my issue I was having.
Thank you so much Neil. Appreciate your knowledge sharing.
Thanks Neil. Appreciate your knowledge sharing.
great work; thanks Neil ;)
thanks Neil. That did the trick here also. I'm converting an app written in VS 2005 to VS 2010 and had same problem.
Thanks
Struggling from 2 days and only your one suggestion worked for me.
keep it up the good work for people like me.
Thanks , you saved my day
Thanx,I got my problem solved by editing the tag that you have mentioned as per requirement.
Sweet Neil. Good work.
Thanks Neil.. Great job.. it WORKS!!!
Thankz..Worked like a charm..!!!
Thankz a ton..!!
Thanks Neil!
Thanks a lot..!!! I went through a lot of websites before I ended up here. Your solution is so simple and effective, and does not even require installing tons of useless software. Keep up the good work!
Thanks Buddy.....Worked like a charm......
Post a Comment