Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=4.0.0.0

Tags:

c#

wpf

I have a WPF web app and I"m trying to access a SQL 2000 database, but I'm getting the following error:

Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Any idea how I can fix this? I probably need an example as I'm new to this and this is my first WPF application.

like image 629
David Avatar asked Mar 06 '11 19:03

David


1 Answers

Try switching to full trust application.

enter image description here

like image 197
Bala R Avatar answered Oct 14 '22 15:10

Bala R