0

我有一個asp.net應用程序,當我構建應用程序並運行它時,出現以下服務器錯誤:構建後運行應用程序時出錯:無法加載文件或程序集'Microsoft.Practices.EnterpriseLibrary.Common

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

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"/> 

這happend在我第一次建成後運行該應用程序,如果我刷新頁面在瀏覽器或不重建我沒有得到錯誤再次運行。 有沒有人知道爲什麼會發生這種情況,以及如何解決這個問題?

回答

相關問題