Re: Question about embedded winform controls

From: A Lonely Programmer (SpamaLinuxUser_at_NoSpamForMe.com)
Date: 02/17/04


Date: Tue, 17 Feb 2004 09:09:58 -0600

Kristof,

Thanks, this is exactly the answer i was looking for. What if, let's say, a
user didn't go to 2003 (because whidbey was all ready on the horizon and is
promising to not rewrite my code) and is still using the original. Is there
work arounds that do the same thing for 1.0?

thanks a ton for your time

Steve

"Kristof Van Praet" <kristof_vanpraet@hotmail.com> wrote in message
news:eB1pFTW9DHA.3456@TK2MSFTNGP09.phx.gbl...
> You cannot acces the local filesystem from an embedded windows user
control.
> That is a security issue. Downloaded assemblies are placed in the download
> cache and from there, they cannot access local resources (file system, db,
> printer,...).
>
> You can change the security policy for the assembly that you download.
This
> can be done in the Microsoft .NET Framework 1.1 Configuration console or
the
> Microsoft .NET Framework 1.1 Wizards. These can be found in the
Administrive
> tools window. There you can trust the assembly you want to use in the
> browser. Not that this has to be done for every client machine that uses
> this control.
>
> I don't know if this was the answer you were looking for.
> Regards.
> Kristof
>
>
>
>
> "A Lonely Programmer" <SpamaLinuxUser@NoSpamForMe.com> wrote in message
> news:uuCK5MW9DHA.2316@TK2MSFTNGP09.phx.gbl...
> Hi group,
>
> Consider the following code:
>
> Dim dirinfo As New DirectoryInfo("c:\test")
> Dim fileinfo() As FileInfo = dirinfo.GetFiles
> Dim fi As FileInfo
> For Each fi In fileinfo
> TreeView2.Nodes.Add(fi.Name)
> Next
>
>
> If instead of adding nodes to a treeview, i throw in a response.write the
> following works perfectly fine in an aspx page. However, the same code in
an
> embedded windows control causes the component to not load.
> everything else in the component will load if i take that out and throw
in
> random values. I suspect this is a security issue but the fact that it
works
> in an aspx page is throwing me off. Currently i am putting the dll into
the
> directory of the page, will it make any difference if i add it to the GAC?
I
> am so close to something really beautiful. any insight would be
appreciated.
>
> Thanks
>
> Steve
>
>



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: Question about embedded winform controls
    ... thanks again kristof ... Downloaded assemblies are placed in the ... >> You can change the security policy for the assembly that you download. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Download Site - Zu langsam
    ... Habe eine eigene Download Website gemacht über die ein File Download ... 8KBit über die Leitung rüberkommen, ... hier der Auszug aus der Datei: ... FileInfo fileInfo; ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: Loading Dll assemblies at runtime
    ... You cannot put an assembly without a strong name in the GAC as without a strong name there is no way the assembly loader can distinguish between two assemblies with the same name from different authors, and we're back to DLL Hell ... Is it possible to load an assembly at runtime using reflection where the dll ... FileInfo[] dllList = GetAssemblyNames; ...
    (microsoft.public.dotnet.languages.csharp)