Re: Question about embedded winform controls
From: A Lonely Programmer (SpamaLinuxUser_at_NoSpamForMe.com)
Date: 02/17/04
- Next message: A Lonely Programmer: "Re: Question about embedded winform controls"
- Previous message: hb: "Re: Need Urgent Help: fatal error CS0008"
- In reply to: Kristof Van Praet: "Re: Question about embedded winform controls"
- Next in thread: A Lonely Programmer: "Re: Question about embedded winform controls"
- Reply: A Lonely Programmer: "Re: Question about embedded winform controls"
- Messages sorted by: [ date ] [ thread ]
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
>
>
- Next message: A Lonely Programmer: "Re: Question about embedded winform controls"
- Previous message: hb: "Re: Need Urgent Help: fatal error CS0008"
- In reply to: Kristof Van Praet: "Re: Question about embedded winform controls"
- Next in thread: A Lonely Programmer: "Re: Question about embedded winform controls"
- Reply: A Lonely Programmer: "Re: Question about embedded winform controls"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|