Re: Local User Contral in IE with no web server involved???

From: Peter Bromley (nospam_at_nowhere.com)
Date: 03/14/04


Date: Mon, 15 Mar 2004 10:26:12 +1300

I'm sorry but this is quite wrong. This is a designed limitation (quite
rightly) enforced by MS for security reasons.

You have two options when enbedding a .NET control in a html page using
the OBJECT tag.

1. If the .NET control located on a remote or local web service, use
codebase="path". The path here may be relative to the web page or
absolute. .NET will check the versioning of the control.

2. If the .NET control is not downloaded, you must
    a) sign your control with a strong name
    b) install your control into the GAC
    c) register your control's classes COM interfaces into the registry
    d) use codebase="UIID" in your OBJECT tag

In other words the control must be installed on the client machine using
a (perhaps downloadable) installer program.

You may have further security requirements affecting the .NET security
configuration but I'm sure this is enough to get you started.

Some MSDN links:

ms-help://MS.MSDNQTR.2003FEB.1033/dnnetsec/html/netframesecover.htm (An
Overview of Security in the .NET Framework).

ms-help://MS.MSDNQTR.2003FEB.1033/dnmag02/html/UserCtrl.htm (DHTML and
.NET: Host Secure, Lightweight Client-Side Controls in Microsoft
Internet Exlorer).

ms-help://MS.MSDNQTR.2003FEB.1033/enu_kbnetframeworkkb/en-us/netframeworkkb/Q305624.htm
(PRB: Cannot Host .NET User Controls in Internet Explorer 6.0 from File
System).

You should be able to search for and find these on msdn.microsoft.com as
well.

Hope this helps.

-- 
If you wish to reply to me directly, my addres is spam proofed as:
pbromley at adi dot co dot nz
Or if you prefer - nospam@nowhere.com  :-)
Shawn Anderson wrote:
> You would think that would work, but it doesn't.  It has something to do
> with the way that Microsoft seems to have hosted the .NET controls inside
> IE.  The DLL that is responsible for loading the .NET user control one is
> activated if IE detects that a control is being downloaded from a remote
> location.  At least that is what I have observed. I find it extremely
> annoying and rather poor planning on their part to have this limitation :-/
> Ahh well, here is hoping that they will fix this in an update to IE.
> 
> Shawn
> 
> "Max" <Please.Answer@news.group> wrote in message
> news:OhEWXCOBEHA.2352@TK2MSFTNGP12.phx.gbl...
> 
>>I did not try it by I do not see any obstacle so far.
>>The .NET control should be registered as ActiveX.
>>Conserning the codebase:
>>- If the control is already installed - you may not specify the codebase  at all.
>>- You may specify the codebase as a local path (something like
>>file:///c:\mydir\myfile.cab").
>>-Explorer decides whether to download the control or not according to the
>>version.
>>if the control installed has greater version then specified - now download
>>occurs.
>>
>>If you are developing something that to be openned locally - pay attention
>>to HTA (hyper text application). It is just the same as MS HTML with few
>>extensions and it might solve problems that are caused by Internet
>> Explorer  security restrictions.
>>
>>Good Luck
>>"Shawn Anderson" <sanderson@eye-catcher.com> wrote in message
>>news:OE9v3fsAEHA.444@TK2MSFTNGP11.phx.gbl...
>>
>>>Does anyone know if it is possible to load a local user control into IE
>>>using something like the OBJECT tag?  The main catch is, this needs to
>>
>>work
>>
>>>on a computer that is NOT connected to the internet, so no web server.
> 
> So
> 
>>>far, it seams that IE will only host the control if it can download it
> 


Relevant Pages

  • Re: Question about embedded winform controls
    ... You cannot acces the local filesystem from an embedded windows user control. ... Downloaded assemblies are placed in the download ... You can change the security policy for the assembly that you download. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Opinions about GoToMyPC service?
    ... you control the mouse and keyboard just like you were sitting at that PC, ... PC download and install software applications? ... Thinking about trying the free 30 day trial period. ...
    (microsoft.public.windows.vista.general)
  • Cant Download/Install ActiveX Controls
    ... I am unable to download and install AciveX controls of any type from any ... When an activex control needs to be installed, I get the "yellow" banner at ...
    (microsoft.public.windowsxp.security_admin)
  • Re: MS02-047 + Terminal Service Web Client
    ... together an MSI installer for the redistributable control. ... Subscribe to Microsoft's Security Bulletins: ... >>> install these controls. ... >> This is from the bulletin describing the IE6 security patch ...
    (microsoft.public.win2000.security)
  • Re: resolution and sound
    ... As for the download, try here: ... Troubleshooting Windows XP ... >> Control program has not been installed. ... To install it use Add/Remove ...
    (microsoft.public.windowsxp.general)