SQL Server远程连接错误

时间:2013-05-21 05:14:21

标签: c# asp.net sql-server

在创建远程SQL连接时获取错误消息,但在本地连接中正常工作

错误消息:

Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (System.Data)

3 个答案:

答案 0 :(得分:0)

您好我不确定您的案件发生了什么,但您可以尝试

更改项目中的引用System.Data.SqlClient

当项目移动到新机器时,有时需要更新该项目中添加的所有引用。

答案 1 :(得分:0)

尝试重置Windows布局。这将解决您的问题。

如果您引用this链接,您会发现有相同问题的人。

进行讨论并执行重置Windows布局技巧。

希望它有所帮助。

答案 2 :(得分:0)

        Please, reinstall framework 4.0 or 4.5 from control panel, because 
framework may be is  corrupted.
相关问题