Access Violation Exception
In the .NET 4.0 and later Access Violation Exception exception is not handled by try catch block we need to enable it from configuration file by writing
<configuration> <runtime> <legacyCorruptedStateExceptionsPolicy enabled="true" /> </runtime>
</configuration>
or we can set attribute value in method which contains catch block
System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptionsAttribute
System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptionsAttribute
Comments
Post a Comment