【发布时间】:2016-02-08 04:37:16
【问题描述】:
我已将我的 ASP.Net MVC 5 应用程序部署到 Azure Web 应用程序。在我昨天添加 Application Insights 之前,一切都运行良好。从那时起,每次尝试发布我的site 都会导致解析错误。我已经查看了应用程序日志和遥测,但无法辨别事情是如何出错的。是否需要对 global.asax 进行特定更改才能使 Application Insights 正确放置?
更新: 发现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#" %>
【问题讨论】:
-
请详细说明您遇到的解析错误。
标签: c# asp.net asp.net-mvc azure azure-web-app-service