#using failed on mscorlib.dll

R

richlm

I downloaded the Spy++ sample from
http://msdn.microsoft.com/msdnmag/issues/06/04/ManagedSpy/

It works and builds fine on my desktop PC (which is a recent clean install
of XP + Visual Studio 2005).

But I download the same to my laptop and I get the following compilation
error message on ManagedSpyLib:

Error 2 fatal error C1192: #using failed on
'c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll'
c:\Downloads\Microsoft\ManagedSpy\ManagedSpyLib\Stdafx.cpp 1

I have tried adding #using <mscorlib.dll> explicitly to stdafx.h, removing
and re-adding /clr, switching between debug & release builds, and verified
that mscorlib.dll does exist at that location. None of this helps.

The pre-compiled exe and dll included in the download work fine.

My laptop has both Visual Studio 2003 and 2005 installed.

Any suggestions as to how I can get ManagedSpyLib to compile on my laptop?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top