SqlClientPermission

Discussion in 'ASP .Net Security' started by James Hokes, Jun 12, 2006.

  1. James Hokes

    James Hokes Guest

    Hello,

    We have an ASP.Net 2.0 web application running. If we connect to (and use)
    SqlClient objects from within the aspx pages themselves, all is well.

    However, if we create a Data Access Layer assembly, and place it into the
    /bin directory, and attempt to use said assembly, we get an error relating
    to "SqlClientPermission".

    What is the resolution of this?

    Cheers,
    James Hokes
    James Hokes, Jun 12, 2006
    #1
    1. Advertising

  2. See How To: Use Code Access Security in ASP.NET 2.0
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000017.asp.
    The patterns and practices papers are a great resource for ASP.NET
    apps.

    --Mary

    On Mon, 12 Jun 2006 14:44:38 -0400, "James Hokes"
    <> wrote:

    >Hello,
    >
    >We have an ASP.Net 2.0 web application running. If we connect to (and use)
    >SqlClient objects from within the aspx pages themselves, all is well.
    >
    >However, if we create a Data Access Layer assembly, and place it into the
    >/bin directory, and attempt to use said assembly, we get an error relating
    >to "SqlClientPermission".
    >
    >What is the resolution of this?
    >
    >Cheers,
    >James Hokes
    >
    Mary Chipman [MSFT], Jun 16, 2006
    #2
    1. Advertising

  3. James Hokes

    James Hokes Guest

    Thanks much, Mary!

    We got it going.

    James Hokes


    "Mary Chipman [MSFT]" <> wrote in message
    news:...
    > See How To: Use Code Access Security in ASP.NET 2.0
    > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000017.asp.
    > The patterns and practices papers are a great resource for ASP.NET
    > apps.
    >
    > --Mary
    >
    > On Mon, 12 Jun 2006 14:44:38 -0400, "James Hokes"
    > <> wrote:
    >
    >>Hello,
    >>
    >>We have an ASP.Net 2.0 web application running. If we connect to (and use)
    >>SqlClient objects from within the aspx pages themselves, all is well.
    >>
    >>However, if we create a Data Access Layer assembly, and place it into the
    >>/bin directory, and attempt to use said assembly, we get an error relating
    >>to "SqlClientPermission".
    >>
    >>What is the resolution of this?
    >>
    >>Cheers,
    >>James Hokes
    >>
    James Hokes, Jun 23, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. António Pinho

    webparts & sqlclientpermission

    António Pinho, Apr 14, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    2,671
    António Pinho
    Apr 19, 2004
  2. Replies:
    1
    Views:
    3,173
  3. Replies:
    0
    Views:
    351
  4. Kumar
    Replies:
    1
    Views:
    426
    Kevin Spencer
    Feb 19, 2008
Loading...

Share This Page