Microsoft MVP성태의 닷넷 이야기
스마트 클라이언트 - Diagnosing Control in browser issues [링크 복사], [링크+제목 복사],
조회: 11086
글쓴 사람
정성태 (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]


비밀번호

댓글 작성자
 




... [46]  47 
NoWriterDateCnt.TitleFile(s)
43정성태12/28/200410156VSMT 소개: Physical Server to Virtual Server
68정성태3/2/200510165    답변글 [추가]: VSMT 소개: ADS 1.0
42정성태12/27/20049528VS.NET 2005 : What should I do if I get a message that says, "Team system server is not available; please contact your system administrator."?
41정성태12/25/20049972Ten things to know before starting VSTS Foundation Server Installation
40정성태12/25/20049810SQL Server 2005 에서 반가운 기능 : 재귀 SELECT 와 ROW_NUMBER
39정성태12/24/20049033VS.NET 2005 : Navigate the .NET Framework and Your Projects with "My"파일 다운로드1
38정성태12/24/20049088Smart Client Architecture and Design Guide
37정성태12/24/20049707Translation Guide: Moving Your Programs from Managed Extensions for C++ to C++/CLI
36정성태12/23/2004940813가지 주의 사항: Visual C++ .NET 프로그램을 Visual Studio 2005로 이식하기 전에 알아야 할 13가지 내용
35정성태12/26/20049867Windows Sharepoint Services 를 설치한 이후 ASP.NET 오류 문제파일 다운로드1
34정성태12/9/200410037SQL Server 구성이 실패파일 다운로드1
33정성태12/7/20049905RSS 에 대한 자세한 설명
32정성태12/5/20049631How To Troubleshoot MS DTC Firewall Issues
31정성태12/5/20049392HOWTO: Enable DTC Between Web Servers and SQL Servers Running Windows Server 2003
29정성태12/4/20049435IP 변경하는 NETSH 명령
28정성태11/20/20049618혼합 DLL 로드 문제
27정성태11/20/20049360Web Services Enhancements 2.0을 사용한 프로그래밍
26정성태11/20/20049770SQL 주입 공격을 사전에 차단하는 방법
25정성태10/20/20049386Invoking .NET Events from Native C++
24정성태10/16/20048782Windows Rights Management 서비스(RMS) 1.0
23정성태10/16/20049514[ASP.NET] Working with Client-Side Script
21정성태10/3/20049575HOWTO: ASP.NET 유틸리티를 사용하여 자격 증명 및 세션 상태 연결 문자열 암호화
20정성태10/3/20049547IE 에서 XML 파일을 보는 경우, XMLDocument 를 얻어내는 방법.
22정성태10/3/200410284    답변글 [내용 보강] .NET 언어에서 IE에 보여진 XMLDocument 개체 접근하기
19정성태10/3/20049256.NET 리모팅에서 MBR 개체를 전송하는 경우의 xxx.exe.config 파일 설정방법
18정성태9/19/200410001HTML SELECT 요소에 OPTION 요소를 채우는 C/C++ 예제파일 다운로드1
... [46]  47