Question

I'm using Pex and Moles 0.94.51023.0 with VS2010 SP1. I have successfully made some Moles type of some Assembly reference and tested some cases. But this time with another reference, Moles has an error:

Error   3   The command ""C:\Program Files\Microsoft Moles\bin\moles.exe" 
@D:\...\TestProject2\obj\Debug\Moles\moles.args" exited with code -1002.    TestProject2

I don't know what is the meaning of 1002. And I search the web, many problems pasted with a very long logs. How to find the log? And what is 1002?

Thank you.

Was it helpful?

Solution

I solved this problem myself. Just check the "Output" tab in visual studio. 1002 is a problem with loading assembly. Set the target platform to "Any CPU" of all the assembly reference projects.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top