Microsoft MVP성태의 닷넷 이야기
스마트 클라이언트 - Diagnosing Control in browser issues [링크 복사], [링크+제목 복사],
조회: 11066
글쓴 사람
정성태 (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)
525정성태11/14/200610420Vista : 14. .NET 개발자들을 위한 Vista 기능 소개
524정성태11/13/20069960TFS : 55. Annotate 소개
523정성태11/13/200611544.NET 3.0 : 7. WPF - EXE 유형의 프로젝트를 XBAP 유형으로 변경
522정성태11/12/200611092.NET : 33. SynchronizationContext 에 대해서.
521정성태11/12/20069703SDK : 7. Sessions, Window Stations, Desktops
520정성태11/12/200611238Vista : 13. LLTD(Link Layer Topology Discovery)가 뭘까요?
519정성태11/12/20069707Vista : 12. Network Location Type - Public, Private, Domain - 에 대한 설명.
518정성태11/12/20069524개발 환경 구성: 53. Sandcastle - 일반적인 HTML 파일 이름 생성
517정성태11/11/200610318.NET : 32. Enterprise Library - 예외 처리 가이드 (PPT 및 소스 코드) [2]파일 다운로드1
516정성태11/10/20069212개발 환경 구성: 52. Vista - 원격 터미널 클라이언트에서 다중 모니터 지원
515정성태11/8/200610178SDK : 6. 패치 툴 소개 ( mspatcha, mspatchc )파일 다운로드1
514정성태11/8/20069947.NET : 31. MSN Messenger 연동 라이브러리
513정성태11/8/200611363Visual C++ : 5. Browser Helper Object 제작 방법
512정성태11/8/200611538SDK : 5. Tiny PE - 가장 작은 PE 파일 제작파일 다운로드1
511정성태11/8/200610608개발 환경 구성: 51. Extended Validation (EV) SSL 인증서 소식 [1]
510정성태11/7/200610343VS.NET IDE : 13. Guidance Automation Toolkit and Domain-Specific Language Tools for Visual Studio 2005: Integration Scenarios
509정성태11/7/20069886.NET 3.0 : 6. ADO.NET Samples for Visual Studio Code Name “Orcas” - October CTP
508정성태11/6/20069675TFS : 54. 새로운 TFS 리포트 생성
507정성태11/5/20069467.NET : 30. LINQ 관련 자료
506정성태11/5/20069762.NET : 29. .NET Fusion API
505정성태11/4/20069565.NET : 28. The .NET Developer's Guide to Identity
504정성태11/4/20069783.NET : 27. ASP.NET 2.0 Resource-Provider 모델 확장
503정성태11/4/20069761TFS : 53. VSTS 관련 자료 링크 모음
502정성태11/4/20069533TFS : 52. Data-Tier Server 미러링
501정성태11/3/20069748TFS : 51. TFS 증분 빌드 환경 설정
500정성태11/2/20069611TFS : 50. TfsAlert 0.3.0.0 릴리스
... 16  17  18  19  20  21  22  23  24  25  26  [27]  28  29  30  ...