فى الweb config
يوجد جملة الاتصال دى
<appSettings>
<add key="webconfig"
value="Server=localhost;UID='R-6ca277aef7b04\ASPNET;PWD=;Database=mydatabase;" /> </appSettings>
<system.web>
حيث 'R-6ca277aef7b04\ASPNET اسم الجهاز
وعملت رن للمشروع وظهرت هذه الرسالة :
Login failed for user 'R-6ca277aef7b04\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 'R-6ca277aef7b04\ASPNET'.
Source Error:
Line 74: Dim Cmd As New SqlCommand(SQL, Conn)
Line 75:
Line 76: Conn.Open()
Line 77:
Line 78: Dim user As String = Cmd.ExecuteScalar
Source File: c:\inetpub\wwwroot\mydatabase\index.aspx Line: 76
Stack Trace:
مع العلم باننى زودت فى ال sql server فى الusers زودت اسم الجهاز