Re: host a windows user control File access



If you use the OpenFile() method you get back a stream that is read only - this works with the Intranet/Internet permission set.

In the IntranetZone you have unrestricted access to the file dialogs - including the SaveDialog.

If you need more - you have to modify the security policy on the client

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

I have an internal app that is complex enough that I'd like to user
either create a windows app or use a windows user control in an
aps.net web page.

The windows version uses the fileOpen component. I've modified the
program to be a user control and access the data for the controls via
a web service. I haven't found a clean way to use the file open
component so that the user can access a file for processing. Is this
possible? I know that this is breaking some internet security
standards, but it's an internal app. I'd like to avoid a messy
situation where the framework security needs to be modified on the
client.

If this isn't possible, can someone suggest a better design strategy?

App Overview:
------------------------
Read data from db to poplute datasets need in the processing
User reads in a file from disk that needs some heavy UI processing
The results are sent back to the db
I really appreciate any suggestions. I though this was a security
issue. I apoligize if this was posted to the wrong group.

Thanks,

Gabe



.



Relevant Pages

  • Re: Windows .NET forms - controls in IE?
    ... How to run a user control assembly hosted on an Internet Information Server ... permissions than would normally be granted to the zone the assembly belongs ... In Internet Explorer, Internet Options, Advanced Security settings, ...
    (microsoft.public.dotnet.security)
  • Re: Security error when running .NET user control in IE
    ... What I would do is use imparative security instead of the declarative security. ... >Subject: Re: Security error when running .NET user control in IE ... >control class Pumpa: ...
    (microsoft.public.dotnet.security)
  • System.Security.Permissions.SecurityPermission
    ... Today I finished creating a user control in VB.NET that I intend on ... security issues. ... the user control execute fully without having to make modifications ... I will not be allowed to instruct users to change such settings. ...
    (microsoft.public.dotnet.framework)
  • USER CONTROL = WINDOW USER CONTROL (AND NOT WEB )
    ... > i want to build USER CONTROL that will be used in WEB PAGE. ... i guess its somthing with Security and Authorization ... > 1.is it possible to create user control WITH WINDOWS SOCKETS and use it in ...
    (microsoft.public.dotnet.security)