473,499 Members | 1,955 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.IO.FileNotFoundException

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\mdiMai n.vb:line 555
at System.Windows.Forms.ToolBar.OnButtonClick(ToolBar ButtonClickEventArgs
e)
at System.Windows.Forms.ToolBar.WmReflectCommand(Mess age& m)
at System.Windows.Forms.ToolBar.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& 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\De bug\
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.

Nov 21 '05 #1
2 8356
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.

"GeorgeB" <Ge*****@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com...
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\mdiMai n.vb:line 555
at
System.Windows.Forms.ToolBar.OnButtonClick(ToolBar ButtonClickEventArgs
e)
at System.Windows.Forms.ToolBar.WmReflectCommand(Mess age& m)
at System.Windows.Forms.ToolBar.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& 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\De bug\
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.

Nov 21 '05 #2
All the assemblies are in the bin directory. The problem is with the debug
directory. The CLR searches there to find the assemblies! and then it states
that are missing!!

"Robin Tucker" wrote:
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.

"GeorgeB" <Ge*****@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com...
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\mdiMai n.vb:line 555
at
System.Windows.Forms.ToolBar.OnButtonClick(ToolBar ButtonClickEventArgs
e)
at System.Windows.Forms.ToolBar.WmReflectCommand(Mess age& m)
at System.Windows.Forms.ToolBar.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& 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\De bug\
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.


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
13992
by: Paul Gronka | last post by:
I've got a VB.NET windows application (written in VS .NET 2003) that makes a call to WMI for retrieving the MAC Address from the client's PC. It works on 4 out of the 5 PC's tested so far. All...
1
6658
by: ulf | last post by:
Hello, After I got a FileNotFoundException in my real life CSharp code, I nailed it down to the following line: System.EnterpriseServices.ResourcePool rp = new...
3
2063
by: Karl Hungus | last post by:
A cs file I compiled into an assembly dll is in my bin directory. In the cs file I have a using statement for System.Xml I compiled it using this command: csc /out:XmlContent.dll /t:library...
2
2296
by: aallee83 | last post by:
i'm new in asp.net after develop my solution i copied it on the server where I want it to run but something cares... WHAT?!?! thank you in advance File or assembly name System, or one of its...
0
1808
by: Eric van Wijk | last post by:
Hi All, After installing SP1 for Windows 2003, I'm running into the 'Error loading type library/DLL' exception when using CDO through System.Web.Mail: ...
3
9065
by: James | last post by:
Hi guys Do you ever get the exception in Managed C++? How can I know which file or dll is missed?
3
4964
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
1
7130
by: kkizer | last post by:
I have a problem with this simple code below. Moving the files works perfectly, but once in a blue moon the file that it is trying to move dissapears before it can move it. and when this happens...
2
7921
by: jjlagtap | last post by:
Hey everyone When I try to open a file i get the Exception listed below. The weird thing is it works when I run the web app locally and when i use a remote server and open a file on my computer....
2
10983
by: =?Utf-8?B?c2FtMDFt?= | last post by:
I have a remoting application that was developed on a Windows XP SP2 machine with VS2005 SP1. I finally got everything deployed using Wix 3.0, and it works great. Problem is, when I install the msi...
0
7131
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7388
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4600
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3099
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
297
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.