gpt4 book ai didi

visual-studio - 从 VS 2013 将 Umbraco 7 部署到 Azure

转载 作者:行者123 更新时间:2023-12-02 07:37:23 25 4
gpt4 key购买 nike

当我在 VS 2013 中创建一个新的 asp.net 空 Web 应用程序项目时,安装 Umbraco 7.0.3 w/PM 并将其配置为使用 Azure 数据库,它会跳过“创建用户”部分,但工作正常。

在VS中,我将其发布到一个新的Azure网站并告诉它使用现有的数据库服务器,验证连接,在设置中没有检查文件发布选项,验证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 出现在应用程序库中,我会很高兴。

帮忙?

非常感谢。

最佳答案

您似乎忘记部署 global.asax 文件。

关于visual-studio - 从 VS 2013 将 Umbraco 7 部署到 Azure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21667983/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com