473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

System.IO.FileNotFoundException: specified module could not be fou

ulf
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.
at System.EnterpriseServices.Platform.Initialize()
at System.EnterpriseServices.ResourcePool..ctor(Trans actionEndDelegate cb)
at SimpleTest.Class1.Main(String[] args) in
c:\temp\csharptestprojects\simple
test\class1.cs:line 44

The debugger shows the following libraries loaded:
'DefaultDomain': Loaded
'c:\winnt\microsoft.net\framework\v1.1.4322\mscorl ib.dll', No symbols loaded.
'SimpleTest': Loaded
'C:\temp\csharptestprojects\SimpleTest\bin\Debug\S impleTest.exe', Symbols
loaded.
'SimpleTest.exe': Loaded
'c:\winnt\assembly\gac\system.management\1.0.5000. 0__b03f5f7f11d50a3a\system.management.dll', No symbols loaded.
'SimpleTest.exe': Loaded
'c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c56 1934e089\system.dll', No
symbols loaded.
'SimpleTest.exe': Loaded
'c:\winnt\assembly\gac\system.enterpriseservices\1 .0.5000.0__b03f5f7f11d50a3a\system.enterpriseservi ces.dll', No symbols loaded.
The thread '<No Name>' (0x9cc) has exited with code 0 (0x0).
'SimpleTest.exe': Loaded
'c:\winnt\assembly\gac\system.enterpriseservices\1 .0.5000.0__b03f5f7f11d50a3a\system.enterpriseservi ces.thunk.dll', No symbols loaded.
A first chance exception of type 'System.IO.FileNotFoundException' occurred
in system.enterpriseservices.dll

I know, the nullparameter in the testcase is not correct but it reproduces
the problem I have.
Badly, the FileNotFoundException.FileName parameter is empty. So I do not
know which module we are talking about.
I am using a MS 2000 Server OS with the latest .NET Framework1.1 installed.
Wierd is that I got this error only on a single computer, which is my Dev
Machine.
When I execute this on any other of my computers I get no exception.
Has someone an idea how I can find out whats going on?

thanks,
Ulf



Jul 21 '05 #1
1 6649
PJ
After couple of hours assembly language debugging, figured out that it throws
that exception because a call to native Win32 API LoadLibraryW was failing.
The LoadLibraryW was trying to load "comadmin.dll". It is supposed to be
available in '\WINNT\system32\com' directory, and was not there. So, once I
copied that DLL from another system, it worked like a charm.

I guess that DLL is part of "Component Services" (in the AdministrativeTools
menu), but was missing on the problem system. Perhaps, the "Component
Services" were never installed or was messed up.

Hope this helps others.

P
"ulf" wrote:
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.
at System.EnterpriseServices.Platform.Initialize()
at System.EnterpriseServices.ResourcePool..ctor(Trans actionEndDelegate cb)
at SimpleTest.Class1.Main(String[] args) in
c:\temp\csharptestprojects\simple
test\class1.cs:line 44

The debugger shows the following libraries loaded:
'DefaultDomain': Loaded
'c:\winnt\microsoft.net\framework\v1.1.4322\mscorl ib.dll', No symbols loaded.
'SimpleTest': Loaded
'C:\temp\csharptestprojects\SimpleTest\bin\Debug\S impleTest.exe', Symbols
loaded.
'SimpleTest.exe': Loaded
'c:\winnt\assembly\gac\system.management\1.0.5000. 0__b03f5f7f11d50a3a\system.management.dll', No symbols loaded.
'SimpleTest.exe': Loaded
'c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c56 1934e089\system.dll', No
symbols loaded.
'SimpleTest.exe': Loaded
'c:\winnt\assembly\gac\system.enterpriseservices\1 .0.5000.0__b03f5f7f11d50a3a\system.enterpriseservi ces.dll', No symbols loaded.
The thread '<No Name>' (0x9cc) has exited with code 0 (0x0).
'SimpleTest.exe': Loaded
'c:\winnt\assembly\gac\system.enterpriseservices\1 .0.5000.0__b03f5f7f11d50a3a\system.enterpriseservi ces.thunk.dll', No symbols loaded.
A first chance exception of type 'System.IO.FileNotFoundException' occurred
in system.enterpriseservices.dll

I know, the nullparameter in the testcase is not correct but it reproduces
the problem I have.
Badly, the FileNotFoundException.FileName parameter is empty. So I do not
know which module we are talking about.
I am using a MS 2000 Server OS with the latest .NET Framework1.1 installed.
Wierd is that I got this error only on a single computer, which is my Dev
Machine.
When I execute this on any other of my computers I get no exception.
Has someone an idea how I can find out whats going on?

thanks,
Ulf


Jul 21 '05 #2

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

Similar topics

2
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
by: Shemesh | last post by:
Is anyone can help me to find out why im getting an error: ******** An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll Additional information: File or...
4
by: Ram | last post by:
Hey, I have a Com+ application (Inherits ServicedComponent). In this application, I needed to use one of the ADSI's COM Object, \ So I used the - TlbImp.exe. After I created the Tlb dll, I gave...
3
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
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...
2
by: Dave Johnston | last post by:
Hey, I'm trying to get SmtpMail to work. Problem is, each time I call SmtpMail.Send(msg) it throws this exception: The specified module could not be found. Description: An unhandled exception...
1
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
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?
2
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.