我在Azure中测试网站已经一个月了(免费试用),现在我已经订阅了按需付费。当我在免费试用期间,我完全没有连接问题。现在我再次部署到一个新的网站上,这个网站是在按需付费订阅上创建的,与之前的设置(扩展模式等)相同。然而,现在当我导航到我的网站时,有时会无法连接到我的数据库:
Server Error in '/' Application.
A connection attempt failed because the connected party did not properly respond after
a period of time, or established connection failed because connected host has failed to
respond
Description: An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and where
it originated in the code.
Exception Details: System.ComponentModel.Win32Exception: A connection attempt failed
because the connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to respond
Source Error:
An unhandled exception was generated during the execution of the current web request.
Information regarding the origin and location of the exception can be identified using
the exception stack trace below.
Stack Trace:
[Win32Exception (0x80004005): A connection attempt failed because the connected party
did not properly respond after a period of time, or established connection failed
because connected host has failed to respond]
[SqlException (0x80131904): 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 - A connection attempt
failed because the connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to respond.)
我尝试刷新页面,然后它连接成功了。几分钟后,再次尝试时,有时会出现相同的错误,但有时不会。在免费试用模式下,我从未遇到过连接问题。为什么会发生这种情况?如何防止这个问题?