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


비밀번호

댓글 작성자
 




... 31  32  33  [34]  35  36  37  38  39  40  41  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
346정성태6/29/20069235Debug : 1. How to build Mdbg apps파일 다운로드1
344정성태10/20/200611820Vista : 3. Vista에서 제거되는 DHTML Editing Control - 두 번째 소식
345정성태10/20/200610535    답변글 Vista : 3.1 [현상 1] Vista 에서 OWA 접근
351정성태10/20/200613806    답변글 Vista : 3.2 Vista에서 문제되는 웹 사이트
352정성태10/20/200611040    답변글 Vista : 3.3 Vista 관련 조각 코드파일 다운로드1
343정성태6/26/20069684TFS : 10. TFS Bug Snapper v1.0 Released
342정성태6/26/20069069TFS : 9. TFS Notification Web Services - Project Template 1.1 available
341정성태6/25/20069483.NET : 7. VCPROJ - Shared Source Common Language Infrastructure 2.0 Release파일 다운로드1
340정성태6/25/20068757개발환경 구성 : 7. XSLT on the fly.
339정성태6/25/20069223.NET : 6. 무료 - ByesRoad.NetSuit Library
337정성태10/20/200613417Vista : 2. Credential Provider Samples파일 다운로드1
336정성태6/23/20068830.NET : 5. BLINQ using LINQ
335정성태6/23/20069490개발환경 구성 : 6. MSBuild or Team Build Tasks in the Community
334정성태6/26/20068950TFS : 8. Customizing MSF Process Guidance
333정성태6/21/20069224VS.NET IDE : 6. The Visual Studio Hosting Process - VSHost.exe
332정성태6/21/20069269TFS : 7. Team Foundation Power Toys
331정성태6/21/20069018Debug: CardSpaces Crash 를 해결해 가는 디버깅 과정
330정성태10/20/200610350Vista : 1. New API - 스레드 대기 상태를 확인하는 방법 제공
329정성태6/21/20069134.NET : 4. Tech-Ed 2006 - WebCast 자료
328정성태6/23/20069825개발환경 구성 : 5. Robocopy GUI
327정성태6/18/200610457.NET : 3. Open XML을 다루는 코드 스니핏 [1]
326정성태6/18/20069645개발환경 구성 : 4. COM+ 서비스에서 인증서 사용.
325정성태6/17/20069508STL.NET
324정성태6/17/20069289개발환경 구성 : 3. Signed versions of the power toys available on MS Downloads
323정성태6/17/20069636개발환경 구성 : 2. the sandbox projects
322정성태6/17/200610089TFS : 6. TFS 데이터베이스 백업파일 다운로드1
... 31  32  33  [34]  35  36  37  38  39  40  41  42  43  44  45  ...