Server Error in '/' Application.

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

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 "StJosephsKauliPatiala_DB_ERP" requested by the login. The login failed.
Login failed for user 'StJosephsKauliPatiala_ID_ERP'.

Source Error:


Line 60:         {
Line 61:             this._connection.Close();
Line 62:             this._connection.Open();
Line 63:         }
Line 64: 

Source File: d:\Websites\StJospehsConventSchoolKauli\App_Code\UtilityADO.cs    Line: 62

Stack Trace:


[SqlException (0x80131904): Cannot open database "StJosephsKauliPatiala_DB_ERP" requested by the login. The login failed.
Login failed for user 'StJosephsKauliPatiala_ID_ERP'.]
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +578
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +88
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +6342711
   System.Data.SqlClient.SqlConnection.Open() +258
   UtilityADO.OpenConnection() in d:\Websites\StJospehsConventSchoolKauli\App_Code\UtilityADO.cs:62
   UtilityADO.GetDataTable(String _procedureName, List`1 _Parameters) in d:\Websites\StJospehsConventSchoolKauli\App_Code\UtilityADO.cs:90
   VideoGallery.getVediogallaryDetails(Int32 id) in d:\Websites\StJospehsConventSchoolKauli\App_Code\VideoGallery.cs:82
   menu_videoGallery_DisplayVideo.Page_Load(Object sender, EventArgs e) in d:\Websites\StJospehsConventSchoolKauli\menu\videoGallery\DisplayVideo.aspx.cs:26
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062