Request for the permission of type 'System.Data.SqlClient.SqlClientPermission failed

后端 未结 3 1948
既然无缘
既然无缘 2021-01-21 22:50

I have an ASP.NET application, using LINQ to connec to a SQL Server 2008 R2 databse.

My connection string:

Data Source=[SqlServerIp];Initial Catalog=[dat         


        
3条回答
  •  [愿得一人]
    2021-01-21 23:24

    I would get this error when trying to run a Web Service in debug mode. I found that it was because code was on a network drive (in my case my documents was on the home drive).

    I would suggest checking that the code in not a network drive.

提交回复
热议问题