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