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

前端 未结 3 752
醉酒成梦
醉酒成梦 2020-12-11 16:05

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.

3条回答
  •  爱一瞬间的悲伤
    2020-12-11 16:42

    Your application lacks the necessary permissions to connect to the SQL database. Try running it as an administrator (it may be easiest to simply launch Visual Studio as admin).

提交回复
热议问题