从VS 2013将Umbraco 7部署到Azure



当我在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来实现这一点,结果相同。

过去,使用Umbraco4.x,我只是在本地安装,然后在主机上安装WebMatrix,它就成功了。

我看过关于在Azure上安装v.6.x的教程,但那是关于云服务的,从darren ferguson在Azure上的视频来看,网站似乎是现在的发展方向。这不是一个巨大的网站,所以看起来Azure网站会很好。如果v.7出现在应用程序库中,我会非常高兴。

帮助?

谢谢。

看起来您忘记部署global.asax文件了。

最新更新