2014-02-10 46 views
1

當我在VS 2013中創建一個新的asp.net空web應用程序項目時,安裝Umbraco 7.0.3 w/PM並將其配置爲使用Azure數據庫,它將跳過「創建用戶'部分,但它工作正常。從VS 2013將Umbraco 7部署到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在應用程序庫中,我會很高興。

幫助?

Thanksmuch。

回答

6

看起來你忘了部署global.asax文件。

+0

你是對的,先生。我將它添加到項目中,現在它可以工作。非常感謝。我必須去了解爲什麼不包括在內。在此期間,我能夠獲得WebMatrix發佈的版本,並且確實包含了global.asax。 – user3290948

+0

我認爲這是我們的NuGet包中的一個疏忽,我已經創建了一個「自我記錄」,以便在我們發佈新版本之前查看它。 – sebastiaan

+0

版本7.0.4上的同樣問題。很高興我發現了這篇文章。 – Jason