473,414 Members | 1,766 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,414 software developers and data experts.

System.IO.FileNotFoundException for one of my dll's

I still have big problems running an assembly consisting of C# generated dll
and exe and VC++ (managed+unmanaged+mfc) generated dll.
On my development machine no problem, but on any other machine.

I get an System.IO.FileNotFoundException for one of my dll's.
The odd thing is that the file is right there, the file have the correct
version and in the error messages you can clearly see that he does know
where to look for the file.
So in theory this should work!!!!!!

I tried to create a config file, but it does not help much.
I also tried to copy to a local folder, but no help.
And I activated full trust for the domain and executable!

A screen dump (Exception converted to messagebox) can be found here:
http://www.obaeyens.com/Skyscan/DOTN...entProblem.jpg

Any tips how to track down the real error so I will never ever have this
problem again?


Jul 21 '05 #1
1 3736
> I still have big problems running an assembly consisting of C# generated
dll
and exe and VC++ (managed+unmanaged+mfc) generated dll.
On my development machine no problem, but on any other machine.

......

MYSTERY SOLVED!!!!!!

I had one VC++ (managed+unmanaged+mfc) generated dll, calls
SkyscanLibBase.dll.
This one uses MFC distributed with VC++ 2002.

My program ctRepair.exe needs this SkyscanLibBase.dll.

Some time ago I discovered that in order to run SkyscanLibBase.dll, I needed
to provide the necessary dll's used by mfc (mfc70.dll, msvcp70.dll and
msvcr70.dll) because some computers does not have this MFC 70 installed!
(.NET 1.1 comes with MFC 71). And all seemed to work just fine with this
release mode.

But totday I was busy compiling the debug version, so I copied the MFC 70
(mfc70.dll, msvcp70.dll and msvcr70.dll) to that local folder. and THIS was
my mistake !
I should have used the debugging version of MFC 70 (mfc70d.dll, msvcp70d.dll
and msvcr70d.dll). Note the 'd'.

The confusing part was because the error appeared to be SkyscanLibBase.dll,
while in reality it were dll files used by SkyscanLibBase.dll.
You can find back the used dll's by using the dependency walker.

This all worked fine on some machines because these dll's were found in the
c:\winnt\system32 folder installed by some other program.
So I am finally ready to deploy my applications, and I am a very happy man
now. :-)
Jul 21 '05 #2

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

Similar topics

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...
0
by: W1ld0ne74 | last post by:
I have rewritten a VB6 COM+ object using C# .Net. The object works as expected and registers itself in COM+ on my PC, the development server and even on the Test server. I did battle with this...
1
by: Brian | last post by:
I've looked through the previous posts on this one and have verified permissions and location of my Dlls, but I am still getting an exception when I try to Load an assembly. The directory where...
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...
0
by: Martinh | last post by:
Hi After invoking RetrieveData in a WebService I recieve the following response in a new window... I am running Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 ...
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?
3
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
by: Mongo | last post by:
I am getting the following error when I try to run a new webservice I have placed on any one of 4 windows 2003 servers. (Running under ASP.NET 1.1) To minimize the problem, I created a simple...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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
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...

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.