Lỗi Unable to connect to web server ‘IIS Express’”

Khi bạn dùng  Visual Studio để debug các ứng dụng Web Form hoặc Web MVC khi phát triển các website trong framewwork asp.net có thể thường gặp lỗi : “Unable to connect to web server ‘IIS Express‘”

Để khắc phục những lỗi này bạn có thể xử lý với các visual studio như sau

1.  Visual Studio 2019 – Unable to connect to web server ‘IIS Express’

Bạn thực hiện các bước sau:

  1. Go to ‘Debug Properties
  2. Find ‘Web Server Settings
  3. Change the port in ‘App URL‘ section and save the changes
  4. Run the application and the same error will appear again
  5. Switch the port back to the original port and save the changes
  6. Run the application!

Tham khảo thêm: chi tiết

Unable to connect to web server IIS Express

2.  Visual Studio 2015 – Unable to connect to web server ‘IIS Express’

Thực hiện theo các bước:

1) Clean and Rebuild Projects dependencies
2) Clean and Rebuild the primary project
3) Verify launchsettings & project build properties
4) Close VS
5) Cleared BIN and OBJ folders from project
6) go to C:\Users\username\Documents\IISExpress\config – Delete all the files from this folders
7) Remove the .VS folder from the solution directory
8) Verify the launchsettings.json has the correct format/syntax. You must have this applicationUrl listed in correct location like below:

Unable to connect to web server 'IIS Express' 2015

Tham khảo thêm: chi tiết

Phản hồi

Phản hồi