Sunday, May 1, 2011

IIS: The requested page cannot be accessed because the related configuration data for the page is invalid

เมื่อคุณเจอ Error

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

ซึ่งเกิดขึ้นหลังจากที่คุณเปลี่ยน password ในการ log on เข้า windows
วิธีแก้ก็คือ
  • เปิด IIS (อยู่ใน Control Panel -> Administration Tools)
  • คลิกที่ Default Website
  • ด้านขวาจะมี Basic Settings คลิกเข้าไป
  • คลิกปุ่ม Connection as ใส่ username และ Password ใหม่ของคุณเข้าไป
แล้วก็ restart IIS ก็จะรันได้ตามปกติ
แต่ถ้า restart IIS แล้วยังเจอ error

HTTP Error 401.2 - Unauthorized

You are not authorized to view this page due to invalid authentication headers.

ให้ reatart Application Pools ด้วย