เปิดโปรแกรม IIS ได้ที่
Control Panel\All Control Panel Items\Administrative Tools\Internet Information Services (IIS) Manager
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihDRaodp76VZBvcPAtZwfjEu2N5S_nDwT8sT7-KmYVXZitJyxIwxQz3VPB2CHPFIKfmSptHrFosES4WmGErJufhOoBOq3it71fdqj5mGGWn8IiSDj3z06oM-wlkmmMbbU2chtpgHcDy2Ez/s640/iis7-asp-1.jpg)
คลิกวาที่ Site -> Add Web Site
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieF_2A3P35Rk_f-2g3E9ufaNx0YRxaqFTOBCTQe9uO5ucQgWrg-5XgeAnGcNOdMrpUS5ztmNHmBqb0KYaTS3I0g3rrTFppMMpGf9Ykwu8N31yxEzmIifO8jzyzb3sakfqCSLGLK__Wrhqr/s400/iis7-asp-2.jpg)
ในที่นี้ผมสร้าง project ชื่อ myasp และเก็บไว้ที่ C:\myasp และกำหนด Port ในที่นี้ผมกำหนดเป็น 99
ซึ่งตอนที่รันโปรแกรมผมจะต้องรันที่ http://localhost:99
หาก Service ไม่ทำงานให้ Start Service ก่อนครับ
ทดสอบการทำงานของ IIS7 กับ ASP
สร้างไฟล์ Test.asp เก็บไว้ที่ C:\myasp\Test.asp
จากนั้นให้ทดสอบรันโปรแกรมโดนรันที่ http://localhost:99/Test.asp
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
ถ้าหน้าจอปรากฏดังรูป ให้ทำการ Config ในส่วนของ Application Development Features
ไปที่ Turn Windows features on or off ของ Control Panel
Internet Information Services -> World Wide Web Servies -> Application Development Features -> คลิกเลือก ASP
รอซักครู่
เสร็จแล้วของทดสอบโปรแกรมใหม่อีกครั้ง ก็จะได้ผลดังรูปครับ
ไม่มีความคิดเห็น:
แสดงความคิดเห็น