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
New Project
ASP.NET MVC 4 Web Application
Empty [Solution template]
Open Package Manager Console
Install nuget; PM> Install-Package UmbracoCms
Build Solution
Getting my error
Note: I am installing version 7.1.1 and using Visual Studio 2012 Professional
I followed all the steps on their website, but I am still getting the error. Tho I noticed when installing Umbraco as an application, I am getting this message in the console 'Global.asax' already exists and Web.config' already exists. Skipping...
So I tried to delete all the config files and global.asax. But now I am getting a new error:
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
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)
Visual Studio 2012 and Umbraco 7
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.
Steps on how I do
Note: I am installing version 7.1.1 and using Visual Studio 2012 Professional
Hi Daniel
Did you follow the nuget installation documentation here http://our.umbraco.org/documentation/Installation/install-umbraco-with-nuget ?
Otherwise please try and double check using this.
Hope this helps.
/Jan
Hi Jan
I followed all the steps on their website, but I am still getting the error. Tho I noticed when installing Umbraco as an application, I am getting this message in the console 'Global.asax' already exists and Web.config' already exists. Skipping...
So I tried to delete all the config files and global.asax. But now I am getting a new error:
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.
Error 2
Solution
Update Visual Studio 2012 to version 4 (the newest)
Simply update everything there.
is working on a reply...