具体说明:1个老程序能在某台机器运行, 我做了下小的修改, 然后发过去, 运行提示如下错误2010-08-06 22:04:43 System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. 系统找不到指定的文件。
File name: 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
at BaiduRobot.CHTTPWow.GetNewUserAgent()
at BaiduRobot.Form1.StartSeek()
File name: 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
at BaiduRobot.CHTTPWow.GetNewUserAgent()
at BaiduRobot.Form1.StartSeek()
可能是版本build版本号小于编译的版本,或是文件被删除了。
提示信息已经很清楚了,找不到3.5.0.0的Framework!你这台机器是否安装了.NET framework 3.5
你的程序如果没有用到.net 3.5就在编译程序时,选择2.0的进行编译,然后再试试看?
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].
--------------------------------
这个也是错误吗?