Microsoft MVP성태의 닷넷 이야기
스마트 클라이언트 - Diagnosing Control in browser issues [링크 복사], [링크+제목 복사],
조회: 11064
글쓴 사람
정성태 (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)
500정성태11/2/20069611TFS : 50. TfsAlert 0.3.0.0 릴리스
499정성태11/2/200610201개발 환경 구성: 50. VS.NET, .NET Framework QFE 패치
498정성태11/4/20069728TFS : 49. Team Foundation Administrator's Guide 문서 업데이트
497정성태11/1/20069689개발 환경 구성: 49. IE 7 의 "Search Provider" 기능 소개
496정성태11/4/20069204.NET : 26. Download the New Composite UI Application Block Reference Application from IdeaBlade
495정성태11/1/20069287개발 환경 구성: 48. XamlPadX (extended)
494정성태11/1/200610144TFS : 48. SandCastle Team Build targets 파일파일 다운로드1
493정성태10/31/20069425VS.NET IDE : 12. [Orcas] TreeDiff 지원
492정성태10/31/20069960개발 환경 구성: 47. SandCastle 과 NAnt 의 결합
491정성태10/28/200610098SDK : 4. PE/COFF 스펙
490정성태11/4/200613885.NET : 25. C# "const" 키워드와 "static readonly"의 차이
489정성태10/28/200610399Visual C++ : 4. VC++ 8.0 override 키워드 이해 [1]
488정성태10/26/20069824TFS : 47. TFS Application Tier 로부터 Sharepoint 분리해서 설치하는 방법
487정성태10/26/200610087TFS : 46. Project Server 2003 - Team Foundation connector released
486정성태10/25/20069272개발 환경 구성: 46. VS.NET Addin - 디렉터리 단위로 링크 방식으로 파일 추가
485정성태10/23/20069905.NET 3.0 : 5. WinFX (.NET 3.0) Series Presentation Slides
484정성태10/20/20069571개발 환경 구성: 45. Microsoft Best Practices Analyzer 1.0
483정성태10/20/20069353.NET 3.0 : 4. HostNameComparisonMode 의 이해
482정성태10/29/20069736TFS : 45. TeamPlain 1.1 now available
481정성태10/19/20069785TFS : 44. Project Server 2003 and Visual Studio Team System 2005 connector available!
480정성태10/19/20069606개발 환경 구성: 44. IE 7 에 포함된 RSS Platform MiniSDK파일 다운로드1
479정성태10/18/200610214x64 : 2. dynamic_cast is slow in x64
478정성태10/18/20069925개발 환경 구성: 43. IE 7 에서 달라지는 Accept-Language 헤더
477정성태10/18/20069792.NET : 24. ADO.Net 성능 향상 팁
476정성태10/18/200610948TFS : 43. WorkItem 항목 삭제
475정성태11/8/200610038개발 환경 구성: 42. VHD 파일을 가상 하드 디스크로 설정하는 방법파일 다운로드1
... 16  17  18  19  20  21  22  23  24  25  26  27  [28]  29  30  ...