当前位置:网站首页>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.
边栏推荐
- Raft of distributed consistency protocol
- I2C device driver hierarchy
- BigDecimal rounds the data
- "Ask every day" reentrantlock locks and unlocks
- pl/sql 创建并执行oralce存储过程,并返回结果集
- MySQL 45 talks about | 06 global locks and table locks: Why are there so many obstacles to adding a field to a table?
- [comprehensive pen test] difficulty 4/5, classic application of line segment tree for character processing
- 41 picture background synthesis - colorful navigation map
- 流程控制(上)
- LeetCode_字符串_中等_151.颠倒字符串中的单词
猜你喜欢

44 新浪导航 ,小米边栏 练习

32 chrome调试工具的使用

Resource not found: rgbd_ Launch solution

Unable to start web server when Nacos starts

Client error: invalid param endpoint is blank

LeetCode-198-打家劫舍

流程控制(上)

Deng Qinglin, a technical expert of Alibaba cloud: Best Practices for disaster recovery and remote multi activity across availability zones on cloud

"Ask every day" how locksupport realizes thread waiting and wakeup

IP地址分类,判断一个网段是子网超网
随机推荐
How many ways can you assign initial values to a two-dimensional array?
Gson and fastjson
Fast-lio: fast and robust laser inertial odometer based on tightly coupled IEKF
6线SPI传输模式探索
Is it safe for Guolian securities to buy shares and open an account?
Leetcode combination sum + pruning
Sudo rosdep init error ROS installation problem solution
直播课堂系统05-后台管理系统
处理ORACLE死锁
"How to use" agent mode
[C题目]力扣88. 合并两个有序数组
阿里云技术专家邓青琳:云上跨可用区容灾和异地多活最佳实践
39 简洁版小米侧边栏练习
Deng Qinglin, a technical expert of Alibaba cloud: Best Practices for disaster recovery and remote multi activity across availability zones on cloud
转载----如何阅读代码?
golang复习总结
EDA chip design solution based on AMD epyc server
51 single chip microcomputer learning notes (1)
44 Sina navigation, Xiaomi sidebar exercise
System.AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏