chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
Hi, I am writing a number of unit tests for an existing ASP.NET application which is being upgraded using VS2010 and .NET Framework 4, using Microsoft test framework and TypeMock Isolator 6.0.6.0.

The underlying database is DB2 (Client is v9.7.5) and when trying to fake a DB2 command object I get a "System.Security.VerificationException: Operation could destabilize the runtime" error when running the test.

After lots of playing around it turns out that even reducing the test method to one line....

DB2Command cmd = new DB2Command();

...the error is still raised, however if I disable Isolator the error disappears. Note also the test works fine using .NET 3.5 even with Isolator enabled.

Any ideas?

Thanks very much,
Andy
asked by andythorn (1.1k points)

3 Answers

0 votes
Hi Andy,

Can you upgrade Isolator to the latest version?

There have been many fixes since the version you are now using and it is possible that this issue is solved already.

Looking forward to your feedback.
answered by alex (17k points)
0 votes
Hi Alex

Sorry for the delay in replying - but you were right, I have now installed version 7.1.6.0 and this seems to have solved the problem!

Thanks very much,
Andy
answered by andythorn (1.1k points)
0 votes
Glad it worked!

Gil
answered by gilz (14.5k points)
...