Azure Website Connection Fehler

Dieser Blog Post dient nur zur Dokumentation eines SQL Connection Fehlers in Azure.

Nach einem Publish der Web Anwendung auf eine Azure Website, liefert die Website folgenden Fehler

Server Error in '/' Application.

Invalid object name 'rooms'.

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.Data.SqlClient.SqlException: Invalid object name 'rooms'.
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:

[SqlException (0x80131904): Invalid object name 'rooms'.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +1787814
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5341674

 

Der Kollege hat aus einem Irrtum heraus, eine lokale Kopie deployed die per localdb mit einer SQL Express Datenbank gearbeitet hat. Nach manueller Änderung der web.config auf Azure selbes problem. Die Anwendung läuft lokal aber durchaus mit der SQL Azure Datenbank.

Erinnerungsgemäß hat mich ein ähnlicher Fehler schon mal Stunden gekostet. Damals hatte ich irgendwas gelöscht. Nur weis ich nicht mehr was und wo.

Kommentare sind geschlossen