U4-7161 - New Umbraco 7.3 installation with nuget does not properly create the web.config

Created by Craig H 29 Sep 2015, 15:59:10 Updated by Steven 03 Mar 2017, 18:29:50

I followed the instructions as per here: https://our.umbraco.org/documentation/Getting-Started/Setup/Install/install-umbraco-with-nuget

Visual Studio 2013 > New project > Web > ASP.NET Web Application Then an Empty solution with no check boxes selected, followed by an install of UmbracoCMS.

I end up with the error: Cannot create an MVC Area path without the umbracoPath specified

I added the path to the web.config, but then receive the error: No membership provider found with name UsersMembershipProvider

The web.config looks very sparse in comparison to the web.template.config on github, and this issue previous reported sounds very similar: http://issues.umbraco.org/issue/U4-6052

edit: I've attached the resultant web.config with only my addition of "umbracoPath" to the app settings.

1 Attachments

Download Web.config


Sebastiaan Janssen 30 Sep 2015, 11:19:09

Sorry, just tried your steps and can't reproduce this at all.

Maybe check that you have the latest service pack for VS installed and that NuGet is up to date (Tools > Extensions and Updates). If you're running Resharper 8.1 then disable it when doing an install (or just upgrade to 8.2.2 at least in which nuget problems were fixed).

Sebastiaan Janssen 30 Sep 2015, 11:20:09

Just FYI: the config transform that is automatically done by NuGet has obviously failed as most Umbraco stuff is missing from there. I don't know why it did but that is the cause of the problem.

Craig H 30 Sep 2015, 11:43:47

I do have the latest service pack, and NuGet version (there was a new version of NuGet just a day or two ago I think). I am not running Resharper.

Sebastiaan Janssen 30 Sep 2015, 11:53:30

Sorry, it works on all the machines we've tested this on (same setup, VS13, choosing the same options). Has to be something in your environment that's misbehaving. Can you zip up the new solution, upload it somewhere and add a link so I can download it? Maybe I can quickly see the cause of the problem.

Craig H 30 Sep 2015, 13:39:11

My apologies I guess - I can't get it to fail now. I have created new solutions to test various scenarios, like using the console rather than the package manager UI, but each time I have tried it, the web.config was successfully created.

The only difference between today and yesterday is that during the install yesterday it asked me whether I wanted to overwrite the web.config (which I answered Yes to), but it appears the config was never overwritten. Today during the install process I was never asked whether I wished to overwrite the web.config, but it has been updated.

Sebastiaan Janssen 30 Sep 2015, 13:44:07

NuGet fails randomly sometimes.. it sucks :-)

Steven 03 Mar 2017, 18:29:50

I was able to reproduce this, the error was related to nuget not being able to run powershell scripts and running visual studio as a limited user. I set powershell to be able to using the command: Set-ExecutionPolicy RemoteSigned and then had to run visual studio as administrator to get umbraco to transform the web.config correctly.

Priority: Normal

Type: Bug

State: Can't Reproduce


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.3.0

Due in version:


Story Points: