I am trying to install a clean Umbraco installation from NuGet in Visual Studio 2012, but when I am trying to run the code I get this error
Object reference not set to an instance of an object.
[NullReferenceException: Object reference not set to an instance of an object.]
Umbraco.Web.UmbracoModule.BeginRequest(HttpContextBase httpContext) +16
Umbraco.Web.UmbracoModule.<Init>b__8(Object sender, EventArgs e) +253
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
Steps on how I do
Note: I am installing version 7.1.1 and using Visual Studio 2012 Professional
Before installing Umbraco cms to an existing VS MVC4 project you have to delete
For more details please refer link http://umbraco.tv/videos/developer/fundamentals/surface-controllers/setting-up-the-vs-solution/
You can also setup an Umbraco 7 Application by following the steps below,
Thanks everyone for the alternative solutions, I simply found out that the case it didn't work is because I needed to update Visual Studio 2012 for their new update, version 4.
So if anyone is getting this kind of errors trying to install Umbraco 7 through Visual Studio 2012
Error 1
Object reference not set to an instance of an object.
[NullReferenceException: Object reference not set to an instance of an object.]
Umbraco.Web.UmbracoModule.BeginRequest(HttpContextBase httpContext) +16
Umbraco.Web.UmbracoModule.<Init>b__8(Object sender, EventArgs e) +253
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
Error 2
The view '/umbraco/install/views/index.cshtml' or its master was not found or no view engine supports the searched locations. The following locations were searched:
/umbraco/install/views/index.cshtml
Solution
Update Visual Studio 2012 to version 4 (the newest)
Simply update everything there.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.