Microsoft MVP성태의 닷넷 이야기
스마트 클라이언트 - Diagnosing Control in browser issues [링크 복사], [링크+제목 복사],
조회: 10995
글쓴 사람
정성태 (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)
900정성태12/19/20079877Debug : 33. RegEx 의 Compiled 옵션 버그
899정성태12/16/200731320인기 순위 정리
898정성태12/15/200710795TFS : 149. TFS Dependency Replicator
897정성태12/14/200710248TFS : 148. TFS Build Virtualizer
896정성태12/13/200711958Vista : 49. 명시적으로 지원되는 Windows Explorer 종료 방법
895정성태12/13/200710607개발 환경 구성: 117. MSBuild Sidekick V2 beta
894정성태12/12/200710968VS.NET IDE : 39. Orcas for Architects 관련 자료
893정성태12/10/200710586TFS : 147. Fake/Dummy 빌드
892정성태12/6/200710075윈도우의 대기 및 수면 모드 문제에 대처하는 방법
891정성태12/6/200710055.NET : 68. Volta 프로젝트 CTP [1]
890정성태12/4/200710877.NET : 67. System.Drawing.Color 구조체 직렬화 방법
889정성태12/1/200710424개발 환경 구성: 116. MSBuild - 빌드/배포 후 소스 파일 보관
888정성태12/1/200710571TFS : 146. Visual Studio Team System Web Access 2008 Power Tool
887정성태11/29/200710218.NET : 66. Microsoft Visual Studio International Pack 1.0 Beta1
886정성태11/27/200711156IIS : 19. IIS 7 에서의 SSL 성능 개선
885정성태11/26/200710524TFS : 145. Rosario 11월 CTP 에서의 WiX 사용설명서
884정성태11/23/200710175TFS : 144. VSTS Rosario CTP 10 문서
883정성태11/21/200710337TFS : 143. TFS 2008 의 신기능
882정성태11/20/200710537.NET 3.5 : 36. SQL 데이터베이스 와 LINQ to SQL 디자이너 [2]
881정성태11/20/200710243Debug : 32. From Unhandled Exception to Debugger Attach
880정성태11/18/200710845.NET 3.5 : 35. 관련 기술 링크 모음
879정성태11/17/20079678TFS : 142. VSTS 2008 TFS 설치 가이드
878정성태11/16/200710654.NET 3.5 : 34. LINQ to XML RTM 온라인 문서
877정성태11/16/200710253Debug : 31. VS.NET IDE 에서의 SOS 사용 소개
876정성태11/14/200711079.NET 3.5 : 33. 신규 .NET 3.5 백서
875정성태11/9/200710364.NET : 66. 한 눈으로 확인하는 .NET 데이터 액세스 계층
1  2  3  4  5  6  7  8  9  10  11  [12]  13  14  15  ...