Original: http://www.cnblogs.com/peace-lee/p/3586350.html
Yesterday encountered a strange problem, run VS2010 debugging program, always reported a mistake, and then the program was hung up: no available source ...., pop up a window tip: System.AccessViolationException:Attempted to read or write protected memory. This is often a indication that other memory is corrupt ".
Search on the internet for a long time and did not find a suitable solution, until you see StackOverflow Last post in the reply, tried to solve the problem.
See the phrase "I had the same problem after upgrading from. NET 4.5 to. NET 4.5.1. What fixed it for me is running this command "woke up early in the day with 360 hints. NET4.5 can be updated to 4.5.1, readily updated, is this the reason for me? And then saw someone reply to the solution is: netsh winsock reset, the administrator to run, and restart the computer, it really works, in view of this problem may other friends in the garden may encounter, so write to share;
Down to the "netsh winsock reset" meaning: Winsock is a Windows network programming interface, Winsock works on the application layer, it provides high-level data transfer programming interfaces independent of the underlying transport protocol Netsh winsock reset is to restore it to the default state; It is not clear to this explanation, I hope which master understand can do a little bit of the explanation of the popular point. Did NET4.5.1 change the bottom of something? Computer knowledge is still very deficient, let's learn it.