Solved

Indirect reference is being made to assembly Interop

Posted on 2006-11-22
9
975 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
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 62

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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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 62

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now