ASP.NET configuration tool in Visual Studio 2012 – error message on a new MVC project.

If you’ve just launched PROJECT->ASP.NET CONFIGURATION tool from Visual Studio 2012, and experienced this error

System.ArgumentException: The parameter ‘PhysicalDirectory’ is invalid. Parameter name: PhysicalDirectory at System.Web.Configuration.VirtualDirectoryMapping.set_PhysicalDirectory(String value) at System.Web.Configuration.VirtualDirectoryMapping..ctor(String physicalDirectory, Boolean isAppRoot) at System.Web.Administration.WebAdminPage.OpenWebConfiguration(String path, String appPhysPath, Boolean getWebConfigForSubDir) at System.Web.Administration.WebAdminPage.OpenWebConfiguration(String path, Boolean getWebConfigForSubDir) at System.Web.Administration.WebAdminPage.VerifyAppValid()

You may have a special character in your filenames. In my stituation, I had an ampersand. Move your folder and try again.

On another note – this tool just doesn’t work with MVC 4 apps created with VS2012 out of the box. See here.

Advertisements

One thought on “ASP.NET configuration tool in Visual Studio 2012 – error message on a new MVC project.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s