Connection to remote SQL server breaks when upgrading web server to .net framework 4.6.1

后端 未结 4 759
再見小時候
再見小時候 2021-02-20 00:27

We\'re currently working on updating our asp.net web application (hosted on IIS 7.5) from .net framework v4.5 to v4.6.1. On small lower environments/local development in which S

4条回答
  •  难免孤独
    2021-02-20 01:11

    The following article describes a new default connection string setting for SQL Server connections in .net 4.6.1.

    https://blogs.msdn.microsoft.com/dataaccesstechnologies/2016/05/07/connection-timeout-issue-with-net-framework-4-6-1-transparentnetworkipresolution/

    This was to solve one problem in some environments, but also caused the issue you are experiencing in other environments.

    Basically, you'll want to add the following your connection string:

    TransparentNetworkIPResolution=False;
    

提交回复
热议问题