Microsoft MVP성태의 닷넷 이야기
스마트 클라이언트 - Diagnosing Control in browser issues [링크 복사], [링크+제목 복사],
조회: 11063
글쓴 사람
정성태 (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)
625정성태2/2/20079600TFS : 73. Team System 관련 유틸리티 목록
624정성태2/1/200710754개발 환경 구성: 72. Fiddler - IE 7 + Cassini 에서 동작되지 않는 문제 [2]
623정성태2/1/20079959TFS : 72. TFS 언어 변경
622정성태1/30/20079554.NET : 53. ASP.NET 2.0 AJAX Extension 1.0 - 소스 코드
621정성태1/30/200710123TFS : 71. Code Analysis 정책을 유형에 따라 적용하는 방법
620정성태1/29/200710803VS.NET IDE : 17. C#, VB.NET, VC++ 단축키 모음
619정성태1/28/200710340IIS : 12. 비스타 버전별 IIS 기능 차이
618정성태1/28/20079584Debug : 8. RuntimeWrappedException 사용 이해
617정성태1/27/200710095TFS : 70. 웹 서비스 구현 없이 TFS 통지 받기파일 다운로드1
616정성태1/27/200710796IIS : 11. Visual SourceSafe 웹 서비스가 비스타 IIS 7에서 지원되지 않는 문제
615정성태1/25/20079940TFS : 69. Workgroup 으로 설치된 TFS 를 Domain 으로 승격하는 방법
614정성태1/25/200710546개발 환경 구성: 71. 현재 프로세스에 로딩된 모듈 중에서 NGen 되지 않은 모듈 검색
613정성태1/25/200710473IIS : 10. IE에 최적화된 성능을 내는 JScript 코드 작성
612정성태1/25/20079578Debug : 7. WinLogon.exe 프로세스 디버깅하는 방법
611정성태1/25/200710033.NET : 52. Team System 단위 테스트에 관한 PDF 문서파일 다운로드1
610정성태1/25/200710012.NET : 51. FxCop 관련 PDF 문서파일 다운로드1
609정성태1/24/20079704.NET : 50. 공급자 독립적인 코드 작성 [2]
608정성태1/23/20079862TFS : 68. TFS Proxy 서버 설치하는 방법
607정성태1/23/20079491이미 제공되는 예외 클래스들에 대한 적절한 사용법 설명
606정성태1/23/200712450TFS : 67. TFS 명령행 인자
605정성태1/23/20078891TFS : 66. 차기 TFS 파워툴 - TFSServerManager / TFSServerMonitor
603정성태1/22/200710024Vista : 30. Property Handler가 필요한 때.
602정성태1/22/200710272IIS : 9. 디렉터리 열람을 위한 HttpModule파일 다운로드1
601정성태1/22/20079355개발 환경 구성: 70. Web Client Software Factory 설치 가이드(비스타)
600정성태1/21/20079845개발 환경 구성: 69. Virtual PC/Server에서의 가상 네트워크 어댑터 추가 방법
599정성태1/21/200710122Vista : 29. UAC 와 보안 데스크탑
... 16  17  18  19  20  21  22  [23]  24  25  26  27  28  29  30  ...