【发布时间】:2014-02-10 14:14:22
【问题描述】:
当我在 VS 2013 中创建一个新的 asp.net 空 Web 应用程序项目时,安装带有 PM 的 Umbraco 7.0.3 并将其配置为使用 Azure 数据库,它会跳过“创建用户”部分,但它工作正常。
在VS中,我将它发布到一个新的Azure网站并告诉它使用现有的数据库服务器,验证tne连接,在设置中没有检查文件发布选项,验证DSN,检查使用这个连接字符串并更新数据库,它说它成功完成,但是当它在浏览器中打开站点时,我收到错误:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[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
我这几天一直在搞这个,有人指点吗?我只是一个实施者,对错误一无所知。
我也尝试通过 WebMatrix 本地安装并发布到 Azure,结果相同。
过去,使用 Umbraco 4.x,我只是在本地安装,然后在主机上使用 WebMatrix,它就可以工作了。
我经历了在 Azure 上安装 v.6.x 的过程,但那是使用云服务,从 darren ferguson 在 Azure 上的视频看来,网站是现在要走的路。这不适用于大型网站,因此看起来 Azure 网站就可以了。如果 v.7 在应用程序库中,我会很高兴。
帮助?
非常感谢。
【问题讨论】:
标签: visual-studio azure umbraco