2015-11-06 23 views
1

我已將我的ASP.Net MVC 5應用程序部署到Azure Web Apps。直到昨天我添加了應用程序洞察之前,所有工作都很好。此後,每次嘗試發佈我的site都會導致分析錯誤。我已經回顧了應用程序日誌和遙測,但無法辨別事情是如何發生錯誤的。是否需要對global.asax進行特定更改才能使Application Insight放置良好?發佈到Azure之後的Global.asax中的解析錯誤

更新: 我發現web項目屬性Assembly Name被意外修改(菜鳥移動)。我已經改變它,清理,重建,發佈都無濟於事。解析錯誤的輸出是:

Parser Error Message: The type 'MobileFirst452.MvcApplication' is ambiguous: 
it could come from assembly 'D:\home\site\wwwroot\bin\licationSeri.DLL' or 
from assembly 'D:\home\site\wwwroot\bin\MobileFirst452.DLL'. Please specify 
the assembly explicitly in the type name. 

我從bin文件夾中刪除了內容。是global.asax內容如下:

<%@ Application Codebehind="Global.asax.cs" 
Inherits="MobileFirst452.MvcApplication" Language="C#" %> 
+0

請詳細說明您所得到的分析錯誤。 – TylerOhlsen

+0

[/'應用程序中的解析器錯誤:服務器錯誤]的可能重複(http://stackoverflow.com/questions/11596352/parser-error-server-error-in-application) – TylerOhlsen

回答

0

發佈上述更新後,我回顧部署到Azure中的文件。我刪除了導致錯誤的DLL,現在可以完成對網站的測試。致智者:在發佈之前檢查項目屬性,以防萬一出現意外輸入錯誤。

相關問題