我一直在开发基于Azure的基本Web应用程序并遇到了问题。应用程序查询Azure上托管的数据库,并将值返回给用户。当我在我的私有wifi网络上本地运行应用程序时,当我将应用程序部署到Azure时,它运行正常,并且正确返回查询。但是,当我在我的公司wifi上本地运行应用程序时,我收到以下错误:
An exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll but was not handled in user code
Additional information: A network-related or instance-specific error occurred while establishing a connection to SQL Server.
The server was not found or was not accessible.
Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
(provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)
是否有人可以告诉我是否需要添加任何其他代码或我需要将哪些异常放入公司的防火墙以便允许我在本地运行和测试应用程序?