IIS, Visual Studio and unable to start debugging

I forget the fix to this every time, so posting here to remember.

First, set the Project > Web Use Local URL and fill in Override application root URL. It will want to create a virtual directory. Let it, then remove it in IIS after debugging starts.

I know there must be a better fix, but this gets it moving when in a hurry.

Facebooktwitterredditlinkedinmail
© Scott S. Nelson

Nant Newbie Notes

First issue was:

“Invalid element <msbuild>. Unknown task or datatype.”

Found the basic solution at http://www.kaizengrove.com/blog/2010/06/30/fixed-invalid-element-unknown-task-or-datatype/, which was that Nant-contrib was required for some reason. To make life easy, I just dropped the files from the bin in the contrib project into my Nant bin.

Then I hit:

[msbuild] E:DLT_SVNWebGNMA.RFS.Web.csproj(189,11): error MSB4019: The imported project “C:Program FilesMSBuildMicrosoftVisualStudiov9.0WebApplicationsMicrosoft.WebApplication.targets” was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

$(MSBuildExtensionsPath) on my 64 bit machine resolved to the path of a 32 bit machine because Nant is compiled as a 32 bit program. Argh. So:

set MSBuildExtensionsPath=C:Program Files (x86)MSBuild

Facebooktwitterredditlinkedinmail
© Scott S. Nelson