10/10/2018, 11:04

Hướng Dẫn Chạy Web ASP.net trên IIS

Mình code web ASP.net trên Microsoft Visual Studio 2010
Nhưng giờ để chạy trên IIS thì phải làm sao?
Các bác biết hướng dẫn giúp
Thanks
cavang125 viết 13:17 ngày 10/10/2018
http://ddth.com/showthread.php?t=289210


http://www.ddth.com/showthread.php?t=191295
webasp viết 13:04 ngày 10/10/2018
IIS mình đã cài ok. Nhưng Mình code web ASP.net trên Microsoft Visual Studio 2010
Giờ chạy trên IIS ko được.
Mặ dù mình tạo file.aspx chạy trên IIS thì ok
quatimkhomauu viết 13:06 ngày 10/10/2018
Ở IIS, bạn có thể tạo một cái virtual directory và point nó đến cái foler chứa ASPNET homepage của bạn.
webasp viết 13:05 ngày 10/10/2018
Mình đã tạo rồi. Không biết có cần Convert gì ko?

Chạy lỗi
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS
quatimkhomauu viết 13:09 ngày 10/10/2018
Có 1 vài chuyện dưới đây bạn nên làm thử:
1. In Visual Studio, open the solution you are working on. Right click on the website project, choose Convert to Web Application. Save and Build the solution.
2. Bạn chỉ có 1 web.config ở main foler thôi. Có nghĩa là bạn fải remove tất cả những web.config file ở những sub-directory nếu có.
webasp viết 13:07 ngày 10/10/2018
Cách 1 của bạn thì chạy ok
Cách 2 Project chỉ có 1 web.config
Vậy khắc phục như thế nào
Thanks

Lỗi

Error Summary
HTTP Error 500.21 - Internal Server Error
Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list
quatimkhomauu viết 13:12 ngày 10/10/2018
Mình có làm research về cái problem of bạn. Bạn có thể follow instructions on the link below to see if it works.

http://www.gotknowhow.com/articles/f...andler-in-iis7

Mình cũng muốn xem nó có work không. Có gì cho biết.
suutamcongnghe viết 13:07 ngày 10/10/2018
Bạn build web trên VS 2010 thì phải cái .NET Framework 4 vào thì mới chạy với IIS dc.
Bài liên quan
0