Click here to Skip to main content
15,894,106 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Cannot open database "drugdeta_main_dev" requested by the login. The login failed.
Login failed for user 'drug2'.

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

Source Error: 


Line 101:        catch (Exception ex)
Line 102:        {
Line 103:            throw ex;
Line 104:        }
Line 105:    }

Source File: c:\inetpub\vhosts\drugdetails.in\httpdocs\test3\Modern Hospitals.aspx.cs    Line: 103 

Stack Trace: 


[SqlException (0x80131904): Cannot open database "drugdeta_main_dev" requested by the login. The login failed.
Login failed for user 'drug2'.]
   ModernHospital.BindProductDetails() in c:\inetpub\vhosts\drugdetails.in\httpdocs\test3\Modern Hospitals.aspx.cs:103
   ModernHospital.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\drugdetails.in\httpdocs\test3\Modern Hospitals.aspx.cs:20
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446
Posted
Comments
[no name] 28-May-14 8:20am    
Well the error message is perfectly clear. What is the question?
CHill60 28-May-14 8:35am    
You need to post the code that was in the try block that goes with that catch block quoted. Make sure you obscure any logon details! I suspect you have either provided an incorrect password or user drug2 does not have permission to access that database

1 solution

The database "server database" don't exist.
 
Share this answer
 
Comments
CHill60 28-May-14 8:36am    
The post clearly states that the login failed

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900