Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Declarative Code Access Security

Declarative Code Access Security

Scheduled Pinned Locked Moved C#
csharpcomsecurityhelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi, I am attempting to use declarative code access security to protect my C# web application. I am using [UrlCodeIdentityPermissionAttribute(SecurityAction.Demand, Url = "http://www.microsoft.com")] outside of the main class in my dll. I understand that this means that if a website other than Microsoft calls my dll code they should be refused access to the protected class - an exception should be thrown. When I call my dll code from another program, access is always granted. Is my understanding of declarative code access security incorrect? What am I doing wrong? Any help would be greatly received. I am new to this area and am finding it difficult to find code examples of such code. Examples of imperative security would also be useful Thankyou, Kerry

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups