Request for the permission of type 'System.Data.SQLClientPermission'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JoaquimC
    New Member
    • Mar 2007
    • 12

    Request for the permission of type 'System.Data.SQLClientPermission'

    Hello all,

    I've a C# application connecting to a SQL Server 2005 DataBase and it all works well in development ambient. I'm developing with Visual Studio 2005 and i can connect to the DataBase with no problem.

    The problem is: when i try to run the application directly from the exe file, every time there is a connection to the same database (and with exactly the same connection string) that i connected with no problem in development ambient, i get the following error: "Request for the permission of type 'System.Data.SQ LClientPermissi on, System.Data, Version=2.0.0.0 , Culture=Neutral , PublicKeyToken= b77a5c561934e08 9' failed.

    Why? If i can do it in Visual Studio, and in if i can connect to the DataBase with no problem with SQL Server Managment Studio?



    TIA,

    Joaquim
Working...