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

Wierd mixed c++ assembly problem.

We are having an issue where .NET assemblies are inconsistently being
found/not found. On some runs, everything runs fine. On other runs, we get
exceptions saying that one of our assemblies was not found. Also, if we
were to do a Search using Windows Explorer, sometimes the assembly show up,
and sometimes it doesn't. We inherited this code and the original
developers said the only way they were able to fix the problem was to
reinstall the OS! I don't believe I should have to reinstall the OS, any
other ideas?

Thanks,
Mike
Feb 19 '07 #1
2 1180
Here is the output of the exception.
System.IO.FileNotFoundException: File or assembly name Wrapper, or one of
its dependcies, was not found.
File name: "Wrapper"
at formProj.CDataOperation.Connect()
at formProj.CParaGlobal.ConnectToDataBase()

=== Pre-bind state information ===
LOG: DisplayName = Wrapper, Version=1.0.2606.19210, Culture=neutral,
PublicKeyToken=null (Fully-specified)
LOG: Appbase = c:\BIN\STUDENT\
LOG: Initial PrivatePath = NULL
Calling assembly : formProj, Version=1.0.2606.19445, Culture=neutral,
PublicKeyToken=null
==

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: Wrapper, Version=1.0.2602.19210,
Culture=neutral, PublicKeyToken=null
LOG: Attemping download of new URL file:///c:/BIN/SUDENT/Wrapper.DLL

I've never had to deal with .NET assemblies before, so the above is mostly
greek to me. Also, we can connect to the database through Visual Studio.
We are using VS2003 and Windows 2000 SP4 and .NET 1.1. Some of the machines
had .NET 2.0 installed, but has since been uninstalled because it was
causing issues with some other files. We still get this error regardless if
we execute on a machine that had .NET 2.0 installed, or a machine that has
only every had .NET 1.1. installed.

"Mike Smith" <Mi*******@somewhere.comwrote in message
news:Of**************@TK2MSFTNGP04.phx.gbl...
We are having an issue where .NET assemblies are inconsistently being
found/not found. On some runs, everything runs fine. On other runs, we
get exceptions saying that one of our assemblies was not found. Also, if
we were to do a Search using Windows Explorer, sometimes the assembly show
up, and sometimes it doesn't. We inherited this code and the original
developers said the only way they were able to fix the problem was to
reinstall the OS! I don't believe I should have to reinstall the OS, any
other ideas?

Thanks,
Mike

Feb 19 '07 #2
Fixed. It turned out that we needed to install a 3rd party application.
There was a dependency on a DLL that was installed by this third party
application. The only way we found this out was to run depends on the DLL.
To bad the exception didnt point this out earlier it would have saved 5 days
worth of work.

"Mike Smith" <Mi*******@somewhere.comwrote in message
news:Of**************@TK2MSFTNGP04.phx.gbl...
We are having an issue where .NET assemblies are inconsistently being
found/not found. On some runs, everything runs fine. On other runs, we
get exceptions saying that one of our assemblies was not found. Also, if
we were to do a Search using Windows Explorer, sometimes the assembly show
up, and sometimes it doesn't. We inherited this code and the original
developers said the only way they were able to fix the problem was to
reinstall the OS! I don't believe I should have to reinstall the OS, any
other ideas?

Thanks,
Mike

Feb 19 '07 #3

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

Similar topics

8
by: Ted Miller | last post by:
Hi folks, I'm looking at moving a large base of C++ code to .Net under tight time constraints. The code runs in mission-critical environments, and I am extremely concerned about the loader lock...
9
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the same inability and someone who can decipher and...
8
by: Bern McCarty | last post by:
Is it at all possible to leverage mixed-mode assemblies from AppDomains other than the default AppDomain? Is there any means at all of doing this? Mixed-mode is incredibly convenient, but if I...
8
by: Nadav | last post by:
Hi, I am writing a performence critical application, this require me to stick to unmanaged C++ as performance is much better using unmanaged C++ ( about 33% better ), Still, I am trying to avoid...
7
by: Kevin Frey | last post by:
Using .NET 1.1. We have a mixed-mode assembly written in Managed C++ that we are using from an ASP.NET application that has been coded using C#. The mixed-mode assembly has its own...
8
by: Edward Diener | last post by:
By reuse, I mean a function in an assembly which is called in another assembly. By a mixed-mode function I mean a function whose signature has one or more CLR types and one or more non-CLR...
0
by: Russ Barrett | last post by:
Hello, I'm new to ASP.Net and I'm trying to interface an ASP.Net (C#) application to functionality resident in a C++ static lib. From posts I've seen around I understand this requires creation of a...
0
by: MC-Advantica | last post by:
I have built a managed wrapper class and assembly that expose much functionality available in unmanaged legacy DLLs. I can write VB apps that interface with the managed assembly, and the managed...
1
by: =?Utf-8?B?SmltIFdhbHNo?= | last post by:
I have an VC++ MFC Win32 application that isn't working correctly when I build it with VS2005. The problem seems to be in some ADO ActiveX controls that came with VS6 and are now out of support....
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.