Re: Local User Contral in IE with no web server involved???
From: Peter Bromley (nospam_at_nowhere.com)
Date: 03/14/04
- Next message: id: "Re: RichTextBox and colouring specific text - problem"
- Previous message: Evgeny Zoldin: "Change height of item of ListBox as it's created"
- In reply to: Shawn Anderson: "Re: Local User Contral in IE with no web server involved???"
- Messages sorted by: [ date ] [ thread ]
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 >
- Next message: id: "Re: RichTextBox and colouring specific text - problem"
- Previous message: Evgeny Zoldin: "Change height of item of ListBox as it's created"
- In reply to: Shawn Anderson: "Re: Local User Contral in IE with no web server involved???"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|