cau hinh iis 7 chay web asp 4.0 tro len
DESCRIPTION
Hướng dẫn cấu hình IIS chạy web ASP 4.0TRANSCRIPT
![Page 1: Cau Hinh IIS 7 Chay Web ASP 4.0 Tro Len](https://reader034.vdocuments.pub/reader034/viewer/2022050805/55cf865a550346484b96d1b4/html5/thumbnails/1.jpg)
1. Chào các bạn hôm nay mình sẽ hướng dẫn cách cấu hình IIS 7.5 chạy website ASP.NET 4.0 trở lên . Do IIS mặt định của Windows chỉ chạy website nền 3.5 trở xuống thôi , web nền 4.0 thì lại không chạy được vì vậy bài này sẽ giúp bạn xử lý được vấn đề đó.
Ở đây mình hướng dẫn cấu hình cho website đã có database nhéĐầu tiên : Khởi động SQL Server theo định dạng Windows Authentication Mode
![Page 2: Cau Hinh IIS 7 Chay Web ASP 4.0 Tro Len](https://reader034.vdocuments.pub/reader034/viewer/2022050805/55cf865a550346484b96d1b4/html5/thumbnails/2.jpg)
Sau đó chọn máy chủ và chọn Properties
![Page 3: Cau Hinh IIS 7 Chay Web ASP 4.0 Tro Len](https://reader034.vdocuments.pub/reader034/viewer/2022050805/55cf865a550346484b96d1b4/html5/thumbnails/3.jpg)
Bước tiếp theo ở cửa số mới hiện ra chọn Security ở màn hình trái và chọn SQL Server and Windows Authentication mode -> OK (theo hình sau)
![Page 4: Cau Hinh IIS 7 Chay Web ASP 4.0 Tro Len](https://reader034.vdocuments.pub/reader034/viewer/2022050805/55cf865a550346484b96d1b4/html5/thumbnails/4.jpg)
Tiếp theo các bạn chọn mục Security ở mục trái -> Logins -> sa -> Properties
![Page 5: Cau Hinh IIS 7 Chay Web ASP 4.0 Tro Len](https://reader034.vdocuments.pub/reader034/viewer/2022050805/55cf865a550346484b96d1b4/html5/thumbnails/5.jpg)
Đặt password ở hai mục Password và Confim password ở đây mình đặt 123 để dễ nhớ ghi vào tập tin webconfig sau này.
![Page 6: Cau Hinh IIS 7 Chay Web ASP 4.0 Tro Len](https://reader034.vdocuments.pub/reader034/viewer/2022050805/55cf865a550346484b96d1b4/html5/thumbnails/6.jpg)
Tiếp đến chọn mục Status và check chọn Enabled ở Login
Sau đó ra ngoài chọn lại máy cháy và Restart
![Page 7: Cau Hinh IIS 7 Chay Web ASP 4.0 Tro Len](https://reader034.vdocuments.pub/reader034/viewer/2022050805/55cf865a550346484b96d1b4/html5/thumbnails/7.jpg)
Tiếp đến là bước cài đặt IIS 7.5 . Vào Control Panel -> Programs and
![Page 8: Cau Hinh IIS 7 Chay Web ASP 4.0 Tro Len](https://reader034.vdocuments.pub/reader034/viewer/2022050805/55cf865a550346484b96d1b4/html5/thumbnails/8.jpg)
Features -> chọn Turn Windows features on or off -> Check chọn Internet Information Services (hãy để mặt định của Windows chỉ chọn thêm theo hình sau)
![Page 9: Cau Hinh IIS 7 Chay Web ASP 4.0 Tro Len](https://reader034.vdocuments.pub/reader034/viewer/2022050805/55cf865a550346484b96d1b4/html5/thumbnails/9.jpg)
Sau đó hãy khởi động IIS lên nào . Cấu hình như sau chọn Application Pools ->tạo thêm 2 Application Pools là : ASP.NET v4.0 (chọn Integrated) và ASP.NET v4.0 Classic (chọn Classic) tất cả phần .NET Framework chọn v4.0.30319.
![Page 10: Cau Hinh IIS 7 Chay Web ASP 4.0 Tro Len](https://reader034.vdocuments.pub/reader034/viewer/2022050805/55cf865a550346484b96d1b4/html5/thumbnails/10.jpg)
Tắt IIS đi . Sau đó vào Run gõ dòng sau : %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet _regiis.exe -iKhởi động lại IIS chọn ISAPI and CGI Restrictions như hình sau
![Page 11: Cau Hinh IIS 7 Chay Web ASP 4.0 Tro Len](https://reader034.vdocuments.pub/reader034/viewer/2022050805/55cf865a550346484b96d1b4/html5/thumbnails/11.jpg)
Sau đó Allow 2 mục ASP.NET v4.0...
![Page 12: Cau Hinh IIS 7 Chay Web ASP 4.0 Tro Len](https://reader034.vdocuments.pub/reader034/viewer/2022050805/55cf865a550346484b96d1b4/html5/thumbnails/12.jpg)
Và bắt đầu add website của mình vào ở đây mình add website ASP.NET MVC nhé
![Page 14: Cau Hinh IIS 7 Chay Web ASP 4.0 Tro Len](https://reader034.vdocuments.pub/reader034/viewer/2022050805/55cf865a550346484b96d1b4/html5/thumbnails/14.jpg)
Đặt tên web ở Sitename chọn nền website chạy ở Application pool (ở đây nếu là web asp 4.0 hãy chọn ASP.NET v4.0 hoặc ASP.NET v4.0 Classic) Chọn đường dẫn ở Physical path và thay port mặt định đi nha .Run web thôi
![Page 15: Cau Hinh IIS 7 Chay Web ASP 4.0 Tro Len](https://reader034.vdocuments.pub/reader034/viewer/2022050805/55cf865a550346484b96d1b4/html5/thumbnails/15.jpg)
đi chứ
P/s: ở tập tin webconfig nhớ thêm uid=sa;pwd=123 nhé