בעיה בפתיחת connection ב-MSDE

KriptonKnight

New member
בעיה בפתיחת connection ב-MSDE

התקנתי את ה-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
 

KriptonKnight

New member
ניסיתי, ועכשיו הוא כותב שגיאה אחרת

Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection.​
 
למעלה