Re: Have asp.net-hosted WinControl write to client
From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 05/04/05
- Previous message: Dominick Baier [DevelopMentor]: "Re: Saving hashes or encrypted passwords in MS Access"
- In reply to: Mark: "Have asp.net-hosted WinControl write to client"
- Next in thread: Mark: "Re: Have asp.net-hosted WinControl write to client"
- Reply: Mark: "Re: Have asp.net-hosted WinControl write to client"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 03 May 2005 22:35:37 -0700
Hello Mark,
you may first try to give it full trust (just to see that it works) and after
that locking down the permissions...
HTH
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> Hello,
> I know that you can host a WinControl in ASP.Net. If I want my
> Windows User
> Control to be able to write to the client's file system (or access a
> database, or any other secure action), how could I configure security
> to allow this?
>
> I thought I could use .Net Configuration Wizard >
> RuntimeSecurityPolicy >
>
> CodeGroups. I gave the codegroup the Url as evidence to match the page
> with the WinControl. I then gave it the file IO permission.
>
> I still get the error: "The application attempted to perform an
> operation not allowed by the security policy. The operation required
> the SecurityException...
> System.Security.Permissions.FileIOPermission..."
>
> Any ideas what else needs to be done?
>
> Thanks,
> Mark
- Previous message: Dominick Baier [DevelopMentor]: "Re: Saving hashes or encrypted passwords in MS Access"
- In reply to: Mark: "Have asp.net-hosted WinControl write to client"
- Next in thread: Mark: "Re: Have asp.net-hosted WinControl write to client"
- Reply: Mark: "Re: Have asp.net-hosted WinControl write to client"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|