【问题标题】:Error when running app after building: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common构建后运行应用程序时出错:无法加载文件或程序集'Microsoft.Practices.EnterpriseLibrary.Common
【发布时间】:2012-08-14 09:22:15
【问题描述】:

我有一个 asp.net 应用程序,当我构建应用程序然后运行它时,我收到以下服务器错误:

无法加载文件或程序集“Microsoft.Practices.EnterpriseLibrary.Common, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或其依赖项之一。找到的程序集的清单定义与程序集引用不匹配。 (HRESULT 异常:0x80131040)

说明:在执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

Source Error:

Line 25:     <form id="form1" runat="server" dir="rtl" >
Line 26:     <div>
Line 27:     <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="3600" >
Line 28:       <Services>
Line 29:        <asp:ServiceReference Path="~/myService.asmx" InlineScript="true"/>

这发生在我在构建后第一次运行应用程序时,如果我在浏览器中刷新页面或再次运行它而不重新构建,我不会收到错误消息。 有谁知道为什么会发生这种情况以及如何解决这个问题?

【问题讨论】:

    标签: asp.net .net web-applications enterprise-library .net-assembly


    【解决方案1】:

    在这里查看小编最后的推荐:http://entlib.codeplex.com/discussions/363098

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多