HOW TO: ??????? ??? IEHost Debug ??????? ???? .NET ?? Internet Explorer

?????? ????????? ?????? ?????????
???? ???????: 313892 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ????? ????? ????? ????? ??????? IEHost.dll ?????? ????? "????? ??????" - ????? (CLR) ??????? ???? ??? ??????? ???? Internet Explorer.

SDK Microsoft .NET Framework ????? ???? ????? ??????? Fuslogvw.exe ?????? ???????? ???? ?? ???? ??? ??????? ???? ????? .NET ?? Internet Explorer. "fusion," ????? ???? ??? ?????? ???????? ??? ????? ?? ?? ????? ????? ??? ????? ???????? ?????? ?? Microsoft. ????? Fuslogvw.exe ?????? ??????? ??? ?? ????? ??????? ?? ???????.

??? IEHost.dll

??? ?????? ??????? ??????? .NET ?? Internet Explorer ???????? ??????. ?????? ?? ???? ????? MIME ???? ??? ?????? ?? Mscoree.dll ????? ???? ?????? ???????? ??????? ?? ??? MIME ???????/????? ???? - ??? ????? ???? Internet Explorer ?????? ??????? ??????? IMoniker BindToObject. ???? ???? ??????? ??? ???????? ?? ?? ??? ???? ??????? ???????? (PE) ?????? ?? ??? ??? ?????? ????? ???? ??? ???????. ??? ?? ??? ???? ??????? ?????? ????? ????? Internet Explorer ??????? ????? ?????.

?? ???? ????? ?????? ????? .NET ? ???? ??????? ????? ??????? IEHost ??????? ??? ???????? ??? ???? factory ????? ?? ?????? ???? ?? ?????? ???????. ??? ?????? ?????? ????? ?????? IEManager ???? ????? ?????? "?????? ?????????" (AppDomains) ?? Internet Explorer ? ???? ?????? ??? ??????? (???? ??? ? URL "??????" ??????? ") ?????? ???????? ???? ??????? ??? ?? ??? ?????.

?? ??? ????? ??????? ?? ????? ??????? ?? ?????? ?????? ?? ????? ???? ?? ???????? ?????. ??? ?? ????? ?? ????? ???? ActiveX ??? ?????? ? ???? ???? .NET ?? ??? ????? ????? ?? ??? ???? ????? grooved ??? ??? ?? ???? ???? ??????. ??????? ??? ????? ???? ?????? ??? ????? IEHost.

?????? ??? ??????? ?????? ??? MIME ????? ?????, ???? ??? ??? ??????? ????? ?????? ?? "????? ??????? ?? Microsoft:
260840?????: MIMEfilt ???? ??????? MIME ?? Internet Explorer

????? ??? ????? Debug IEHost

?????: ???? ??????? "???? ???????" ?????? ??? ?????? ?? ???? ???? ?????? ????? ???? ????? ????? ???? ???????. ??? ???? Microsoft ?? ???????? ???? ???? ?? ??????? "???? ???????" ?????? ??? ?????. ?????? "???? ???????" ??? ???????? ??????.
  1. ???? ??? ???? ?? ???? ??? ????? ????? regedit ?? ???? ??? ?????.
  2. ??? ???? ?? ???? ??? ????? ??????? ??????:
    HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework
  3. ????? ???? DWORD ???? DebugIEHost ??? ??? ???????; ????? ??? ???? ??? ?????.
  4. ????? ???? ????? ??????? IEHostLogFile. ????? ?????? ?????? (??? ?? ??? ??? ?????) ?? ????? ???? ???? ????? ?????? ??????? (??? ???? ??????? C:\Temp\IEDebug.log).

??????? ????? ?? ??? ??? ???????

????? ??? ????? ???? ??? ?????? ?????? IEHost ??? ????????? ???? ??? ??????? ?????? ????? .NET ??????: Microsoft.IE.Manager ? Microsoft.IE.SecureFactory. ??? ???? ??????:
Creating security manager

Microsoft.IE.Manager: Microsoft.IE.Manager: unique id lgth = 28
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://servername/DebugIEHost/DebugIEHost/test.htm
Microsoft.IE.SecureFactory: id = 86474707A316B616E65610000000
Microsoft.IE.SecureFactory: link = 
Microsoft.IE.SecureFactory: licenses = 
Microsoft.IE.Manager: Url = 
http://servername/DebugIEHost/DebugIEHost/test.htm
Microsoft.IE.Manager: UrlGetPartW returned 0
Microsoft.IE.Manager: CodeBase = http://servername
Microsoft.IE.Manager: Application = DebugIEHost/DebugIEHost
					
????? ??? ????????? URL ???? ?????? ?????? ?????? ??? ??????? ???? ??? ??? ???? ????????? ???????? ????????? ?? ????? ???????? ???????? ???? ????? ??? ??? ?????? (??? ??????? ????? ????).

????????? ?????? ????? ?? ???? ???? ??????? ????? ???? ??? ??????? ?? ??? ????? ??? ??? ??? ????? ????? ??????. ??? ???? ??????? ????? ?????? ??????? ??? ???? ?? ???? ?????:
public DebugIEHost() {
    // This call is required by the Windows.Forms Form Designer.
    InitializeComponent();

    // TODO: Add any initialization after the InitForm call
    FileStream fs = File.Open(@"C:\temp.tmp",System.IO.FileMode.CreateNew);
    StreamWriter sw = new System.IO.StreamWriter(fs);
    sw.WriteLine("Hello, world");
}
				
??? ??? ??????? ???? ??? ?????? ?? ?? ??? ???? ???? sited ?? Internet Explorer ???, ???? ???? ??????. ??? ???? ??? ????? ???? ???? ????? ??? ??? ?????. ???? ????? ?????? ???? ????? ??????? ?????: ??????? ????? (???? ??? ??? ?????? ???? ??????) ? ??????? ???? (??? ??? ?????? ??? ??????? ??????? ??? ???? ??????). ??? ???? ??????:
Microsoft.IE.SecureFactory: System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation.---->
System.Security.SecurityException: Request for the permission of 
type System.Security.Permissions.FileIOPermission, mscorlib, 
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 
failed.
   at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet 
grantedSet, PermissionSet deniedSet, CodeAccessPermission demand, 
PermissionToken permToken)
   ...
					
??????????? ?????? ????? ???? ?????? ??? ??? ??? ??? ??????:
The state of the failed permission was: 
<IPermission class="System.Security.Permissions.FileIOPermission, 
mscorlib, Version=1.0.3300.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089"
             version="1"
             Read="C:\temp.tmp"
             Write="C:\temp.tmp"/>
					

?????

?????? ??? ???? ?? ????????? ??? ????? ??????? ?? .NET Framework SDK ? ?? ?????? ???? MSDN ??????:
Debugging with the Microsoft .NET Framework SDK

???????

???? ???????: 313892 - ????? ??? ??????: 02/?? ?????/1424 - ??????: 5.1
????? ???
  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 1.0
  • Microsoft Internet Explorer 5.5
  • Microsoft Internet Explorer (Programming) 6.0
????? ??????: 
kbmt kbctrl kbmisctools kbdebug kbhowtomaster KB313892 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????313892

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com