"Unable to Find Dependency"
I'm running VS 2002 with .net 1.1 on Windows XP Mediacenter Edition
Since I installed VS2002 (last week), I've been getting "unable to find
dependency" warning errors and erratic behvior from my debugger. (The
debugger works some times, but usually not at all)
I have looked at every reference google can find to "unable to find
dependency" (web and groups) and have not yet found a solution. I've
tried to include a reasonable narrative of steps I've taken.
I'm stumped.
I've checked all the ".Config" files and verified that "runtime" is set
to 1.1.4322 (for Visual Studio and all related tools, and MS Office -
this is an add-in project)
===================================
Error during build:
------ Starting pre-build validation for project 'mycodeSetup' ------
WARNING: Unable to find dependency 'mscorlib'
(Signature='B77A5C561934E089' Version='1.0.3300.0') of assembly
'Extensibility.dll'
WARNING: Unable to find dependency 'mscorlib'
(Signature='B77A5C561934E089' Version='1.0.3300.0') of assembly
'stdole.dll
================================
I assumed my debugger problems are related to the missing dependency.
So I checked all my references. I looked at MSCorlib in the References
list for my VS Project and discovered that the version my reference
calls for is 1.0.5000.0 The text from VStudio reference tab for
mscorlib is below:
================================
Visual Studio 2002
>From Project References/Properties for MSCORLIB
(Name) mscorlib
Copy Local False
Culture
Description Common
Language Runtime Library
Identity mscorlib
Path
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll
Strong Name
True
Type Assembly
Version
1.0.5000.0
===================================
However, the file in the framework directory is version 1.1.4322.2032.
So it appears to be a disconnect. Below is the info on the file in the
1.1 framework directory:
===================================
File in directory C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\
Name 5 Size Type
Date Modified Product Version
mscorlib.dll 2,088 KB Application
Extension 7/15/2004 2:29 PM 1.1.4322.2032
mscorlib.ldo 11 KB LDO File
7/15/2004 12:14 AM
mscorlib.tlb 460 KB TLB File
7/14/2004 11:45 PM 1.1.4322.2032
===================================
In VStudio, I removed the reference, then re-added them. This did not
change anything.
Now I'm suspicious that a pointer (perhaps in the registry?) is set up
wrong.
So I started searching the registry for any reference to mscorlib and
found things like this:
====================================
Name Type Data
(Default) REG_SZ mscoree.dll
Assembly REG_SZ mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Class REG_SZ
System.Security.Cryptography.HMACSHA1
RuntimeVersion REG_SZ v1.1.4322
ThreadingModel REG_SZ Both
=====================================
There are a ton of these types of entries in the registry
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\...
The line starting with "ASSEMBLY" points out something but is it
strange? I don't know.
It appears that every tim mscorlib is referred to as an assembly,
version 1.0.5000.0 is the target.
I'm thinking I want to change this to 1.1.4322.2032 but that is some
serious registry work. and the the risk of damage seem quit likely and
quite severe...
Any help is greatly appreciated.
Thanks,
Mark Durrenberger
durrenm@yahoo.com - 10 May 2006 16:52 GMT
The 1.0.5000.0 and 1.1.4322.2032 refer to different things. 1.0.5 is
the assembly number. 1.1.4322 is the win32 version. SO that is a red
herring - don't chase it. And No I won't go and change all my registry
entries.
In fact, I haven't a clue what to do next...
durrenm@yahoo.com - 10 May 2006 17:55 GMT
More info:
I built a generic (using the wizard) add-in It has the same
"extensibility" reference as above, however I do not receive the build
warning regarding mscorlib/extensibility.dll
Very strange.