我正在创建一个供内部使用的vb.net应用程序但是,当我将.exe从开发机器上移开时,我得到的只是错误。下面是错误的一个例子。我不确定问题是什么,但程序是为.net 3.5编写和组装的,目标CPU架构是x86,只要它有.net 3.5或更新版本,它应该在任何地方工作正常,对吗?
我看到了this的问题,但是所有涉及的机器已经有了水晶报告运行时(虽然我在程序中没有做任何水晶的事情),都有.net framework 4.0这足以覆盖3.5,我不会用花哨的字体或英语以外的语言做任何事情。我还发现this似乎说错误是System.net.Sockets.Socket
类型的想法?
下面显示的错误图像是“查看问题详细信息”部分中的文本。有关此错误的任何提示?开发机器是Win 7 32位,服务器是Windows 2008 R2,64位。
Description:
Stopped working
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: joblocationchanges.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 535e814c
Problem Signature 04: System
Problem Signature 05: 2.0.0.0
Problem Signature 06: 506c18e6
Problem Signature 07: 2855
Problem Signature 08: 21
Problem Signature 09: System.Net.Sockets.Socket
OS Version: 6.1.7601.2.1.0.18.10
Locale ID: 1033
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
下面的首先是消息,然后是错误的stracktrace
"An invalid argument was supplied"
at System.Net.SafeCloseSocketAndEvent.CreateWSASocketWithEvent(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType, Boolean autoReset, Boolean signaled)
at System.Net.NetworkInformation.NetworkChange.AddressChangeListener.StartHelper(NetworkAddressChangedEventHandler caller, Boolean captureContext, StartIPOptions startIPOptions)
at System.Net.NetworkInformation.NetworkChange.add_NetworkAddressChanged(NetworkAddressChangedEventHandler value)
at Microsoft.VisualBasic.Devices.Network.add_NetworkAvailabilityChanged(NetworkAvailableEventHandler handler)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnStartup(StartupEventArgs eventArgs)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()"