Home > Net >  Even less than the database? Click on the hint
Even less than the database? Click on the hint

Time:09-16


The user 'sa' login failed,
Note: during the execution of the current Web request, an unhandled exception, please check the stack trace, to learn about the errors and mistakes in the code of the source of detailed information,

Exception details: System. The Data. SqlClient. SqlException: user 'sa' login failed,

The error source:


36://was not found, and open the new
37: Connection=new SqlConnection (the ConnectionString);
38: Connection. The Open ();
39:}
40: the else


The source file: c: \ inetpub \ below \ App_Code \ DB \ DataBase line cs: 38

CodePudding user response:

I think of the two cases can cause this problem: 1 connection statement written (the ConnectionString) wrong, such as spelling mistakes (2) the user name and password wrongly suggest the original poster is monotonous

CodePudding user response:

Sa login failed, see your connection string, the user name and password are right,
  •  Tags:  
  • C#
  • Related