Juan Galeotti
Juan Galeotti

Reputation: 31

!error! [execution] runtime context during PEX exploration

I have the following during PEX exploration:

!error! [execution] runtime context Microsoft.Pex.Engine.Libraries.MicrosoftVisualBasicLibrary+ProjectErrorRuntimeContextAttribute+Context failed to open

[symbols] could not load symbols for C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll

[symbols] search path: ;

!error! [execution] runtime context Microsoft.Pex.Engine.Libraries.MicrosoftVisualBasicLibrary+ProjectErrorRuntimeContextAttribute+Context failed to rollback

I tried fixing this problem by uninstalling a couple of software updates (as explained in While running PEX getting error) but unfortunately the problem still remains.

Have anyone find a solution to this?

Best regards, JP

Upvotes: 0

Views: 516

Answers (2)

Zoltan Micskei
Zoltan Micskei

Reputation: 11

As a workaround, you can tell Pex not to instrument the VisualBasic assembly, if you do not need it.

Place the following line into PexAssemblyInfo.cs:

[assembly: PexInstrumentAssembly("Microsoft.VisualBasic", InstrumentationLevel=PexInstrumentationLevel.Excluded)]

Upvotes: 1

guest17486001
guest17486001

Reputation: 11

I got same error.
At that time, I replaced .NET 4 with .NET 4.5.
After that, pex run successfully then. Please try.
http://www.microsoft.com/en-us/download/details.aspx?id=30653

Upvotes: 1

Related Questions