使用mysql的vb和c#程序正在W7
或W8.1
从网络共享上运行。但是当我尝试在Windows更新后运行W10 时,我收到此错误:
Exception Info: System.Net.Sockets.SocketException
at System.Net.Sockets.Socket..ctor(System.Net.Sockets.AddressFamily, System.Net.Sockets.SocketType, System.Net.Sockets.ProtocolType)
at MySql.Data.Common.MyNetworkStream.CreateSocketStream(MySql.Data.MySqlClient.MySqlConnectionStringBuilder, System.Net.IPAddress, Boolean)
at MySql.Data.Common.MyNetworkStream.CreateStream(MySql.Data.MySqlClient.MySqlConnectionStringBuilder, Boolean)
at MySql.Data.Common.StreamCreator.GetStream(MySql.Data.MySqlClient.MySqlConnectionStringBuilder)
at MySql.Data.MySqlClient.NativeDriver.Open()
Exception Info: MySql.Data.MySqlClient.MySqlException
at MySql.Data.MySqlClient.NativeDriver.Open()
at MySql.Data.MySqlClient.Driver.Open()
at MySql.Data.MySqlClient.Driver.Create(MySql.Data.MySqlClient.MySqlConnectionStringBuilder)
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlConnection.Open()
事件查看器显示两个应用程序错误。 第一个错误:
Application: XX.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Net.Sockets.SocketException
at System.Net.Sockets.Socket..ctor(System.Net.Sockets.AddressFamily, System.Net.Sockets.SocketType, System.Net.Sockets.ProtocolType)
at MySql.Data.Common.MyNetworkStream.CreateSocketStream(MySql.Data.MySqlClient.MySqlConnectionStringBuilder, System.Net.IPAddress, Boolean)
at MySql.Data.Common.MyNetworkStream.CreateStream(MySql.Data.MySqlClient.MySqlConnectionStringBuilder, Boolean)
at MySql.Data.Common.StreamCreator.GetStream(MySql.Data.MySqlClient.MySqlConnectionStringBuilder)
at MySql.Data.MySqlClient.NativeDriver.Open()
Exception Info: MySql.Data.MySqlClient.MySqlException
at MySql.Data.MySqlClient.NativeDriver.Open()
at MySql.Data.MySqlClient.Driver.Open()
at MySql.Data.MySqlClient.Driver.Create(MySql.Data.MySqlClient.MySqlConnectionStringBuilder)
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlConnection.Open()
at FC.DBCon.DoConnect(System.String, Boolean)
at FC.DBCon.Connect(Int32, Boolean, System.String)
at FC.DBCon.Connect(System.String)
at FC.Login.Initialize(System.String, FC.DBCon, MySqlData.myData)
at XX.Program.Main()
第二个错误:
Faulting application: XX.exe, version : 1.0.0.0, time stamp: 0x5acef816
Faulting module: KERNELBASE.dll, version : 10.0.17134.1, time stamp: 0x149ab0fd
Exception code: 0xe0434352
Fault offset 0x0010d722
Fault proses id: 0x1668
Fault application start time: 0x01d3ec19c067bf50
Faulting application path: \\192.168.1.5\programs\global\XX.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 764d5d02-01a4-43dd-a02c-8162f8a3af23
Faulting package full name:
Faulting package-relative application ID:
任何其他.net
程序都可以在没有来自同一网络共享的任何错误的情况下运行。有人可以帮忙吗?