Code Access Security

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Code Access Security

    Hi,
    I am developing an ASP.NET application which works as a very restricted
    identity on IIS6.0
    The application will just have communication with DB server (no file system
    or registery access)

    Is there any benefit to consider code access security inside assemblies?

    Thanks,
    Ali



    A.M Guest

  2. Similar Questions and Discussions

    1. Client Certificate and Code Access Security
      Hi, I am implementing a IIS deployed client (Windows Forms) that accesses a web service on the same server. I want to use client certificates for...
    2. Article : Code Access Security Part - 2 (.Net FrameWork Tools Series)
      Hey Guys, Before we start with our sample app we need to view the security configuration files on the machine. You will find them under ...
    3. Article : Code Access Security Part - 1 (.Net FrameWork Tools Series)
      Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its...
    4. Code Access Security -- Simple but working examples
      Folks, I'm desperately trying to understand code access security. MSDN and VS.NET help files explains the concepts in details but the code...
    5. Security problem with Managed Code calling Unmanaged Code in a Web Page
      Hello, I have a web page which contains an ActiveX control (unmanaged) and a Windows Forms User Control (managed). Both reside on a web page and...
  3. #2

    Default RE: Code Access Security

    Hi AIi,

    Thank you for using the community. From the description, you have a single
    ASP.NET appliaction and it only access a database server. In this case, the
    Code Access Security may do little help on security. Code Access Security
    is important when the application access local resource or cooperating with
    another appplication. In your situation, you only need to ensure the
    restricted identity has proper permission to execute the ASP.NET
    appliaction and access the database server. And, from the database side, it
    should restrict the access, only allow the restricted identity open an
    connection.

    For more information on Code Access Security and ASP.NET, you may refer to:

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm[/url]
    l/cpconASPNETCodeAccessSecurity.asp

    Hope this help,

    Luke
    Microsoft Online Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    [MSFT] Guest

  4. #3

    Default Re: Code Access Security

    if u wnat onle specify assembly call ur assembly
    then u can use codeAS
    with strong naming conventions...


    --
    Thanks and Regards,

    Amit Agarwal
    Software Programmer(.NET)
    "[MSFT]" <lukezhan@online.microsoft.com> wrote in message
    news:o2hn1DT8DHA.3736@cpmsftngxa07.phx.gbl...
    > Hi AIi,
    >
    > Thank you for using the community. From the description, you have a single
    > ASP.NET appliaction and it only access a database server. In this case,
    the
    > Code Access Security may do little help on security. Code Access Security
    > is important when the application access local resource or cooperating
    with
    > another appplication. In your situation, you only need to ensure the
    > restricted identity has proper permission to execute the ASP.NET
    > appliaction and access the database server. And, from the database side,
    it
    > should restrict the access, only allow the restricted identity open an
    > connection.
    >
    > For more information on Code Access Security and ASP.NET, you may refer
    to:
    >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm[/url]
    > l/cpconASPNETCodeAccessSecurity.asp
    >
    > Hope this help,
    >
    > Luke
    > Microsoft Online Support
    >
    > Get Secure! [url]www.microsoft.com/security[/url]
    > (This posting is provided "AS IS", with no warranties, and confers no
    > rights.)
    >

    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
    Version: 6.0.583 / Virus Database: 369 - Release Date: 2/10/2004


    .NET Follower Guest

  5. #4

    Default Re: Code Access Security

    In my opinion, it is always good in theory to consider CAS when writing a
    DLL as that will make it a better .NET citizen. However, if you are sure
    the assembly will only run in a FullTrust environment, then in reality, you
    can safely ignore CAS as all permission demands will be granted.

    However, ASP.NET does allow administrators to run sites partially trusted,
    so you need to make sure that your app will not run partially trusted if you
    wish to ignore CAS.

    HTH,

    Joe K.

    "A.M" <IHateSpam@sapm123.com> wrote in message
    news:uV7Oe9O8DHA.696@tk2msftngp13.phx.gbl...
    > Hi,
    > I am developing an ASP.NET application which works as a very restricted
    > identity on IIS6.0
    > The application will just have communication with DB server (no file
    system
    > or registery access)
    >
    > Is there any benefit to consider code access security inside assemblies?
    >
    > Thanks,
    > Ali
    >
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139