Microsoft MVP성태의 닷넷 이야기
스마트 클라이언트 - Diagnosing Control in browser issues [링크 복사], [링크+제목 복사],
조회: 11071
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 4개 있습니다.)
원본 : http://blogs.msdn.com/andrewdownum/archive/2006/02/10/Using_DebugIEHost.aspx

Diagnosing Control in browser issues

 

Controls hosted in the browser can often be difficult to debug.  If anything goes wrong with loading the dll or constructing the control instance, you will get nothing but the standard IE "something is wrong" image (the small icon in the top-left with colored shapes). 

Here's how I recommend diagnosing these issues:

1.  Turn on the debug log for IEHost

  • Add a DWORD to
    HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework called "DebugIEHost" and set the value to 1
  • Add a String to
    HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework called "IEHostLogFile" with the full path (I use c:\windows\temp\IEHostLog.log)

2.  Restart Internet Explorer (the log won't work if you don't) and navigate to your control.

3.  Look for the log file (it will be in the location you specified and appended with a number (usually 1).

 

It will look something like this for a successful control instantiation:

Creating security manager

Microsoft.IE.Manager: Microsoft.IE.Manager: unique id lgth = 46

Microsoft.IE.SecureFactory: Create SecureFactory() with security information

Microsoft.IE.Manager: Created secure factory

Microsoft.IE.SecureFactory: Creating instance of the object in the correct domain

Microsoft.IE.SecureFactory: pUrl = http://ControlHostDomain/path/to/page/test.html

Microsoft.IE.SecureFactory: id = 86474707A3163707E65647D24756374777562610000000

Microsoft.IE.SecureFactory: link =

Microsoft.IE.SecureFactory: licenses =

Microsoft.IE.Manager: Url = http://ControlHostDomain/path/to/page/test.html

Microsoft.IE.Manager: UrlGetPartW returned 0

Microsoft.IE.Manager: UrlGetPartW returned 80070057

Microsoft.IE.Manager: CodeBase = http://ControlHostDomain

Microsoft.IE.Manager: Application = path/to/page

Microsoft.IE.Manager: Found a codebase

Microsoft.IE.Manager: UrlCanonicalize returned 0

Microsoft.IE.SecureFactory: URL codeBase: http://ControlHostDomain/

Microsoft.IE.SecureFactory: URL application: path/to/page

Microsoft.IE.SecureFactory: Locating domain for http://ControlHostDomain/

Microsoft.IE.IDKey: Created key

Microsoft.IE.Manager: The domain does not exist.

Microsoft.IE.IDKey: Created key

Microsoft.IE.Manager: The domain does not exist.

Microsoft.IE.SecureFactory: Need to create domain

Microsoft.IE.SecureFactory: Application base: http://ControlHostDomain/

Microsoft.IE.SecureFactory: Private Bin Path: bin

Microsoft.IE.IDKey: Created key

Microsoft.IE.SecureFactory: Trying to create instance of type http://ControlHostDomain/path/to/page/MyControl.dll#MyControl

Microsoft.IE.SecureFactory: Created instance of type http://ControlHostDomain/path/to/page/MyControl.dll::MyControl

If you don't get a log file at all, it is probably because the control assembly could not be downloaded at all.  Check to ensure that the classid property is correct and that your web server is configured to serve .dll files


[연관 글]






[최초 등록일: ]
[최종 수정일: 4/14/2006]


비밀번호

댓글 작성자
 




... 16  17  [18]  19  20  21  22  23  24  25  26  27  28  29  30  ...
NoWriterDateCnt.TitleFile(s)
750정성태5/18/200711174IIS : 15. WCAT 6.3
749정성태5/17/200710866TFS : 99. MSF Process Template for CMMI Process Improvement - v4.1 [1]
748정성태5/15/20079597VS.NET IDE : 32. Add-in : Paste XML as serializable type
747정성태5/15/200710159.NET 3.5 : 16. ADO.NET Orcas Sample Provider - Beta1
746정성태5/15/20079721VS.NET IDE : 31. Orcas - PowerTools for Team Architect
745정성태5/12/20079670VS.NET IDE : 30. Orcas - TDD 를 위한 기능 강화
744정성태5/10/20079514.NET 3.5 : 15. Orcas - ADO.NET vNext 맛보기
743정성태5/10/20079919TFS : 98. VSTT 의 수동 테스트를 위한 엑셀 파일 등록 방법
742정성태5/9/20079768기타 : 2. Javascript 의 객체지향 구현.
741정성태5/9/200710171VS.NET IDE : 29. Orcas - 보다 더 엄격한 네이밍/디자인 규칙 적용
740정성태5/9/200710015개발 환경 구성: 98. USB 하드 드라이브를 XP 부팅 가능하게 만드는 방법
739정성태5/4/200710250.NET 3.0 : 20. CardSpace를 웹 사이트에 적용하는 방법
738정성태5/4/200710840개발 환경 구성: 97. WIX 사례 - 제어판에 응용 프로그램 등록
737정성태5/1/20079470개발 환경 구성: 96. VPC 에 BitLocker 구성
736정성태4/28/20079588Debug : 17. WinDBG 에서의 함수 호출
735정성태4/26/20079998IIS : 14. IIS 7의 새로운 기능들 [1]
734정성태4/26/200710361IIS : 13. HTTP 연결 프로세스 == SYSTEM ?
732정성태4/26/200710027Debug : 16. 해제된 DLL 로 인한 문제가 발생했을 때의 원인 추적.파일 다운로드1
731정성태4/26/200710116.NET 3.0 : 19. WCF 서비스 호스트의 using 처리에 대해.
730정성태4/25/20079858TFS : 97. 프로그래밍을 통한 팀 빌드 실행 [1]
733정성태4/26/20079712    답변글 TFS : 97.1 프로그래밍을 통한 팀 빌드 실행 - PowerShell 버전
729정성태4/24/200711168.NET : 57. "Index was outside the bounds of the array" 공개 패치
728정성태4/23/20079911.NET 3.5 : 14. Orcas 에 소개되는 새로운 기능 - Query Syntax
727정성태4/23/20079526개발 환경 구성: 95. NetPing 유틸리티 소개
726정성태4/23/20079986TFS : 96. TFS Migration and Synchronization Toolkit
725정성태4/22/200711487개발 환경 구성: 94. App.config 의 설정 분리 방법
... 16  17  [18]  19  20  21  22  23  24  25  26  27  28  29  30  ...