RE: SecurityPermission
From: Greg Fee (gregfee_at_microsoft.com)
Date: 06/09/03
- Next message: Greg Fee: "RE: Not able to add child CodeGroups"
- Previous message: Keith: "Not able to add child CodeGroups"
- In reply to: kavitha: "SecurityPermission"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Greg Fee: "RE: Not able to add child CodeGroups"
- Previous message: Keith: "Not able to add child CodeGroups"
- In reply to: kavitha: "SecurityPermission"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|