[英]C# web app not connecting to on premise SQL Server through Azure hybrid Connection
Steps that I've taken so far 到目前为止我采取的步骤
Please let me know if you have any further suggestions. 如果您有任何进一步的建议,请告诉我。
Thanks for the replies, I've finally figured it out.The mistake i was making was that i was specifying the SQL Server Name AND port number(433 in my case) ONLY while deplying to azure and in my code behind the connection string only had the server name mentioned. 感谢回复,我终于弄明白了。我犯的错误是我只是指定了SQL服务器名称和端口号(在我的情况下是433),同时只关注连接字符串后面的azure和我的代码有提到的服务器名称。
However when I updated the connection string in my code behind to include the TCP port, i was able to successfully run the app in conjunction with the Hybrid connection to query results from the SQL Server. 但是当我更新后面代码中的连接字符串以包含TCP端口时,我能够成功运行应用程序与Hybrid连接一起查询来自SQL Server的结果。
Recently I also worked on Azure hybrid connection and have made a list of all the possible problems that I faced. 最近我还参与了Azure混合连接,并列出了我遇到的所有可能出现的问题。 One of the following may be the cause:
以下之一可能是原因:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001
Also a very comprehensive walkthrough of creating a hybrid connection can be find here 同时形成混合连接的一个非常全面的演练,可以发现这里
Hope this solves your problem. 希望这能解决你的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.