Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 2개 있습니다.)
(시리즈 글이 8개 있습니다.)
오류 유형: 622. 소켓 바인딩 시 "System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions" 오류 발생
; https://www.sysnet.pe.kr/2/0/12240

오류 유형: 629. Visual Studio - 웹 애플리케이션 실행 시 "Unable to connect to web server 'IIS Express'." 오류 발생
; https://www.sysnet.pe.kr/2/0/12265

오류 유형: 639. Bitvise - Address is already in use; bind() in ListeningSocket::StartListening() failed: Windows error 10013: An attempt was made to access a socket ,,,
; https://www.sysnet.pe.kr/2/0/12295

오류 유형: 642. SQL Server 시작 오류 - error code 10013
; https://www.sysnet.pe.kr/2/0/12306

오류 유형: 659. Nox 실행이 안 되는 경우 - Unable to bind to the underlying transport for ...
; https://www.sysnet.pe.kr/2/0/12351

오류 유형: 695. ASP.NET 0x80131620 Failed to bind to address
; https://www.sysnet.pe.kr/2/0/12492

오류 유형: 724. Tomcat 실행 시 Failed to initialize connector [Connector[HTTP/1.1-8080]] 오류
; https://www.sysnet.pe.kr/2/0/12671

오류 유형: 725. IntelliJ에서 Java webapp 실행 시 "Address localhost:1099 is already in use" 오류
; https://www.sysnet.pe.kr/2/0/12672




Visual Studio - 웹 애플리케이션 실행 시 "Unable to connect to web server 'IIS Express'." 오류 발생

오랜만에 열게 된 웹 애플리케이션 프로젝트에서 F5(또는 Ctrl + F5) 키를 눌러 실행을 했는데 다음과 같은 오류가 발생합니다.

Unable to connect to web server 'IIS Express'. 

Process with an Id of ... is not running.
또는,
An error occurred launching IIS Express. Unable to launch the configured Visual Studio Development Web server. Port '...' is in use.

이와 함께 뜬 풍선 알림 글이 이렇고,

IIS Express Notifications

The specified ports is in use

Port '...' is already being used by another application.

Recommendations
1. Try switching to port other than '...' and higher than 1024.
2. Stop the application that is using port '...'

Open log file

"Open log file" 링크를 누르니 다음과 같은 오류 메시지가 포함되어 있습니다.

Failed to register URL "http://localhost:5576/" for site "..." application "/". Error description: The process cannot access the file because it is being used by another process. (0x80070020)

문제는 해당 포트로 점유하고 있는 프로세스가 없다는 점입니다.

C:\Windows\System32> netstat -ano | findstr 5576

C:\Windows\System32>

그러니까, 결국 다음의 원인과 같은 내용이었습니다.

소켓 바인딩 시 "System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions" 오류 발생
; https://www.sysnet.pe.kr/2/0/12240

따라서, 프로젝트 설정에서 해당 웹 애플리케이션의 포트를 변경하든지, 아니면 excludedportrange에서 해당 포트를 포함하는 영역을 삭제해야 합니다.




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 2/1/2023]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 166  167  168  169  170  171  172  173  174  [175]  176  177  178  179  180  ...
NoWriterDateCnt.TitleFile(s)
627정성태12/6/200823323VS.NET IDE: 58. VS.NET IDE 팁 - 커서 위치 이동 [1]
626정성태12/6/200823569오류 유형: 65. TF53018: The application tier XXXXXXX is attempting to connect to a data tier with an incompatible version
625정성태12/6/200823745오류 유형: 64. TFS 2008 SP1 설치 - MsiApplyMultiplePatches returned 0x643
624정성태12/5/200824721.NET Framework: 114. WPF 이벤트에 속한 핸들러 확인 [2]파일 다운로드1
623정성태12/4/200829072디버깅 기술: 22. VS.NET SP1 + .NET Framework 소스 코드 디버깅 [2]파일 다운로드1
622정성태12/1/200831330오류 유형: 63. WPF - XamlParseException 대응 방법 [2]
621정성태11/30/200823502Team Foundation Server: 27. TeamBuild + VDPROJ 셋업 프로젝트 [1]
620정성태11/30/200822360디버깅 기술: 21. 올바른 이벤트 예외 정보 출력
619정성태11/30/200822474디버깅 기술: 20. 예외 처리를 방해하는 WPF Modal 대화창파일 다운로드1
618정성태11/29/200822906.NET Framework: 113. 이벤트에 속한 이벤트 핸들러 확인파일 다운로드1
617정성태11/26/200828460.NET Framework: 112. How to Interop DISPPARAMS [2]파일 다운로드2
616정성태11/26/200822228디버깅 기술: 19. C++/CLI - F11 디버깅 시의 변수 초기화파일 다운로드1
615정성태11/9/200831942.NET Framework: 111. WPF - Window, UserControl 클래스 상속 [1]
614정성태11/9/200831908.NET Framework: 110. WPF - 전역 예외 처리 [4]파일 다운로드1
613정성태11/8/200821499.NET Framework: 109. WPF - SystemColors 색상표파일 다운로드1
612정성태11/1/200826763.NET Framework: 108. WPF + WCF 환경에서는 DataContract를 권장 [1]
611정성태10/31/200821089오류 유형: 62. WPF - Visual Studio 2008 비정상 종료
610정성태10/24/200823288Team Foundation Server: 26. TFS 2008 SP1 + SQL Server 2008 설치
609정성태10/24/200827013.NET Framework: 107. WPF - RadioButton 데이터 바인딩 해제 현상파일 다운로드2
608정성태10/23/200821725오류 유형: 61. TFS 연결 오류: TF31003, TF30331 오류
607정성태10/18/200819656Windows: 32. 자동 실행 경로에 ".." 가 포함된 경우
606정성태10/18/200821654.NET Framework: 106. WCF - 다중 서비스 호스트파일 다운로드1
605정성태10/18/200825093.NET Framework: 105. WPF - 닫기 버튼을 없애려면.
604정성태10/18/200825656오류 유형: 60. System.Management.ManagementException - Generic failure [1]
602정성태10/15/200827620오류 유형: 59. WPF - XAML 로딩 시 Visual Studio 비정상 종료 [1]
600정성태10/9/200832267디버깅 기술: 18. TFS Team Build + Source Server = 소스 코드 디버깅 [3]
... 166  167  168  169  170  171  172  173  174  [175]  176  177  178  179  180  ...