성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Working with Rust Libraries from C#...
[정성태] Detecting blocking calls using asyn...
[정성태] 아쉽게도, 커뮤니티는 아니고 개인 블로그입니다. ^^
[정성태] 질문이 잘 이해가 안 됩니다. 우선, 해당 소스코드에서 ILis...
[양승조
] var대신 dinamic으로 선언해서 해결은 했습니다. 맞는 해...
[양승조
] 또 막혔습니다. ㅠㅠ var list = props[i].Ge...
[양승조
] 아. 감사합니다. 어제는 안됐던것 같은데....정신을 차려야겠네...
[정성태] "props[i].GetValue(props[i])" 코드에서 ...
[정성태] 저렇게 조각 코드 말고, 실제로 재현이 되는 예제 프로젝트를 압...
[정성태] Modules 창(Ctrl+Shift+U)을 띄워서, 해당 Op...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
닷넷
.NET 3.0
.NET 3.5
.NET 4.0
VC++
개발 환경 구성
제품 소개
VS.NET IDE
Vista
Windows 7
Windows 8
Windows 서버
Team Foundation Server
IIS
디버깅 기술
Win32
64비트
오피스
웹
기타
Phone
부모글 보이기/감추기
내용
원본 : <a href="http://blogs.msdn.com/andrewdownum/archive/2006/02/10/Using_DebugIEHost.aspx" target="_blank"> http://blogs.msdn.com/andrewdownum/archive/2006/02/10/Using_DebugIEHost.aspx</a> <hr /> <p style='mso-outline-level:1;margin:0in;font-weight:bold;font-family:Gulim; font-size:18.0pt'>Diagnosing Control in browser issues</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:18.0pt'> </p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>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). </p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Here's how I recommend diagnosing these issues:</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>1. Turn on the debug log for IEHost </p> <ul type=disc style='margin-left:1.0in;direction:ltr;unicode-bidi:embed; margin-top:0in;margin-bottom:0in'> <li style='mso-outline-level:2;margin-top:0;margin-bottom:0;vertical-align: middle;font-size:10.0pt'><span style='font-family:Gulim'>Add a DWORD to <br> HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework called "DebugIEHost" and set the value to 1</span></li> <li style='mso-outline-level:2;margin-top:0;margin-bottom:0;vertical-align: middle;font-size:10.0pt'><span style='font-family:Gulim'>Add a String to <br> HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework called "IEHostLogFile" with the full path (I use c:\windows\temp\IEHostLog.log)</span></li> </ul> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>2. Restart Internet Explorer (the log won't work if you don't) and navigate to your control.</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>3. Look for the log file (it will be in the location you specified and appended with a number (usually 1).</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'> </p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>It will look something like this for a successful control instantiation:</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Creating security manager</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.Manager: Microsoft.IE.Manager: unique id lgth = 46</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.SecureFactory: Create SecureFactory() with security information</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.Manager: Created secure factory</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.SecureFactory: Creating instance of the object in the correct domain</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.SecureFactory: pUrl = <a href="http://ControlHostDomain/path/to/page/test.html"><span style='color:blue'>http://ControlHostDomain/path/to/page/test.html</span></a></p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.SecureFactory: id = 86474707A3163707E65647D24756374777562610000000</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.SecureFactory: link = </p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.SecureFactory: licenses = </p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.Manager: Url = <a href="http://ControlHostDomain/path/to/page/test.html"><span style='color:blue'>http://ControlHostDomain/path/to/page/test.html</span></a></p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.Manager: UrlGetPartW returned 0</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.Manager: UrlGetPartW returned 80070057</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.Manager: CodeBase = <a href="http://ControlHostDomain"><span style='color:blue'>http://ControlHostDomain</span></a></p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.Manager: Application = path/to/page</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.Manager: Found a codebase</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.Manager: UrlCanonicalize returned 0</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.SecureFactory: URL codeBase: <a href="http://ControlHostDomain/"><span style='color:blue'>http://ControlHostDomain/</span></a></p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.SecureFactory: URL application: path/to/page</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.SecureFactory: Locating domain for <a href="http://ControlHostDomain/"><span style='color: blue'>http://ControlHostDomain/</span></a></p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.IDKey: Created key</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.Manager: The domain does not exist.</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.IDKey: Created key</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.Manager: The domain does not exist.</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.SecureFactory: Need to create domain</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.SecureFactory: Application base: <a href="http://ControlHostDomain/"><span style='color:blue'>http://ControlHostDomain/</span></a></p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.SecureFactory: Private Bin Path: bin</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.IDKey: Created key</p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.SecureFactory: Trying to create instance of type <a href="http://ControlHostDomain/path/to/page/MyControl.dll#MyControl"><span style='color:blue'>http://ControlHostDomain/path/to/page/MyControl.dll#MyControl</span></a></p> <p style='mso-outline-level:1;margin:0in;font-family:Gulim;font-size:10.0pt'>Microsoft.IE.SecureFactory: Created instance of type <a href="http://ControlHostDomain/path/to/page/MyControl.dll::MyControl"><span style='color:blue'>http://ControlHostDomain/path/to/page/MyControl.dll::MyControl</span></a></p> <p style='mso-outline-level:1;margin:0in;font-weight:bold;font-family:Gulim; font-size:10.0pt'>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</p>
첨부파일
스팸 방지용 인증 번호
1394
(왼쪽의 숫자를 입력해야 합니다.)