AccessViolationException

AccessViolationException

14 July 2015

I was getting following problem running an NUnit test using Selenium c# WebDriver compiled with .NET 4.0.

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

The problem for me was this KB2315412

When you run a Microsoft .NET Framework 2.0-based application that calls a mixed assembly that is domain-neutral, an access violation error may occur.

I installed Reliability Update 1 for the .NET Framework 4

.NET