Server Error in '/' Application.

Cannot open database "wairoastar" requested by the login. The login failed.
Login failed for user 'wairoastar'.

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: Cannot open database "wairoastar" requested by the login. The login failed.
Login failed for user 'wairoastar'.

Source Error:


Line 65:             com.Parameters.Add(new SqlParameter("@id", Request.QueryString["id"]));
Line 66: 
Line 67:             con.Open();
Line 68: 
Line 69:             using (SqlDataReader r = com.ExecuteReader())

Source File: d:\HostingSpaces\wairoastar\www.wairoastar.co.nz\wwwroot\Photos\Album.aspx.cs    Line: 67

Stack Trace:


[SqlException (0x80131904): Cannot open database "wairoastar" requested by the login. The login failed.
Login failed for user 'wairoastar'.]
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +428
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   Photos_Album.DisplayAlbum() in d:\HostingSpaces\wairoastar\www.wairoastar.co.nz\wwwroot\Photos\Album.aspx.cs:67
   Photos_Album.Photos_Album_Load(Object sender, EventArgs e) in d:\HostingSpaces\wairoastar\www.wairoastar.co.nz\wwwroot\Photos\Album.aspx.cs:25
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8806; ASP.NET Version:2.0.50727.8762