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#" %>
请详细说明您所得到的分析错误。 – TylerOhlsen
[/'应用程序中的解析器错误:服务器错误]的可能重复(http://stackoverflow.com/questions/11596352/parser-error-server-error-in-application) – TylerOhlsen