[英]Error loading my web app after deploying .NET Core console app to Azure
My app is running locally without any issue but when I try to run it from Azure console I have the following error:我的应用程序在本地运行没有任何问题,但是当我尝试从 Azure 控制台运行它时,出现以下错误:
An error occurred while starting the application.
启动应用程序时出错。 SqlException: Cannot open server 'Server-name' requested by the login.
SqlException:无法打开登录请求的服务器“服务器名称”。 Client with IP address 'wxyz' is not allowed to access the server.
IP 地址 'wxyz' 的客户端不允许访问服务器。 To enable access, use the Windows Azure Management Portal or run
sp_set_firewall_rule
on the master database to create a firewall rule for this IP address or address range.要启用访问,请使用 Windows Azure 管理门户或在 master 数据库上运行
sp_set_firewall_rule
以为此 IP 地址或地址范围创建防火墙规则。 It may take up to five minutes for this change to take effect.此更改最多可能需要五分钟才能生效。
Microsoft.Data.ProviderBase.DbConnectionPool.CheckPoolBlockingPeriod(Exception e)
SqlException: Cannot open server 'server-name' requested by the login.
SqlException:无法打开登录请求的服务器“服务器名称”。 Client with IP address 'ip' is not allowed to access the server.
IP 地址 'ip' 的客户端不允许访问服务器。 To enable access, use the Windows Azure Management Portal or run sp_set_firewall_rule
要启用访问,请使用 Windows Azure 管理门户或运行 sp_set_firewall_rule
I have added IP in firewall setting on azure portal still the issue is happening我在 azure 门户的防火墙设置中添加了 IP 问题仍然存在
This error was caused because your IP was not added in the SQL server tab(azure portal).此错误是因为您的 IP 未添加到 SQL 服务器选项卡(Azure 门户)中。 So you must add the IP address of your SQL Server on Azure portal
所以你必须在Azure入口添加你的SQL服务器的IP地址
You have to update the settings of the "Firewalls and virtual.networks" of your SQL Server.您必须更新 SQL 服务器的“防火墙和虚拟网络”设置。
Browse to your SQL Server, add the IP address and allow other azure services and resources to access the server.浏览到您的 SQL 服务器,添加 IP 地址并允许其他 azure 服务和资源访问该服务器。 Refresh and wait at least 5 minutes before trying again.
刷新并等待至少 5 分钟,然后重试。
I also had my ubuntu server firewall blocking my request once, so be sure your webserver is not responsible.我的 ubuntu 服务器防火墙也阻止了我的请求一次,因此请确保您的网络服务器不负责。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.