简体   繁体   中英

Error using custom app-pool identity for database login

I am new to IIS and MS SQL Server (coming from a Apache MySQL Environment) so hopefully I will include enough details for you guys to help me!

I am converting my web app from using hard coded database credentials (currently SA :/ ) in the Connection String in web.config.

I removed the username and password and put in "Integrated Security=SSPI". The website is configured with a dedicated app pool and that app pool Identity is set to the domain account I want it to use. When I attempt to use the web app I get an error. When I look into the SQL Server logs I see "Login failed for user 'NT AUTHORITY\\ANONYMOUS LOGON'. Reason: Could not find a login matching the name provided.

Any ideas on what I am doing wrong?

Add (or modify) the element below to the system.web section of your web.config.

<identity impersonate="true" />

See http://msdn.microsoft.com/en-us/library/vstudio/134ec8tc(v=vs.100).aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM