Solved

Indirect reference is being made to assembly Interop

Posted on 2006-11-22
9
990 Views
Last Modified: 2008-01-09
I am getting an error on one of my development machines when I try to "run" my project in debug mode. It compiles without errors, but when I try to run it in debug mode the error comes up. This SAME EXACT code on two other development machines does not give this error. What could be missing on the one development machine that might cause this error.

"Indirect reference is being made to assembly Interop.WESTrafficServer version 1.3.0.0, which contains 'WESEvaluationObjects._clsEvaluation.TrafficPattern'. This Project references a prior version of Interop.WESTrafficServer version 1.2.0.0. To use 'WESEvaluationObjects._clsEvaluation.TrafficPattern', you must replace the reference to Interop.WESTrafficServer with version 1.3.0.0 or higher."

I know FOR A FACT that the COM object and the .NET project are referencing the exact same COM DLL and there is no version descrepancy. The COM DLL's are VB6 dlls. The computer that gives the error does NOT have the VB6 runtime installed, but the other two machines do. Do you have to have the VB6 runtime installed to use COM in .NET apps?Surely not.
0
Comment
Question by:emailrobertwalker
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 13

Expert Comment

by:newyuppie
ID: 17995564
very ballpark: (of course you tried to remove and add the reference again)

in your solution explorer, mark to show all files. then under references, find this reference and check its SpecificVersion property, if its true, try setting it to false to see if this error goes away
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 17996497
Hi emailrobertwalker;

The Microsoft Visual Basic run-time files are required by all applications that are created with Visual Basic 6.0. I would start by downloading the VB6 run-time and loading it to the box that is not working with your code.

Fernando
0
 
LVL 6

Expert Comment

by:Jayadev Nair
ID: 17997021
Hi

Let me try to point out a possible scenario of this error.

Assume you have 3 projects referring AnotherdllVersion2.dll. All f your projects had Anotherdll.dll(Version1) referred and now you replaced with Anotherdll.dll(Version2)

Your 3 projects are:
1.dll
2.dll
and 3.exe

3.exe referrs to all 1.dll,2.dll and Anotherdll.dll(Version2)

But when you replaced with new, you didnt rebuild all of the three projects. Just compiled 2.dll and 3.dll. and so 1.dll is still referred with Anotherdll.dll(Version1) and will show such an error or possibly another error(ambigous namespace found.)

Check any of your existing dependencies are built with prior version. If so, rebuild those with the new one

Thanks.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Author Comment

by:emailrobertwalker
ID: 17997058
I know that seems obvious and I promise you I first recompiled ALL dll files. Like I said, it works on two development machines, but not the third. Something is missing on that third machine. We are currently installing VB6 Runtime on the machine that does not work to see if that solves the problem.
0
 
LVL 6

Expert Comment

by:Jayadev Nair
ID: 17997187
I dont think VB6 runtime will help you. please Find:

http://msdn2.microsoft.com/en-US/library/ms184598.aspx

Thanks.
0
 
LVL 63

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 18208702
Hi Bob;

I would like to see a resolution to this question seeming Microsoft states that all program written in VB 6 needs the VB 6 runtime loaded on that machine and that is what is missing on the machine that does not work and the authors last statement was that he was downloading the VB 6 runtime and loading it to that machine.

Happy New Year. ;=)

Fernando
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question