RE: SecurityPermission

From: Greg Fee (gregfee_at_microsoft.com)
Date: 06/09/03


Date: Mon, 09 Jun 2003 21:37:02 GMT


Hi,

Is all the code on the local machine? If the code isn't all on the local
machine you may need to give the remote share additional trust.

Assert doesn't give permission; instead it stops the stack walk. This
allows more trusted code to perform an action on behalf of potentially less
trusted code. In your case it is likely that your code isn't getting the
trust level you expect so the security exception is getting thrown before
the stack walk gets to the assert. You can check what trust you are
getting using the 'evaluate trust' wizard or caspol (caspol -rsg
<url_to_assembly>).

Greg



Relevant Pages

  • Re: User Account Conflict
    ... You would have to have a trust to do what you want with a domain user account. ... However if a user logs onto their local machine with an account that has credentials ... Let say userA is located on CompanyA, he can logon to that network ... userA has been assigned to CompanyB ...
    (microsoft.public.win2000.security)
  • Re: Multiple Domain
    ... >Only if the domains have a trust established between ... >restricted to the local machine or the domain you are ... >* PLEASE post all messages and replies in the newsgroups ... >> Is it possible to join an xp pro machine to multiple ...
    (microsoft.public.windowsxp.network_web)
  • Re: SecurityException
    ... Are you running this assembly from the local machine? ... settings for that assembly such that you don't have full trust? ... Request for the permission of type ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Multiple Domain
    ... A properly-established trust should allow a PC to log onto either domain by ... Private mail is usually not replied to. ... >>restricted to the local machine or the domain you are ... >>* PLEASE post all messages and replies in the newsgroups ...
    (microsoft.public.windowsxp.network_web)
  • RE: .Net and security
    ... Something to take care with is the trust level of the application. ... It's also possible to separate out your fully trusted code from your ... A good read to get you doing this right and understand the security ...
    (SecProg)

Quantcast