Server Error in '/eventsCalendar' Application.

Cannot open database "VCalendar" requested by the login. The login failed.
Login failed for user 'DELTA\tempsvcacct'.

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 "VCalendar" requested by the login. The login failed.
Login failed for user 'DELTA\tempsvcacct'.

Source Error:


Line 286://After execute Select @144-7D8CD050
Line 287:                if(E!=null) throw(E);
Line 288:            }
Line 289:            DataRowCollection dr=ds.Tables[tableIndex].Rows;
Line 290:            result = new ShortViewEventsGridItem[dr.Count];

Source File: d:\www\apps\eventsCalendar\App_Code\weekDataProvider.cs    Line: 288

Stack Trace:


[SqlException (0x80131904): Cannot open database "VCalendar" requested by the login. The login failed.
Login failed for user 'DELTA\tempsvcacct'.]
   calendar.week.ShortViewEventsGridDataProvider.GetResultSet(Int32& _pagesCount, FormSupportedOperations ops) in d:\www\apps\eventsCalendar\App_Code\weekDataProvider.cs:288
   calendar.week.weekPage.ShortViewEventsGridBind() in d:\www\apps\eventsCalendar\week.aspx.cs:98
   calendar.week.weekPage.Page_Load(Object sender, EventArgs e) in d:\www\apps\eventsCalendar\week.aspx.cs:62
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0