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. System.Data.SqlClient.Sqlclientpermission,system,.........,publickey token='......' failed exception

System.Data.SqlClient.Sqlclientpermission,system,.........,publickey token='......' failed exception

Scheduled Pinned Locked Moved C#
databasesecurityworkspace
4 Posts 3 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.
  • P Offline
    P Offline
    praveenvkumarv
    wrote on last edited by
    #1

    I have created a setup file in windows application and then i installed it in my system only. After giving userid, password for authentication from the database,even if the userid and password is contained in the database, i am getting the exception "System.Data.SqlClient.Sqlclientpermission,system,.........,publickey token='......' failed"

    M W 2 Replies Last reply
    0
    • P praveenvkumarv

      I have created a setup file in windows application and then i installed it in my system only. After giving userid, password for authentication from the database,even if the userid and password is contained in the database, i am getting the exception "System.Data.SqlClient.Sqlclientpermission,system,.........,publickey token='......' failed"

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      you mean your putting username/password in connection string? if so you need to set up database on server with useraccount that matches those value, does not matter if they stored in any table

      My opinion is... If someone has already posted an answer, dont post the SAME answer

      1 Reply Last reply
      0
      • P praveenvkumarv

        I have created a setup file in windows application and then i installed it in my system only. After giving userid, password for authentication from the database,even if the userid and password is contained in the database, i am getting the exception "System.Data.SqlClient.Sqlclientpermission,system,.........,publickey token='......' failed"

        W Offline
        W Offline
        Wendelius
        wrote on last edited by
        #3

        I think there's something wrong in the security settings. Are you sure that SQL Client is placed in GAC? Also do you start your program from trusted folder? SQL Server Client needs pretty much privileges.

        The need to optimize rises from a bad design.My articles[^]

        P 1 Reply Last reply
        0
        • W Wendelius

          I think there's something wrong in the security settings. Are you sure that SQL Client is placed in GAC? Also do you start your program from trusted folder? SQL Server Client needs pretty much privileges.

          The need to optimize rises from a bad design.My articles[^]

          P Offline
          P Offline
          praveenvkumarv
          wrote on last edited by
          #4

          My project is a windows application. After i install the setup file of this project. I am getting the first form, i need to select from four options i,e. four buttons. When i press a button, next form is displayed asking for username and password. After giving username and password, when i press login button then i am getting that exception. If i run normally in visual studio 2005 , it is executing .

          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