简体   繁体   中英

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!

Background: asp.net 4.0. Windows server 2003. Using MySQL database.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM