I'm trying to connect to a database on my local machine, but I keep getting the error: Login failed for user 'DEV6\IUSR_DEV6'.
This is the connection string I am using:
I have the following entries in my web.config:
In the Security Logins, in the sa account under authentication both Windows Authentication and SQL Server Authentication are greyed out there is no way to select either one.
When I created the database, I selected both windows and SQL Server Authentication, but I still get the error when I try to login.
I can make a successful connection with Access, with UDL, and with the Data Sources (ODBC), but no connection string that I try will work with asp.net -- it seems to be some config problem with vs.net
Can anyone help me out here?
This is the connection string I am using:
Code:
"Data Source=(local);initial catalog=favorites;Trusted_Connection=yes;Integrated Security=SSPI"
I have the following entries in my web.config:
Code:
<authentication mode="Windows" />
<identity impersonate="true" />
In the Security Logins, in the sa account under authentication both Windows Authentication and SQL Server Authentication are greyed out there is no way to select either one.
When I created the database, I selected both windows and SQL Server Authentication, but I still get the error when I try to login.
I can make a successful connection with Access, with UDL, and with the Data Sources (ODBC), but no connection string that I try will work with asp.net -- it seems to be some config problem with vs.net
Can anyone help me out here?