Ask a Question related to ASP.NET Security, Design and Development.
-
Mark #1
Have asp.net-hosted WinControl write to client
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 >
Machine >
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
Mark Guest
-
Flash Webcam client <-> client (not client <-> server<-> client)
Dear Flash Team, supporter and regular mortals (Like myself) I am currently running a IRC chat with mostly webclients connected. We currently offer... -
forms authentication-but do not write cookie to client machine
Hi I am trying to set up an asp.net application where I want the client to have to provide password and user name everytime so do not want to put the... -
write to database without giving write permission to IIS
Hi there, I have some ASP code that writes to access database. For security reason I do not want IUSER to give write permission to database... -
Questions about embedded winControl
Hi group, i have 2 questions i hope somebody can answer about a wincontrol being hosted in ie. 1. Is it possible to create a pop up that... -
Embedded winControl
i asked this in another group, sorry for the cross post but i waited a week there the first time i asked an no answer. Can someone tell me is it... -
Dominick Baier [DevelopMentor] #2
Re: Have asp.net-hosted WinControl write to client
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
[url]http://www.leastprivilege.com[/url]
> 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
Dominick Baier [DevelopMentor] Guest
-
Mark #3
Re: Have asp.net-hosted WinControl write to client
Hello,
I made a new group "TestWrite1", and gave it "Everything" and "Full Trust",
but neither affected the problem.
I tried this on both Machine and User.
Is there something else I need to do to make this take affect?
Thanks,
Mark
"Dominick Baier [DevelopMentor]" wrote:
> 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
> [url]http://www.leastprivilege.com[/url]
>>> > 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
>
>
>Mark Guest



Reply With Quote

