Error when Opening VS.NET Project Moved to New Folder
So from time to time, you need to move a Visual Studio project to a new folder to do some new fun things with it — upgrading code, replicating a project or just because. Well when you do this VS.NET doesn’t like you too much because all its references were pointing back to that original folder. In my case, I got hit with errors two fold. The first:
The local IIS URL http://[XXX] specified for Web Project [XXX] has not been configured. In order to open, the directory needs to be configured. Would you like to create a virtual directory now?
Sure Visual Studio. Knock yourself out. You Ok through only to get hit with:
Creation of the virtual directory [XXX] failed with the error: Could not find the server [XXX]. Creating a virtual directory is only supported on the local IIS server.
Couldn’t you have just saved me the extra error message and spit that out to begin with? So our culprit is the .csproj file. Open that up in text pad and scroll to the bottom. Within the WebProjectProperties XML block, there is a UseIIS node. Flip that from true to false. Save it out and you should be good to go.
