Welcome Guest Search | Active Topics | Log In | Register

How to: Login failed for user 'IIS APPPOOL\DefaultAppPool'. (Windows 7) Options · View
AdmOd
#1 Posted : Monday, January 12, 2009 12:07:44 AM
Rank: มือพระกาฬ

Groups: Member

Joined: 9/14/2008
Posts: 12
Location: Home

เป็นปัญหาที่ผมพบเจอใน Windows 7 เผื่อใครเจอจะได้ลองเอาไปใช้กัน

Server Error in '/' Application.

Cannot open database "<Database Name>" requested by the login. The login failed.
Login failed for user 'IIS APPPOOL\DefaultAppPool'.

(เดาว่า) เกิดจาก IIS ทำการติดต่อไปยัง Sql Server ผ่าน Windows Authentcation ไม่ผ่าน

จากบรรทัด "IIS APPPOOL\DefaultAppPool" เลยเดาว่าน่าจะเป็นที่ DefaultAppPool ของ Site ตัวที่ใช้


กด Advance มาดู AppPool ตรงนี้

วิธีแก้ที่ผมใช้ก็คือ ไปเปลี่ยน Identity Account ให้แก่ IIS ใหม่ โดยเข้าไปที่เมนู Advanced Settings... ของ  AppPool ที่ใช้งาน

แล้วก็ไปเปลี่ยน Identity ใหม่

เปลี่ยนจาก ApplicationPoolIdentity เป็น LocalSystem

 

ปัญหาที่ผมเจอเกิดเฉพาะเมื่อ IIS มีการติดต่อเข้าไปยัง SQL Server โดยที่ตัว Management อื่นๆ หรือการติดต่อด้วยวิธีอื่นๆยังใช้งานได้ปรกติ

ปล. ไม่รับรองความปลอดภัยของระบบ
ปล2. อ้างอิง Windows 7 Build 7000

ทดลองระบบติดตามรถเมล์ (ชมวีดีโอแนะนำในหน้า "เกี่ยวกับเรา")
http://bustracker.codetoday.net/
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Creative Commons License
CodeToday.NET is licensed under a Creative Commons Attribution-Noncommercial 3.0 Thailand License.
Based on a work at www.CodeToday.net.