Microsoft MVP성태의 닷넷 이야기
스마트 클라이언트 - Diagnosing Control in browser issues [링크 복사], [링크+제목 복사],
조회: 10997
글쓴 사람
정성태 (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]


비밀번호

댓글 작성자
 




1  2  3  4  5  6  7  8  9  10  11  12  13  14  [15]  ...
NoWriterDateCnt.TitleFile(s)
825정성태8/23/200710169개발 환경 구성: 110. AutoExNT 도구
824정성태8/16/200710840개발 환경 구성: 109. Code Project Browser Add-In for Visual Studio 2005
823정성태8/16/200713863IIS : 16. 인증서 검증 - CRL 체크 설정
822정성태8/16/200710779TFS : 124. VSTS - Architecture Edition Power Tools - 8월 CTP
821정성태8/15/20079798TFS : 123. TFS 2008의 팀 빌드 관련 소개
820정성태8/14/200711312.NET 3.5 : 28. 한번 더 생각해 보는 C# 3.0 의 개체 초기화 지정자(Object Initializers)
819정성태8/13/200710777TFS : 122. DB Professional - Power Tools 배포
818정성태8/13/200711186VS.NET IDE : 38. Visual Studio 2008 Shell 맛보기 [1]
817정성태8/10/200710924VS.NET IDE : 37. Customising WCF Proxy Generation in Visual Studio 2008
816정성태8/7/200711038TFS : 121. TFS 가이드 최종 버전
815정성태8/7/200710338TFS : 120. Rosario - 개선된 작업항목 추적 기능 [1]
814정성태8/6/200710556TFS : 119. MSBuild 를 이용한 위성 어셈블리 자동 빌드
813정성태7/31/200710704TFS : 118. TeamPlain 의 진화 : Team System Web Access Power Tool
812정성태7/31/200710236TFS : 117. Offline 모드 지원
811정성태7/31/200710674개발 환경 구성: 108. 문서 - AD 서버를 가상 머신으로 운영.
810정성태7/27/200710113TFS : 116. VS.NET 2008 TFS 설치 가이드 (베타)
809정성태7/27/200710684TFS : 115. 인터넷 연결 및 HTTPS 설정
808정성태7/19/200710686TFS : 114. MSF Process Guidance Generator Tool
807정성태7/19/200713947개발 환경 구성: 107. 터미널 서비스에서 꼭 알아야 할 기능 - shadow [1]
806정성태7/15/200710337TFS : 113. TFS 2008 - SharePoint 분리 및 통합 지원
805정성태7/15/200710399TFS : 112. MSBuild 프로젝트 이외의 프로젝트를 빌드
804정성태7/14/200711962TFS : 111. 팀 빌드에서 셋업 프로젝트 연결 [1]
803정성태7/14/200710401개발 환경 구성: 106. 롱혼 터미널 서비스에서의 콘솔 관리
802정성태7/13/200710681TFS : 110. 팀 빌드 - 테스트 결과를 알아내는 MSBuild Task
801정성태7/12/200710805개발 환경 구성: 105. 환경 설정 정보 암호화
800정성태7/10/200712161.NET 3.5 : 27. IQueryable 구현 방법 [3]
1  2  3  4  5  6  7  8  9  10  11  12  13  14  [15]  ...