相关疑难解决方法(0)

Azure网站无法连接到SQL Azure数据库

我搜索了几个小时,找不到任何有用的东西.

在Windows Azure中使用ASP.NET MVC4.

当我在我的开发机器上本地运行该站点时,使用SQL Azure连接字符串.我可以访问远程数据库没问题.但是,当我部署该站点并尝试从[mysite] .azurewebsites.com访问它时,我在超时后得到以下错误(Azure中的连接字符串相同;复制并粘贴):

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: SQL Network 
Interfaces, error: 26 - Error Locating Server/Instance Specified) 

Description: An unhandled exception occurred during the execution of the current web request.
Please review the stack trace for more information about the …
Run Code Online (Sandbox Code Playgroud)

sql connection azure asp.net-mvc-4 web

7
推荐指数
1
解决办法
7944
查看次数

7
推荐指数
2
解决办法
2万
查看次数

标签 统计

asp.net ×1

asp.net-mvc-4 ×1

azure ×1

connection ×1

sql ×1

web ×1