Microsoft MVP성태의 닷넷 이야기
스마트 클라이언트 - Diagnosing Control in browser issues [링크 복사], [링크+제목 복사],
조회: 11058
글쓴 사람
정성태 (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)
700정성태3/27/20079570Visual C++ : 9. 실행시에 Manifest 파일 선택
699정성태3/26/200710273TFS : 91. TeamPlain 제품 TFS 라이선스를 통해 무료 제공
698정성태3/24/200710154Vista : 40. 바탕화면 공유 API
697정성태3/24/20079213개발 환경 구성: 87. IE 7 단축키
696정성태3/24/200710167.NET 3.5 : 11. LINQ to SQL - Linq 구문이 실제로 어떤 SQL 문인지 확인하는 방법
695정성태3/23/200714551개발 환경 구성: 86. 비스타 - 무선 ad-hoc 네트워크 생성파일 다운로드1
694정성태3/22/200710146TFS : 90. 브랜치 기능에 대한 가이드를 담은 문서 [1]
693정성태3/21/200710569Debug : 11. 프로세스 정지 상태를 위한 AdPlus 사용 예
692정성태3/20/200710858TFS : 89. 개별 솔루션에 대해 사용자 정의 속성값 전달하는 방법
691정성태3/19/200710139.NET 3.0 : 16. Visual Studio 2005 ToolBox for Windows CardSpace
690정성태3/19/200710169TFS : 88. 단위 테스트 - VSTS for DB Pro
689정성태3/19/200710016개발 환경 구성: 85. ASP.NET 2.0 을 사용하여 웹 표준 사이트 제작
688정성태3/14/200710672VS.NET IDE : 27. Func-eval 기능
687정성태3/14/200710117VS.NET IDE : 26. Orcas - VC++ /MPn 스위치
686정성태3/14/20079787TFS : 87. 64비트 시스템에서의 TFS 설치
685정성태3/14/20079864VS.NET IDE : 25. Orcas - 데이터 관련 툴 기능
684정성태3/14/200710511.NET 3.5 : 10. Extension Method
683정성태3/13/200710485.NET 3.5 : 9. 새로 추가된 TraceListener - EventSchemaTraceListener
682정성태3/13/200710601.NET 3.0 : 15. XAML 내용을 XPS 문서로 변환
681정성태3/13/20079958.NET 3.5 : 8. Orcas 3월 CTP 버전에 맞게 수정된 LINQ Samples
680정성태3/13/20079957.NET : 55. 비스타의 Command Link Control 사용
679정성태3/13/20079550VS.NET IDE : 24. Orcas - ClickOnce의 기능을 이어받는 IE 임베딩 유형의 스마트 클라이언트 [2]
678정성태3/9/20079828Debug : 10. MPI 프로그램에 대한 디버깅 환경 설정
677정성태3/8/200710420.NET 3.5 : 7. Orcas 3월 CTP 에 맞는 WF/WCF 예제 코드
676정성태3/8/20079789VS.NET IDE : 23. 문자열 다국어 지원을 위한 Refactoring Tool
675정성태3/7/20079484Debug : 9. 실행 시 IL 코드 교체 프로파일러
... 16  17  18  19  [20]  21  22  23  24  25  26  27  28  29  30  ...