Incorrect DLL Version being used for build

Hello all,

I'm have a problem using VS 2005 when I build the solution I get a error that says:

System.IO.FileNotFoundException was unhandled by user code
Message="Could not load file or assembly 'INBLK$NamedDataSets_SYSTEM, Version=1.0.2405.25931, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."
Source="INBLK$SystemClasses"
StackTrace:
at INBLK_SystemClasses.GetData.FormatDSP()
at INBLK_SystemClasses.GetData.Fill() in F:\Development\Traffic Management Environment (TME)\InfoBlock Objects\System Objects\INBLK$SystemClasses\clsDataTransporter.vb:line 78
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

After looking at the version of the DLL i realized that the version of the DLL refereced by the project is 1 version behind ( version: 1.0.2405.25931 is referenced) the one in the error message. I have looked at the project dependancies and it seem to be correct. funny thing though, the error does not happen all of the time sometimes it build using the correct DLL versions and everything is ok. Does anybody have any ideas on this

[1645 byte] By [BCR] at [2007-12-23]
# 1

Check your build order for the projects in your solution...all dependencies should be built first

HTH

DMan1 at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 2
Thanks for the help... after looking at the build order and not seeing where the problem could be, I decided to consolidate some of the projects and the problem seems to have fixed itself
BCR at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic IDE...