I am unusually-vs2012 "system.accessviolationexception: trying to read or write protected memory. ”

Source: Internet
Author: User

my system is win7 64-bit system that is installed by Visual Studio 2012. The source code is downloaded from SVN. A b/s system. Can load the landing page normally, but when entering login information to log in, the error is:    -- no sources available    System.accessviolationexception: Attempt to read or write protected memory.

Asked the people in the same group. We use the same source code, the database is also visited on my PC, but others can access the normal. Later consulted the river. Try to change the IP address in the database connection string to local and log in successfully. Now the problem can be summarized as follows: source code with IP access to the local database, source code error. Source code local Access database can be executed normally.

to this step, the problem can be in the IP of the machine, and then looked at the IP and error messages, and finally found a solution to the problem: netsh winsock reset--executes this command to resolve.

the root cause of the problem does not know why, but the role of this line of command will tell us where the cause might be: the netsh winsock reset command, which functions to reset the Winsock folder. If there is a problem with the Winsock protocol configuration on a machine that will cause problems such as network connectivity, you will need to reset the Winsock folder with the Netsh winsock reset command to restore the network. This command can initialize the network environment again to resolve the problem of errors due to software conflicts and virus causes. Netsh is an interface that can operate almost all network-related settings via the command line, such as setting up IP. DNS, network cards, wireless networks, etc., Winsock is the internal folder of the system, and Winsock is the Windows network programming interface. Winsock works at the application layer, which provides high-level transport data programming interfaces independent of the underlying transport protocol, and reset is the reset operation on Winsock.

My machine may be due to a few days ago in the IISServer on the test release station, the machine has done some settings. Caused the confusion of the network environment.

I hope to be able to help the same problem with the children's shoes encountered.

Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.

I am unusually-vs2012 "system.accessviolationexception: trying to read or write protected memory. ”

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.