Re: Can't get unrestricted FileIOPermission to work

From: James F. Bellinger (NaturesEthereal_at_do.not.spam.me)
Date: 07/24/03


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
> >
> >
>
>



Relevant Pages

  • Re: SQL 2000 Windows Authentication - Same User Multiple Groups
    ... functionality using our WinForm app and read-only functionality using ... SQL Server permissions are not application-aware. ... App1 contains CRUD functionality using stored procs (EXEC perms on ...
    (microsoft.public.sqlserver.security)
  • Re: Copying Files from Network to Local
    ... working using Code Access Security, ... website has less trust associated with it, and less permissions assigned ... However, when the app resides on a network drive, copying ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ASP App Hangs. ALL FIXED!
    ... It seems that when you disable Script Blocking in NAV (actually SYM ... > Up until the other day, the app worked without problems. ... > volume and has the correct permissions assigned and have not ...
    (microsoft.public.inetserver.asp.general)
  • Re: HELP please - I think this is a permissions problem - ASP.Net application
    ... Have you checked the permissions for the file itself? ... Ur I.T. Mate Group ... > Trying to run this app. ... > - Windows Media Services Guest Account ...
    (microsoft.public.inetserver.iis)
  • Re: Copying Files from Network to Local
    ... The rights that you have ... website has less trust associated with it, and less permissions assigned to ... However, when the app resides on a network drive, copying ...
    (microsoft.public.dotnet.languages.csharp)

Loading