Ho testato un sito Web in Azure per circa un mese (Versione di prova gratuita) e ora mi sono abbonato a pagamento. Quando ero in prova gratuita, non avevo assolutamente problemi di connettività. Ora ho utilizzato nuovamente un nuovo sito Web creato con l'abbonamento pay-as-you-go con le stesse impostazioni (modalità di ridimensionamento, ecc.) Di quella precedente. Tuttavia, ora quando ci si dirige verso il mio sito, a volte non riesce a connettersi al mio database:Il sito Web di Azure a volte non riesce a connettersi al database SQL 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.)
cerco di aggiornare la pagina e si connette. Dopo alcuni minuti, quando riprovo, a volte ottengo di nuovo lo stesso errore, ma a volte no. Non ho mai avuto un singolo problema di connettività nella modalità di prova gratuita. Perché è successo e come posso prevenire questo problema?
Hai usato o implementato una sorta di logica di tentativi? – CSharpRocks
@CSharpRocks No, cosa devo fare? –