• <legend id='ifgg3'><style id='ifgg3'><dir id='ifgg3'><q id='ifgg3'></q></dir></style></legend>
      <i id='ifgg3'><tr id='ifgg3'><dt id='ifgg3'><q id='ifgg3'><span id='ifgg3'><b id='ifgg3'><form id='ifgg3'><ins id='ifgg3'></ins><ul id='ifgg3'></ul><sub id='ifgg3'></sub></form><legend id='ifgg3'></legend><bdo id='ifgg3'><pre id='ifgg3'><center id='ifgg3'></center></pre></bdo></b><th id='ifgg3'></th></span></q></dt></tr></i><div id='ifgg3'><tfoot id='ifgg3'></tfoot><dl id='ifgg3'><fieldset id='ifgg3'></fieldset></dl></div>
      1. <tfoot id='ifgg3'></tfoot>

        <small id='ifgg3'></small><noframes id='ifgg3'>

        • <bdo id='ifgg3'></bdo><ul id='ifgg3'></ul>
      2. 在 Windows 10 更新 1803 后,我的程序从网络共享运行时无法打开套接字

        After Windows 10 update 1803 my program can#39;t open a socket when running from network share(在 Windows 10 更新 1803 后,我的程序从网络共享运行时无法打开套接字)

        <small id='Hj8rE'></small><noframes id='Hj8rE'>

          <bdo id='Hj8rE'></bdo><ul id='Hj8rE'></ul>
          <i id='Hj8rE'><tr id='Hj8rE'><dt id='Hj8rE'><q id='Hj8rE'><span id='Hj8rE'><b id='Hj8rE'><form id='Hj8rE'><ins id='Hj8rE'></ins><ul id='Hj8rE'></ul><sub id='Hj8rE'></sub></form><legend id='Hj8rE'></legend><bdo id='Hj8rE'><pre id='Hj8rE'><center id='Hj8rE'></center></pre></bdo></b><th id='Hj8rE'></th></span></q></dt></tr></i><div id='Hj8rE'><tfoot id='Hj8rE'></tfoot><dl id='Hj8rE'><fieldset id='Hj8rE'></fieldset></dl></div>

              1. <tfoot id='Hj8rE'></tfoot>
                  <legend id='Hj8rE'><style id='Hj8rE'><dir id='Hj8rE'><q id='Hj8rE'></q></dir></style></legend>
                    <tbody id='Hj8rE'></tbody>
                  本文介绍了在 Windows 10 更新 1803 后,我的程序从网络共享运行时无法打开套接字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在 Windows 10 中的共享文件夹中运行一些自行编写的 Winforms .net 3.5 应用程序.

                  I am running some self written Winforms .net 3.5 applications from a shared folder in Windows 10.

                  一切正常,但在上次大更新 (1803) 之后,应用程序不再启动.

                  Everything worked correctly, but after the last big update (1803) the application doesn't start any more.

                  似乎程序在尝试打开套接字时崩溃了.第一个问题是访问数据库时出现以下异常:

                  It seems that the program is crashing in the moment it is trying to open a socket. The first problem was when accessing the database it got the following exception:

                  2018-05-03 14:36:32,314 [1] ERROR NHibernate.Transaction.AdoTransaction [(null)] - Begin transaction failed
                  MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts. ---> System.Net.Sockets.SocketException: invalid argument
                     at System.Net.Sockets.Socket..ctor(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
                     at MySql.Data.Common.MyNetworkStream.CreateSocketStream(MySqlConnectionStringBuilder settings, IPAddress ip, Boolean unix)
                     at MySql.Data.Common.MyNetworkStream.CreateStream(MySqlConnectionStringBuilder settings, Boolean unix)
                     at MySql.Data.Common.StreamCreator.GetStream(MySqlConnectionStringBuilder settings)
                     at MySql.Data.MySqlClient.NativeDriver.Open()
                  

                  我已尝试解决此问题,但当程序从网络共享启动时,即使访问 SSH 服务器也无法正常工作:

                  I've tried to work around this issue, but even accessing a SSH server didn't work when the program is started from the network share:

                  2018-05-03 14:30:30,654 [1] ERROR WinForms.SpringApplication [(null)] - Main Handler
                  Tamir.SharpSsh.jsch.JSchException: System.Net.Sockets.SocketException: invalid argument
                     at System.Net.Sockets.Socket..ctor(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
                     at Tamir.SharpSsh.java.net.Socket..ctor(String host, Int32 port)
                     at Tamir.SharpSsh.jsch.Util.createSocket(String host, Int32 port, Int32 timeout)
                     bei Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)
                     bei Tamir.SharpSsh.SshBase.ConnectSession(Int32 tcpPort)
                     bei Tamir.SharpSsh.SshBase.Connect(Int32 tcpPort)
                     bei Tamir.SharpSsh.SshBase.Connect()
                  

                  当我在本地复制目录时,程序运行良好.

                  When I copy the directory locally the program works fine.

                  知道为什么当我从网络共享启动这个程序时,Windows 似乎阻止了对套接字的访问吗?

                  Any ideas why it seems that Windows is blocking access to sockets when I'm starting this program from a network share ?

                  我知道信任 .net 代码,因此它可以从网络共享运行,但我已经更新了完全信任,但它仍然崩溃(如果我没有完全信任,通常它会更早崩溃).

                  I know about trusting .net code, so it can be run from a network share, but I've renewed the full trust and it still crashes (and normally it crashes much earlier if I didn't do a full trust).

                  推荐答案

                  我们有一些关于这个问题的信息:

                  We have some information about this issue:

                  Windows 10 更新 1803 无法打开网络连接SMBv1 共享 上的可执行文件(如 Windows Server 2003)

                  Windows 10 update 1803 does not open network connections on executables files on SMBv1 share (as Windows Server 2003)

                  您可以尝试将您的程序移动到与 SMBv2 或 SMBv3 兼容的服务器上进行检查.

                  You can try to move your program to a SMBv2 or SMBv3 compatible server to check it.

                  这篇关于在 Windows 10 更新 1803 后,我的程序从网络共享运行时无法打开套接字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  C# namespace alias - what#39;s the point?(C# 命名空间别名 - 有什么意义?)
                  Using Xpath With Default Namespace in C#(在 C# 中使用具有默认命名空间的 Xpath)
                  Generating an EDMX from a DB2 Database(从 DB2 数据库生成 EDMX)
                  IBM .NET Data Provider Connection String issue with Library List(库列表的 IBM .NET 数据提供程序连接字符串问题)
                  .NET DB2 OLEDB pre-requisites(.NET DB2 OLEDB 先决条件)
                  Referring to Code in IBM.Data.DB2 makes that Assembly Unavailable to the rest of my Solution(引用 IBM.Data.DB2 中的代码使该程序集对我的解决方案的其余部分不可用)
                  <tfoot id='t1dpj'></tfoot>
                    <bdo id='t1dpj'></bdo><ul id='t1dpj'></ul>
                        <tbody id='t1dpj'></tbody>

                      <small id='t1dpj'></small><noframes id='t1dpj'>

                      <i id='t1dpj'><tr id='t1dpj'><dt id='t1dpj'><q id='t1dpj'><span id='t1dpj'><b id='t1dpj'><form id='t1dpj'><ins id='t1dpj'></ins><ul id='t1dpj'></ul><sub id='t1dpj'></sub></form><legend id='t1dpj'></legend><bdo id='t1dpj'><pre id='t1dpj'><center id='t1dpj'></center></pre></bdo></b><th id='t1dpj'></th></span></q></dt></tr></i><div id='t1dpj'><tfoot id='t1dpj'></tfoot><dl id='t1dpj'><fieldset id='t1dpj'></fieldset></dl></div>

                        1. <legend id='t1dpj'><style id='t1dpj'><dir id='t1dpj'><q id='t1dpj'></q></dir></style></legend>