System.IO.FileNotFoundException

G

Guest

I have built a solution in vb.net with 2 projects the project with the class
libraries and the project which consumes them.
The class library project references some other libraries(Different Class
projects).
The solution compiles without a problem.

I cannot run the solution in debug mode within the IDE, despite that ALL the
projects are for debugging.
The app run correctly when I invoke it outside the IDE from the bin directory.

I used the FUSLOGVW.exe and it logs too that it cannot find the assemblies
and searches in the "wrong" places.

Any Ideas or solution will be more than helpfull.

The log states that :
************** Exception Text **************
System.IO.FileNotFoundException: File or assembly name CSLA, or one of its
dependencies, was not found.
File name: "CSLA"
at Xenios.MdiMain.DoLogin()
at Xenios.MdiMain.ToolBarMain_ButtonClick(Object sender,
ToolBarButtonClickEventArgs e) in
C:\Projects\Xenios\XeniosZeus\Xenios\Xenios\mdiMain.vb:line 555
at System.Windows.Forms.ToolBar.OnButtonClick(ToolBarButtonClickEventArgs
e)
at System.Windows.Forms.ToolBar.WmReflectCommand(Message& m)
at System.Windows.Forms.ToolBar.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

=== Pre-bind state information ===
LOG: DisplayName = CSLA, Version=1.4.0.0, Culture=neutral,
PublicKeyToken=425badbc16d377eb
(Fully-specified)
LOG: Appbase = C:\Projects\Xenios\XeniosZeus\Xenios\Xenios\obj\Debug\
LOG: Initial PrivatePath = NULL
Calling assembly : Xenios, Version=1.0.2061.26919, Culture=neutral,
PublicKeyToken=null.
===

LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: CSLA, Version=1.4.0.0, Culture=neutral,
PublicKeyToken=425badbc16d377eb
LOG: Attempting download of new URL
file:///C:/Projects/Xenios/XeniosZeus/Xenios/Xenios/obj/Debug/CSLA.DLL.
LOG: Attempting download of new URL
file:///C:/Projects/Xenios/XeniosZeus/Xenios/Xenios/obj/Debug/CSLA/CSLA.DLL.
LOG: Attempting download of new URL
file:///C:/Projects/Xenios/XeniosZeus/Xenios/Xenios/obj/Debug/CSLA.EXE.
LOG: Attempting download of new URL
file:///C:/Projects/Xenios/XeniosZeus/Xenios/Xenios/obj/Debug/CSLA/CSLA.EXE.
 
R

Robin Tucker

Are all the libraries in the correct location (the bin directory of the
project you are executing?). It's possible they compile binaries to the
wrong location. They should be in the same directory unless they are
registered COM controls or something.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top