Asp.net 尝试读取或写入受保护的内存.这通常表明其他内存已损坏. [英] Asp.net Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
问题描述
经过一年多的尝试读取或写入受保护的内存.这通常表明其他内存已损坏"的困扰,我终于找到了解决方法!
After being plagued over a year with the dredded "Attempted to read or write protected memory. This is often an indication that other memory is corrupt", I have finally found a fix on it!
背景:asp.net 4.0.Windows server 2003.使用 MySQL 数据库.
Background: asp.net 4.0. Windows server 2003. Using MySQL database.
我曾经在几页上随机发现这个问题,巧合的是,这些页面上有一个 asp.net 转发器.我尝试了各种建议,但它们根本不起作用.
I used to randomly get this issue on a few pages, and coincidently, the pages had an asp.net repeater on it. I tried all sorts of recommendations, but they simply didn't work.
推荐答案
我使用的是 system.data.odbc ,并为我的所有 asp.net 页面安装了 odbc 驱动程序以与数据库交互.修复来了……我反而下载了 MySQL.data.dll,并将这个库用于我的数据库.瞧!问题已解决.
I was using system.data.odbc , with an odbc driver installed for all of my asp.net pages to interact with the database. Here comes the fix... I instead downloaded MySQL.data.dll, and used this library for my db. Voila! Problem fixed.
这篇关于Asp.net 尝试读取或写入受保护的内存.这通常表明其他内存已损坏.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!