Connection Error

Hi,

I can run my program on some computers, but can not run it on one computer. The error is the following. Could you please help me out Thanks a lot.

Error:

Error to connect with database : Request for the permission of type 'system.data.sqlclient.sqlclientpermission, system.data, version=2.0.0.0, culture=neutral publickeytoken=b77a5c56193e089' failed.




Answer this question

Connection Error

  • Mr Yer

    If you are running an exe that resides on a network share, rather than on a local disk, the default permissions do not include SqlClient permission. If you are running the exe from a network share on the failing PC, try copying it to the local disk and running it there.


  • Sommarafton

    Could you please check the version of .net frame work installed on that machine Also the version of System.Data.dll. They might mismatch.

    Thanks

    Bei


  • Luke Hartsuyker

    I run it on two PCs, and on one of them, it works. However, on the other computer, it doesn't work and error is what I have posted. The two PCs are on the same domain. Any further ideas Thanks a lot.



  • llong

    Are you running your app from network drive

  • Connection Error