Asp.net Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

ぃ、小莉子 提交于 2019-12-25 04:06:50

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/12758690/asp-net-attempted-to-read-or-write-protected-memory-this-is-often-an-indication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!