Getting Error Message in Creating Remote SQL Connections but works fine in Local Connections
Error Message:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (System.Data)
Hi I am not sure what has happened in your case but you may try
changing the references System.Data.SqlClient in the project
When a project is moved to a new machine, Sometime need to renew all the references added in that project.
Try to Reset Windows Layout. This will solve your problem.
If you refer this link, you will find that, person having the same problem.
Go through discussion and do the Reset Windows Layout trick.
Hope its helpful.
Please, reinstall framework 4.0 or 4.5 from control panel, because
framework may be is corrupted.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.