我一直在尝试将一个新的asp.net mvc项目部署到Azure进行生产.一切都在本地工作,但我在部署时遇到组件问题.
导航到大多数页面后,我开始收到以下错误:
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Run Code Online (Sandbox Code Playgroud)
使用以下信息:https://stackoverflow.com/a/8824250/1411764我发现了异常:
Could not load file or assembly 'Microsoft.Web.Administration,
Version=7.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or
one of its dependencies. The system cannot find the file specified.
Run Code Online (Sandbox Code Playgroud)
Microsoft.Web.Administration 似乎是一个IIS程序集.
然后我Microsoft.Web.Administration使用Nuget添加到项目中.
现在我遇到了一个新的错误:
Could not load file or assembly 'Microsoft.Web.Administration' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from …Run Code Online (Sandbox Code Playgroud)