I'm having an issue that apparently many people have had as well, only what has worked for others has not yet worked for me. Here is the setup:
VS2008 solution with 5 projects, all targeting .NET 2.0:
- DLL A, no project references
- DLL B, references DLL A
- Windows Forms App, references DLL B
- Windows Service, references DLL B
- Setup Project
What I want to happen is DLL A and DLL B get installed to the GAC, but I'm getting an error on installation:
Error 1001. Could not load file or assembly 'DLL_B', version 1.0.0.1, Culture=neutral, PublicKeyToken=5e297270603814f4' or one of its dependencies. The system could not find the file specified.
From what I read here and here and a few other sites, I have done the following in no particular order:
- Re-referenced everything in my projects
- Added the compiled EXEs manually to the setup project (instead of using 'Primary Output'... DLL A and DLL B came up as 'Detected Dependencies')
- In the setup project -> Launch Conditions -> set .NET Framework to 2.0
- In the setup project -> File System -> Requested that detected dependencies be installed to the Global Assembly Cache Folder
So, I'm probably missing something. Can anyone help me figure out what that is?
Thanks ahead of time.