KriptonKnight
New member
בעיה בפתיחת connection ב-MSDE
התקנתי את ה-MSDE, עם String Password שהוא pass, עכשיו אני מנסה להתחבר למסד (ASP.NET) בעזרת השורה הבאה
התקנתי את ה-MSDE, עם String Password שהוא pass, עכשיו אני מנסה להתחבר למסד (ASP.NET) בעזרת השורה הבאה
string connectionString = "server='(local)'; trusted_connection=true; database='WroxUnited'; Uid=sa; Pwd=pass;" System.Data.IDbConnection dbConnection = new System.Data.SqlClient.SqlConnection(connectionString);
הוא כותב לי את השגיאה הבאהLogin failed for user 'MYUSER\ASPNET'. 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: Login failed for user 'MYUSER\ASPNET'. Source Error: Line 88: dbCommand.Parameters.Add(dbParam_fanEmail); Line 89: int result = 0; Line 90: dbConnection.Open(); // error here! Line 91: try Line 92: {
הקוד לקוח מתוך הספר (נספח ד') Beginning ASP.NET 1.1 with Visual C#® .NET 2003