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 1 6649
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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?
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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,...
|
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...
|
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...
|
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...
| |