เป็น error ที่มักเจอเวลามีการเรียกใช้สคริปทางฝั่งเซิฟเวอร์เช่น การเรียกใช้ Microsoft Excel เป็นต้น
Server.CreateObject(“Excel.Application”)
Server.CreateObject(“Excel.Application”)
ถ้าเกิด error ดังนี้
Server.CreateObject Access Error, The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
Server.CreateObject Access Error, The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
วิธีแก้ไขโดยการเข้าไปเซ็ต DCOM Config permission ดังนี้
Credit: http://www.shotdev.com/asp/asp-excel/asp-config-excel/
Credit: http://www.shotdev.com/asp/asp-excel/asp-config-excel/
1. เข้าไปที่ Controlpanel -> Administrative Tools -> Component Services


2. ไปที่ DCOM Config


3. ไปที่ Microsoft Excel -> Properties


4. ไปที่ tab Security เลือก Customize -> Edit


5. เข้าไปเซ็ตค่า Allow Permission ของ user ตามที่ต้องการ


No comments:
Post a Comment