运行程序时出现这个错误
Server Error in '/' Application.
--------------------------------------------------------------------------------
Could not load file or assembly 'Components, Version=4.1.618.0, Culture=neutral, PublicKeyToken=123d5e346e22b535' 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.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Components, Version=4.1.618.0, Culture=neutral, PublicKeyToken=123d5e346e22b535' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Components, Version=4.1.618.0, Culture=neutral, PublicKeyToken=123d5e346e22b535' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[FileLoadException: Could not load file or assembly 'Components, Version=4.1.618.0, Culture=neutral, PublicKeyToken=123d5e346e22b535' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
[FileLoadException: Could not load file or assembly 'Components, Version=4.1.618.0, Culture=neutral, PublicKeyToken=123d5e346e22b535' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
AnyOffice.login.Page_Load(Object OOlllO, EventArgs O) +0
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
------解决方案--------------------------------------------------------
又是未能加载到什么程序集的。。。。。
看到就头晕。。。你把配置文件发出来看看···
------解决方案--------------------------------------------------------
你安装的.net framework的版本和你开发时环境的版本不一样
------解决方案--------------------------------------------------------
你看下.net framework 版本,如果没问题,那你更新一下bin文件
------解决方案--------------------------------------------------------
建议你把整个程序都生成成功了再运行。