Re: Determine what security permissions are needed
From: Nicole Calinoiu (calinoiu)
Date: 01/21/05
- Next message: Joe: "Re: Determine what security permissions are needed"
- Previous message: Joe: "Re: Determine what security permissions are needed"
- In reply to: Joe: "Re: Determine what security permissions are needed"
- Next in thread: Joe: "Re: Determine what security permissions are needed"
- Reply: Joe: "Re: Determine what security permissions are needed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 21 Jan 2005 10:13:30 -0500
It might help if you could post the log results here...
"Joe" <J_no_spam@_no_spam_Fishinbrain.com> wrote in message
news:uhdmUs8$EHA.3924@TK2MSFTNGP15.phx.gbl...
>I don't know how to determine what types of permissions it is. I know the
> Inheritance is due to the CreateParams.
>
> I'm getting a book on .Net Security today to help me learn more about
> this.
>
> "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
> news:OSn#DK7$EHA.2880@TK2MSFTNGP14.phx.gbl...
>> What types of permission are being requested by the inheritance and link
>> demands?
>>
>>
>> "Joe" <J_no_spam@_no_spam_Fishinbrain.com> wrote in message
>> news:uqvlmM3$EHA.824@TK2MSFTNGP11.phx.gbl...
>> > Thanks. The log shows an InheritenceDemand error which is being caused
> by
>> > the CreateParams override. If I comment that out I get a LinkDemand
> error.
>> >
>> > How can I resolve these? I looked at the help and it just tells me that
> I
>> > need the permissions for the InheritenceDemand but I don't know how to
>> > specify it.
>> >
>> > Thanks again,
>> > Joe
>> >
>> > "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in
> message
>> > news:OXYFDkw$EHA.2196@TK2MSFTNGP14.phx.gbl...
>> >> Joe,
>> >>
>> >> It sounds like it probably is a CAS permissions issue. However, you
> may
>> >> want to verify this using the steps outlined at
>> >> http://dotnetjunkies.com/WebLog/mlevison/archive/2004/08/28/23568.aspx.
>> >>
>> >> If you want to isolate the minimum permission set for your control, I
>> > would
>> >> recommend testing it in a Windows Forms application so that you can
>> > exclude
>> >> the complicating factor of the constraints imposed by the IE host. If
>> >> you
>> >> set up the hosting app to have FullTrust and allow partially trusted
>> > callers
>> >> into your control library assembly (using
>> >> AllowPartiallyTrustedCallersAttribute), you will be able to set up a
>> > variety
>> >> of tests to establish the minimum permission set required by your
>> >> control.
>> >> Probably the simplest way to do this is to ensure that your control
>> > assembly
>> >> is granted full trust via policy, then declare a minimum permission
>> >> set
>> >> within the assembly. As security exceptions are raised in your tests,
>> >> you
>> >> would then add a request for the missing permission to the request
> list.
>> >> For more information on this approach, see
>> >>
>> >
> http://groups-beta.google.com/group/microsoft.public.dotnet.security/browse_frm/thread/5fe7af6010cf7800/f6fae0d4c2b7de5f.
>> >>
>> >> HTH,
>> >> Nicole
>> >>
>> >>
>> >>
>> >> "Joe" <J_no_spam@_no_spam_Fishinbrain.com> wrote in message
>> >> news:uPJUvTv$EHA.1400@TK2MSFTNGP11.phx.gbl...
>> >> > Is there a utility to test an assembly for security issues? I have a
>> >> > Winforms user control which I'm hosting in an ASP.NET application.
>> >> > On
>> > some
>> >> > machines the assembly doesn't load when I override the CreateParams
>> >> > method.
>> >> > Also, if I add a chart control to this control it doesn't load.
>> >> >
>> >> > There's no exception being thrown but I'm guessing it has something
> to
>> > do
>> >> > with security.
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>
- Next message: Joe: "Re: Determine what security permissions are needed"
- Previous message: Joe: "Re: Determine what security permissions are needed"
- In reply to: Joe: "Re: Determine what security permissions are needed"
- Next in thread: Joe: "Re: Determine what security permissions are needed"
- Reply: Joe: "Re: Determine what security permissions are needed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|