Re: Can't get unrestricted FileIOPermission to work
From: James F. Bellinger (NaturesEthereal_at_do.not.spam.me)
Date: 07/24/03
- Next message: Christoph Wienands: "Re: How to find out access permissions for files?"
- Previous message: Shel Blauman [MSFT]: "Re: Custom permissions not throwing exceptions"
- In reply to: Shel Blauman [MSFT]: "Re: Can't get unrestricted FileIOPermission to work"
- Next in thread: Ivan Medvedev [MS]: "Re: Can't get unrestricted FileIOPermission to work"
- Reply: Ivan Medvedev [MS]: "Re: Can't get unrestricted FileIOPermission to work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 24 Jul 2003 12:55:50 -0400
Ahh, I guess I figured if I said my app had a certain bunch of permissions,
it would have those, IE or no. :-) Well, I have a couple other questions if
you wouldn't mind answering them, since the whole thing has me a bit
frustrated :-(
1) Is there any way to check just what permissions my app *was* given, then?
:-) Aside from continually calling Assert/RevertAssert
2) Is there any way to tell why, for instance, my app won't load inside IE?
I can't find anything in the Event Log but I'd really like to know the
reasoning for some of the strange things it's doing. Right now, I have it
added as a URL with Full Trust as a child of the Local Intranet group, and
it doesn't load at all. If I remove the URL and just let it run with the
default Local Intranet group permissions, it does load.
3) So, if I am in IE, and my app does have permission to access the hard
drive, I still need to assert that permission specifically, otherwise I will
just have the lousy permissions of IE, correct? :-)
Thanks a lot! -Jim
"Shel Blauman [MSFT]" <sheldonb@online.microsoft.com> wrote in message
news:OLiDOzfUDHA.1776@TK2MSFTNGP09.phx.gbl...
> Your demand fails because Internet Explorer does not have the
> FileIOPermission, and the demand causes a stack walk which fails when it
> gets to IE. The demand states that callers need to have that permission.
> You could try not issuing the demand, and before you do any file IO do an
> assert to prevent the stack walk checking for FileIOPermission from
getting
> to IE. Be sure to do a RevertAssert immediately after you've completed
your
> file IO.
>
> Shel
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
>
>
> "James F. Bellinger" <NaturesEthereal@do.not.spam.me> wrote in message
> news:Ogd3oAbUDHA.2076@TK2MSFTNGP11.phx.gbl...
> > My program is being hosted inside Internet Explorer. I am having my
> program
> > call Demand for unrestricted FileIOPermission, but it always fails.
While
> in
> > an ordinary circumstance this would be a great thing, I have added the
> > program's URL to my code groups, so that it has full trust. I don't
> > understand why it isn't giving me the permissions I have set. Any idea
> what
> > I am doing wrong? Thanks :-) -Jim
> >
> >
>
>
- Next message: Christoph Wienands: "Re: How to find out access permissions for files?"
- Previous message: Shel Blauman [MSFT]: "Re: Custom permissions not throwing exceptions"
- In reply to: Shel Blauman [MSFT]: "Re: Can't get unrestricted FileIOPermission to work"
- Next in thread: Ivan Medvedev [MS]: "Re: Can't get unrestricted FileIOPermission to work"
- Reply: Ivan Medvedev [MS]: "Re: Can't get unrestricted FileIOPermission to work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|