日期:2014-05-20  浏览次数:21188 次

C# 桌面程序运行出错,未能找到未能加载文件或程序集
是用C#写的一个桌面应用程序,在别的电脑上运行没有什么问题。
在朋友的电脑是运行就报了这样的错误,有朋友遇到过这样的情况吗?
.Net Framework 4.0 的版本

C# code

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。



************** 异常文本 **************


System.IO.FileNotFoundException: 
未能加载文件或程序集“System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。系统找不到指定的文件。文件名:“System.Web, Version=4.0.0.0, Culture=neutral, 

PublicKeyToken=b03f5f7f11d50a3a”
   
在 WWMate.NotificationIcon.ParseCustomerNick(String url)
   
在 WWMate.NotificationIcon.EnumChildWindowsCallBack(IntPtr handle, IntPtr lparam)
   
在 WWMate.NotificationIcon.EnumChildWindows(IntPtr hwndParent, EnumChildrenCallback lpEnumFunc, IntPtr lParam)
   
在 WWMate.NotificationIcon.EnumChildWindowsCallBack(IntPtr handle, IntPtr lparam)
   
在 WWMate.NotificationIcon.EnumChildWindows(IntPtr hwndParent, EnumChildrenCallback lpEnumFunc, IntPtr lParam)
   
在 WWMate.NotificationIcon.EnumChildWindowsCallBack(IntPtr handle, IntPtr lparam)
   
在 WWMate.NotificationIcon.EnumChildWindows(IntPtr hwndParent, EnumChildrenCallback lpEnumFunc, IntPtr lParam)
   
在 WWMate.NotificationIcon.EnumChildWindowsCallBack(IntPtr handle, IntPtr lparam)
   
在 WWMate.NotificationIcon.EnumChildWindows(IntPtr hwndParent, EnumChildrenCallback lpEnumFunc, IntPtr lParam)
   
在 WWMate.NotificationIcon.EnumChildWindowsCallBack(IntPtr handle, IntPtr lparam)
   
在 WWMate.NotificationIcon.EnumChildWindows(IntPtr hwndParent, EnumChildrenCallback lpEnumFunc, IntPtr lParam)
   
在 WWMate.NotificationIcon.EnumChildWindowsCallBack(IntPtr handle, IntPtr lparam)
   
在 WWMate.NotificationIcon.EnumChildWindows(IntPtr hwndParent, EnumChildrenCallback lpEnumFunc, IntPtr lParam)
   
在 WWMate.NotificationIcon.EnumChildWindowsCallBack(IntPtr handle, IntPtr lparam)
   
在 WWMate.NotificationIcon.EnumChildWindows(IntPtr hwndParent, EnumChildrenCallback lpEnumFunc, IntPtr lParam)
   
在 WWMate.NotificationIcon.EnumChildWindowsCallBack(IntPtr handle, IntPtr lparam)
   
在 WWMate.NotificationIcon.LoadFlowForm()
   
在 WWMate.NotificationIcon.Timer1Tick(Object sender, EventArgs e)
   
在 System.Windows.Forms.Timer.OnTick(EventArgs e)
   
在 System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


警告: 程序集绑定日志记录被关闭。
要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD)设置为 1。

注意: 会有一些与程序集绑定失败日志记录关联的性能损失。
要关闭此功能,请移除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。



------解决方案--------------------
怀疑报错电脑不是 .Net Framework 4.0 的版本

------解决方案--------------------
你朋友的电脑有.netframework?