473,752 Members | 9,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.IO.FileN otFoundExceptio n

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(Diffe rent 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.FileN otFoundExceptio n: File or assembly name CSLA, or one of its
dependencies, was not found.
File name: "CSLA"
at Xenios.MdiMain. DoLogin()
at Xenios.MdiMain. ToolBarMain_But tonClick(Object sender,
ToolBarButtonCl ickEventArgs e) in
C:\Projects\Xen ios\XeniosZeus\ Xenios\Xenios\m diMain.vb:line 555
at System.Windows. Forms.ToolBar.O nButtonClick(To olBarButtonClic kEventArgs
e)
at System.Windows. Forms.ToolBar.W mReflectCommand (Message& m)
at System.Windows. Forms.ToolBar.W ndProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

=== Pre-bind state information ===
LOG: DisplayName = CSLA, Version=1.4.0.0 , Culture=neutral ,
PublicKeyToken= 425badbc16d377e b
(Fully-specified)
LOG: Appbase = C:\Projects\Xen ios\XeniosZeus\ Xenios\Xenios\o bj\Debug\
LOG: Initial PrivatePath = NULL
Calling assembly : Xenios, Version=1.0.206 1.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\Micros oft.NET\Framewo rk\v1.1.4322\co nfig\machine.co nfig.
LOG: Post-policy reference: CSLA, Version=1.4.0.0 , Culture=neutral ,
PublicKeyToken= 425badbc16d377e b
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 8379
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*****@discus sions.microsoft .com> wrote in message
news:B2******** *************** ***********@mic rosoft.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(Diffe rent 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.FileN otFoundExceptio n: File or assembly name CSLA, or one of its
dependencies, was not found.
File name: "CSLA"
at Xenios.MdiMain. DoLogin()
at Xenios.MdiMain. ToolBarMain_But tonClick(Object sender,
ToolBarButtonCl ickEventArgs e) in
C:\Projects\Xen ios\XeniosZeus\ Xenios\Xenios\m diMain.vb:line 555
at
System.Windows. Forms.ToolBar.O nButtonClick(To olBarButtonClic kEventArgs
e)
at System.Windows. Forms.ToolBar.W mReflectCommand (Message& m)
at System.Windows. Forms.ToolBar.W ndProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

=== Pre-bind state information ===
LOG: DisplayName = CSLA, Version=1.4.0.0 , Culture=neutral ,
PublicKeyToken= 425badbc16d377e b
(Fully-specified)
LOG: Appbase = C:\Projects\Xen ios\XeniosZeus\ Xenios\Xenios\o bj\Debug\
LOG: Initial PrivatePath = NULL
Calling assembly : Xenios, Version=1.0.206 1.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\Micros oft.NET\Framewo rk\v1.1.4322\co nfig\machine.co nfig.
LOG: Post-policy reference: CSLA, Version=1.4.0.0 , Culture=neutral ,
PublicKeyToken= 425badbc16d377e b
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*****@discus sions.microsoft .com> wrote in message
news:B2******** *************** ***********@mic rosoft.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(Diffe rent 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.FileN otFoundExceptio n: File or assembly name CSLA, or one of its
dependencies, was not found.
File name: "CSLA"
at Xenios.MdiMain. DoLogin()
at Xenios.MdiMain. ToolBarMain_But tonClick(Object sender,
ToolBarButtonCl ickEventArgs e) in
C:\Projects\Xen ios\XeniosZeus\ Xenios\Xenios\m diMain.vb:line 555
at
System.Windows. Forms.ToolBar.O nButtonClick(To olBarButtonClic kEventArgs
e)
at System.Windows. Forms.ToolBar.W mReflectCommand (Message& m)
at System.Windows. Forms.ToolBar.W ndProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

=== Pre-bind state information ===
LOG: DisplayName = CSLA, Version=1.4.0.0 , Culture=neutral ,
PublicKeyToken= 425badbc16d377e b
(Fully-specified)
LOG: Appbase = C:\Projects\Xen ios\XeniosZeus\ Xenios\Xenios\o bj\Debug\
LOG: Initial PrivatePath = NULL
Calling assembly : Xenios, Version=1.0.206 1.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\Micros oft.NET\Framewo rk\v1.1.4322\co nfig\machine.co nfig.
LOG: Post-policy reference: CSLA, Version=1.4.0.0 , Culture=neutral ,
PublicKeyToken= 425badbc16d377e b
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
14045
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 the workstations are DELLs running XP SP1a with the 1.1 .NET Framework. The following line of code generates an exception on the one PC: Dim oMac As New System.Management.ManagementClass("Win32_NetworkAdapterConfiguration") The error it...
1
6702
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 System.EnterpriseServices.ResourcePool(null); The exception I get for this line is System.IO.FileNotFoundException: The specified module could not be found.
3
2078
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 XmlContent.cs When I run my aspx page, which has a codebehind that instantiates the object from in my assembly, I get the following error, anyone know why? File or assembly name System.Xml, or one of its dependencies, was not found.
2
2315
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 dependencies, was not found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
0
1829
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: ------------------------------------------- //try { // security assertion
3
9083
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
5006
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 : >************************************************************************ > <WebMethod(), System.Web.Services.Protocols.SoapRpcMethod()> _ > Public Function HelloWorld() As > <System.Xml.Serialization.SoapElementAttribute("return")> String
1
7146
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 the "System.IO.Move" goes in to a loop and keeps creating the file on the destination folder with a 0byte size and keeps entering the error in the log i have until someone stop the service. so what i cant figure out is since it catches the...
2
7953
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. When someone else uses the web app and tries to open a file using the remote server the error below happens. any help? **Code** C# - filepath is a valid file name which is passed via the form. System.IO.BinaryReader br = new...
2
11018
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 on a W23 server SP2, I get the following error: System.Runtime.Remoting.RemotingException: Remoting configuration failed with the exception 'System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation....
0
8861
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9616
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9279
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6830
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6101
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4910
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3340
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2237
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.