V
Valar
Hi
I am working on an application with .NET 2005 and SQL server 2000.
I am using windows authentication for my web application authentication
and trying to connect to the SQL server with SQL authentication
credentials.
My web.config reads as follows:
web application Authentication:
<authentication mode="Windows" />
<authorization>
<allow users="*" />
<!-- Allow all users -->
<!-- <allow users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
<deny users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
-->
</authorization>
<identity impersonate="true" />
SQL Authentication:
<connectionStrings>
<add name="DevDBConnection"
connectionString="Server=MyServer;database=MyDB;uid=MyUser;pwd=MyPwd;"
providerName="System.Data.SqlClient" />
</connectionStrings>
MY IIS directory security is set to "Integrated Windows
authentication". I am validating the user againt the Active Directory
for authentication and reading the user details and groups which works
fine.
But trying to open a connection object fails. I am getting a
"{"Cannot open database requested in login 'MyDB'. Login
fails.\r\nLogin failed for user 'MyUser'."}"
I have tried searching for a solution to my best, but could not solve
this problem.
I hope some one might have come accross the same problem ahd looking
forward for your help.
Thanks,
Valar
I am working on an application with .NET 2005 and SQL server 2000.
I am using windows authentication for my web application authentication
and trying to connect to the SQL server with SQL authentication
credentials.
My web.config reads as follows:
web application Authentication:
<authentication mode="Windows" />
<authorization>
<allow users="*" />
<!-- Allow all users -->
<!-- <allow users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
<deny users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
-->
</authorization>
<identity impersonate="true" />
SQL Authentication:
<connectionStrings>
<add name="DevDBConnection"
connectionString="Server=MyServer;database=MyDB;uid=MyUser;pwd=MyPwd;"
providerName="System.Data.SqlClient" />
</connectionStrings>
MY IIS directory security is set to "Integrated Windows
authentication". I am validating the user againt the Active Directory
for authentication and reading the user details and groups which works
fine.
But trying to open a connection object fails. I am getting a
"{"Cannot open database requested in login 'MyDB'. Login
fails.\r\nLogin failed for user 'MyUser'."}"
I have tried searching for a solution to my best, but could not solve
this problem.
I hope some one might have come accross the same problem ahd looking
forward for your help.
Thanks,
Valar