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


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



I am getting following error System.accessviolationexception Attempted to read or write protected memory. This is often an indication that other memory is corrupt.  

when accessing a method of external dll.

I have used this dll many other projects which also uses .net 3.5. This external dll uses method from another dll. All this worked fine prior to this project. Am not sure what causing this. I have searched a lot and tried many solutions that people suggested but to no avail. If I use directly the second dll, i.e. the one that is called from the dll it worked fine, but I can't do that, as I need to use this one and not directly the second one.

Your help will be highly appreciated. Regards Kdj




How to Inject HTML on ASP.NET MVC master page

1:



Adding a custom httpmodule to route to MVC or custom handler selectively
First of All, your question does not contain exact details regarding WHEN error occurs..
Multiple websites, Single sign-on design
When accessing a Method from External DLL, I faced the same problem.


How to check the Condition here
This can be solved by Pinning passed parameters.


Routing based on requested datatype in ASP.NET MVC
Sometime GC will relocate them and it will cause above error..
jquery selection problem
Try to Pin down!.
ASP.net MVC - Stop page rendering until JQuery finished


Tricking ASP.NET into Thinking Request is Ajax Request for jQuery File Upload


79 out of 100 based on 69 user ratings 469 reviews

@