Microsoft MVP성태의 닷넷 이야기
스마트 클라이언트 - Diagnosing Control in browser issues [링크 복사], [링크+제목 복사],
조회: 11059
글쓴 사람
정성태 (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)
675정성태3/7/20079484Debug : 9. 실행 시 IL 코드 교체 프로파일러
674정성태3/7/200710008.NET 3.5 : 6. Orcas 3월 CTP 에 포함된 LINQ to Entities 예제 문제 수정
673정성태3/7/200710187VS.NET IDE : 22. XML 편집시 XSD 를 이용한 인텔리센스 제공
672정성태3/7/200710310개발 환경 구성: 84. Vista에서 ClickOnce 배포 환경 설정
671정성태3/6/200710322개발 환경 구성: 83. 지문 인식기 관련 프로그래밍
670정성태3/6/20079753개발 환경 구성: 82. Virtual PC 2007의 Vista에 대한 사운드 지원
669정성태3/6/20079819VS.NET IDE : 21. Orcas - 프로젝트 속성창 버그
668정성태3/6/20079724개발 환경 구성: 81. 소프트웨어적으로 Raid 0, 1, 5 구성하는 방법
667정성태3/6/20079637TFS : 86. Orcas에서 변화된 TFS Workspace 관리 방식 3가지
666정성태3/2/20079706VS.NET IDE : 20. Orcas - 스크립트 디버깅 기능 향상
665정성태3/1/200710173.NET 3.5 : 5. 새롭게 추가된 네트워킹 기능
664정성태3/1/20079903VS.NET IDE : 19. Visual Studio Code Metrics
663정성태3/1/200710051VS.NET IDE : 18. Orcas에 포함된 새로운 웹 폼 디자이너
662정성태3/1/200710863Office : 1. Visio 로 UI 프로토타입 설계
661정성태3/1/20079921TFS : 85. Visual Studio Team System Guidance
660정성태2/27/20079484.NET : 54. EntLib 3.0 의 새로운 AppBlock - Policy Injection
659정성태2/25/200710556개발 환경 구성: 80. 새로운 버전의 FxCop 을 빌드 과정에 포함
658정성태2/25/200710412TFS : 84. FxCop 사용자 정의 룰을 위한 단위 테스트 설정
657정성태2/23/200710484Vista : 39. 2초 내에 Resume이 되도록 환경 설정
656정성태2/21/200710620Vista : 38. 개발자를 위한 UAC 관련 문서
655정성태2/21/200710317개발 환경 구성: 79. MSSQL Reporting Service 구성
654정성태2/21/20079718.NET 3.0 : 14. System.IdentityModel.Selectors.CardSpaceSelector 클래스 소개
653정성태2/21/20079808TFS : 83. 팀 빌드 과정에 ClickOnce 빌드 포함
652정성태2/19/200710564개발 환경 구성: 78. FastCGI를 이용하여 Ruby on Rails 를 IIS 에서 구동
651정성태2/18/200710217Vista : 37. x64 - 바이오스 업데이트
650정성태2/17/200710045TFS : 82. ASP.NET - Team Build 후에 파일 복사
... 16  17  18  19  20  [21]  22  23  24  25  26  27  28  29  30  ...