본문 바로가기

IT/응용 프로그램

VS2010 beta 2에서 MSHelpListener.exe 오류가 생길 때 해결 방법

Microsoft Visual Studio 2010 Beta 2에서 MSHelpListener(도움말 프로그램)을 켜자마자 오류가 생겨서 꺼질 때(Microsoft에 보고하겠냐고 묻는 오류 메시지가 나올 때) 해결 방법입니다.

이는 HelpListener가 자신의 웹서버를 만들어 가동시키기 때문에 생기는 것으로, 80번 포트가 다른 프로그램에 의해 사용되고 있을 때 생깁니다.

해결 방법은 C:\program files\Microsoft Help\v3.0\readme_eng.htm 파일의
4.0 Known Issues 5번 항목에 설명되어 있습니다.

If port 80 is used by another process (not via the http.sys service) then the Help listener will not be able to attach and use port 80 and will fail.  The port number can be changed by adding a string registry value ListenerPort under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Help3 with the value of the port to use (eg. 81).  Due to the http.sys ACL settings it is necessary to run the following http.sys configuration command from an admin elevated command line.  On Vista, Win2k8, and Windows 7 run the following native command:

netsh http add urlacl url=http://127.0.0.1:<port number>/help/ sddl=D:(A;;GX;;;WD)

On Windows Xp, and Win2K3 run the following command:

httpcfg set urlacl /u http://127.0.0.1:<port number>/help/ /a D:(A;;GX;;;WD)

If the command is not found then it might be necessary to download the httpcfg.exe from Microsoft as part of the Windows XP Service Pack 2 support Tools (http://www.microsoft.com/downloads/details.aspx?amp;displaylang=en&familyid=49ae8576-9bb9-4126-9761-ba8011fabf38&displaylang=en).

Now the Microsoft Help Listener will run on the selected port number.

간단히 설명하면
우선 [시작] - [실행]에서 regedit를 실행시킵니다.
그리고 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Help3 폴더로 들어갑니다.
여기에서 마우스 오른쪽 단추를 눌러 [새로 만들기] - [문자열 값]을 선택하여
이름은 ListenerPort으로, 값은 다른 프로그램이 사용하지 않는 포트 번호(보기 : 81)로 설정합니다.
그리고 다시 Visual Studio 2010 도움말을 실행시켜 보세요.

그래도 실행이 안 되면 명령 프롬프트에서

Windows Vista, 2008, 7의 경우
netsh http add urlacl url=http://127.0.0.1:<port number>/help/ sddl=D:(A;;GX;;;WD)

Windows XP의 경우
httpcfg set urlacl /u http://127.0.0.1:<port number>/help/ /a D:(A;;GX;;;WD)

를 실행시킵니다. 여기에서 포트 번호는 알맞은 포트 번호(보기 : 81)로 바꿉니다.

Windows XP에서 위의 파일을 찾지 못하면 http://www.microsoft.com/downloads/details.aspx?amp;displaylang=en&familyid=49ae8576-9bb9-4126-9761-ba8011fabf38&displaylang=en에서 Windows XP Service Pack 2 support Tools를 다운로드 받으면 됩니다.