当前位置:网站首页>System. Accessviolationexception: an attempt was made to read or write to protected memory. This usually indicates that other memory is corrupted
System. Accessviolationexception: an attempt was made to read or write to protected memory. This usually indicates that other memory is corrupted
2022-07-25 15:04:00 【Kimizhou_ blog】
I have encountered such problems before , Has not been resolved , Finally, reinstall the system , It's finally settled .
little does one think 1 A month later , This happened again , Let me run , This decision must find out the reason ;
Found after debugging , connection.Open(); Report errors later ,System.AccessViolationException: Trying to read or write to protected memory . This usually indicates that other memory is corrupted , A lot of online searches are useless .
Then I found out It is good to connect to the local database , An error is reported when connecting to the remote database , But in sql server Management Medium is good
And then in VS A problem was found in the service explorer of , Find out VS2010 , As soon as you connect to the remote database, it will be shut down immediately ,VS2008 Is good , Finally, I found that at the moment of turning off , A prompt will pop up , After several repeated screenshots , Finally found the key :

provider SSLProvider error:0
Search the Internet , Be suddenly enlightened , The solution is as follows :
1: Use OLEDB , No longer use SQLClient Can solve ;
2: This is the most convenient , In the start run bar Input CMD, Then run as Administrator : Input :netsh winsock reset after , The system prompts that the computer needs to be restarted , Solve after restart !

Finally, I would like to add , The meaning of this order :
netsh winsock reset command , The function is to reset Winsock Catalog . If... On a machine Winsock If there is a problem with the protocol configuration, it will lead to problems such as network connection , It needs to be used. netsh winsock reset Command to reset Winsock Directory to restore the network . This command reinitializes the network environment , To resolve software conflicts 、 Parameter error caused by virus . netsh It is an interface that can operate almost all network related settings through the command line , Setting up IP,DNS, network card , Wireless network, etc ,Winsock It is the internal directory of the system ,Winsock yes Windows Network programming interface ,winsock Working in the application layer , It provides a high-level data transmission programming interface independent of the underlying transmission protocol ,reset It's right Winsock Reset operation for . When performing the winsock After restarting the computer , Need to reconfigure IP.
边栏推荐
- Quickly set up dobbo demo
- IP地址分类,判断一个网段是子网超网
- 06. Neural network like
- 云安全技术发展综述
- Install entityframework method
- Content type corresponding to office file
- Yarn: the file yarn.ps1 cannot be loaded because running scripts is prohibited on this system.
- 直播课堂系统05-后台管理系统
- Number of high-quality number pairs [bit operation characteristics + abstract ability evaluation + grouping fast statistics]
- spark参数调整调优
猜你喜欢

Syntax summary of easygui
![[MySQL series] - how much do you know about the index](/img/d7/5045a846580be106e2bf16d7b30581.png)
[MySQL series] - how much do you know about the index

Sudo rosdep init error ROS installation problem solution

Melody + realsense d435i configuration and error resolution

39 simple version of millet sidebar exercise

27 选择器的分类

"Ask every day" briefly talk about JMM / talk about your understanding of JMM

"How to use" decorator mode

easygui使用的语法总结

006 operator introduction
随机推荐
Awk from entry to earth (24) extract the IP of the instruction network card
Spark 参数配置的几种方法
"Ask every day" briefly talk about JMM / talk about your understanding of JMM
"Ask every day" reentrantlock locks and unlocks
How to use the random number function of JMeter
[C题目]力扣206. 反转链表
Fast-lio: fast and robust laser inertial odometer based on tightly coupled IEKF
easygui使用的语法总结
The solution to the problem that the progress bar of ros2 installation connext RMW is stuck at 13%
Deng Qinglin, a technical expert of Alibaba cloud: Best Practices for disaster recovery and remote multi activity across availability zones on cloud
Resource not found: rgbd_ Launch solution
006 operator introduction
System.AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏
Heyuan City launched fire safety themed milk tea to boost fire prevention and control in summer
[C topic] force buckle 876. Intermediate node of linked list
27 选择器的分类
51 single chip microcomputer learning notes (2)
【JS高级】js之正则相关函数以及正则对象_02
51 single chip microcomputer learning notes (1)
Several methods of spark parameter configuration