[英]Visual Studio 2012 and Umbraco 7
我正在尝试从Visual Studio 2012中的NuGet安装干净的Umbraco安装,但是当我尝试运行代码时,出现此错误
你调用的对象是空的。
[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
我的步骤
注意:我正在安装7.1.1版并使用Visual Studio 2012 Professional
在将Umbraco cms安装到现有VS MVC4项目之前,必须删除
有关更多详细信息,请参阅链接http://umbraco.tv/videos/developer/fundamentals/surface-controllers/setting-up-the-vs-solution/
您还可以按照以下步骤设置Umbraco 7应用程序,
感谢所有人提供的替代解决方案,我只是发现这种情况不起作用是因为我需要为其新更新版本4更新Visual Studio 2012。
因此,如果有人在尝试通过Visual Studio 2012安装Umbraco 7时遇到此类错误
错误1
你调用的对象是空的。
[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
错误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
解
将Visual Studio 2012更新到版本4(最新)
只需在那里更新所有内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.