Using SQL trusted connections with ASP.NET
am 02.03.2005 02:05:01 von AdamGetchellHello all,
I've read over:
http://idunno.org/dotNet/trustedConnections.aspx
I would like to use a trusted connection vice using encrypted database
strings:
http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/dnnetsec/html/SecNetHT11.asp
http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/dnnetsec/html/SecNetHT11.asp
So, I've created a local account on both the IIS Server and the SQL server.
On IIS 6.0, I've created an Application Pool specific to my application, and
then configured it to run under the local account. On SQL Server 2000 server,
I created a local account with matching username and strong password, then
added the account in SQL EM, granted access to my application database.
Finally, I've changed my web.config file to have a connection string of the
form:
If the application runs in the new application pool configured with the
local account, I get the error message:
Service Unavailable
Of course, if I put my ASP.NET application back in the default connection
pool, the application is reachable, but fails upon the first database
connection due to a login failure which uses the machine's credentials.
Suggestions for how to implement this?
Thanks,