Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

dll reference in vb 2005

Posted on 2006-07-12
3
Medium Priority
?
241 Views
Last Modified: 2010-04-23
Hi Guys

I have created a solution which is converted from a vb 6 project. This solution consists of several projects.

For some of my forms located in a specific project I get the following exception, this happens when I try to look at the form in the designer:

"Could not load file or assembly 'NodeLib, Version=1.0.2329.20641, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. "

It is accompanied with the exception that pinpoints the code, which is in the part generated by the designer

The project has a reference to another/newer version of the nodelib, namely 1.0.2329.29903.

The nodelib is another project in the solution that we have created.

So it is quite clear what is wrong, namely: that some code references to another version of a dll that the one we have actually built. The things that puzzles me is how/where the reference to the "wrong" dll are created. I wont to track that down. Does anybody have a suggestion to this?

Or better. Have anybody experienced the same problem and the possible solution.

Thanks, Niels



0
Comment
Question by:nielsboldt
[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
  • 2
3 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 2000 total points
ID: 17090241
1) In the AssemblyInfo.vb, there is a version element.  By default it uses 1.0.*.  You should change this to a specific number, like 1.0.0.0

2) I believe that this might be a problem because the solution has been fully built yet.

Bob
0
 

Author Comment

by:nielsboldt
ID: 17097967
Hi Bob

That surely helped a lot - just for fun, are there a deeper explanation to this?

Thanks, Niels
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 17099010
When assemblies are resolved, the entire version comes into play.  This allows multiple assemblies to have the same name, but different versions, and the application can decide which assembly to load.  An automatic updater application that has a current version, and a new version of a DLL to install is a good example.  When you don't specify the full version, there is an algorithm for generating the rest, and it depends on the time of day.

Bob
0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

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

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

722 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