【问题标题】:Deploy Umbraco 7 to Azure from VS 2013从 VS 2013 将 Umbraco 7 部署到 Azure
【发布时间】: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


    【解决方案1】:

    您好像忘记部署 global.asax 文件了。

    【讨论】:

    • 您说得对,先生。我将它添加到项目中,现在它可以工作了。非常感谢。我得去了解为什么不包括在内。在此期间,我能够让 WebMatrix 发布的版本正常工作,它确实包含 global.asax。
    • 我认为这是我们 NuGet 包的疏忽,我为此创建了一个“自我说明”,以便在我们发布新版本之前检查一下。
    • 在 7.0.4 版上出现同样的问题。很高兴我找到了这篇文章。
    • 我也一直在努力解决这个问题(7.0.4)。添加 global.asax 为我修复了它。也很高兴找到这篇文章...
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-03
    • 2018-01-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多