473,837 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1200
Here is the output of the exception.
System.IO.FileN otFoundExceptio n: File or assembly name Wrapper, or one of
its dependcies, was not found.
File name: "Wrapper"
at formProj.CDataO peration.Connec t()
at formProj.CParaG lobal.ConnectTo DataBase()

=== Pre-bind state information ===
LOG: DisplayName = Wrapper, Version=1.0.260 6.19210, Culture=neutral ,
PublicKeyToken= null (Fully-specified)
LOG: Appbase = c:\BIN\STUDENT\
LOG: Initial PrivatePath = NULL
Calling assembly : formProj, Version=1.0.260 6.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.260 2.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*******@some where.comwrote in message
news:Of******** ******@TK2MSFTN GP04.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*******@some where.comwrote in message
news:Of******** ******@TK2MSFTN GP04.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
4529
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 problem and the potential for deadlocks. After pouring over the available information, and trying a few experiments, I am still left with a few questions and issues I hope someone out there can shed some light on.
9
2599
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 explain it. I have some questions about the instructions for creating a mixed mode DLL in the MSDN topic "Converting Managed Extensions for C++ Projects from Pure Intermediate Language to Mixed Mode" in the "Managed Extensions for C++ Reference"....
8
3526
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 cannot load/unload/reload extensions into my large and slow-to-load application during development without restarting the process then the disadvantages may outweigh the advantages. I've got a mixed-mode program in which I create a new AppDomain...
8
2004
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 the usage of old style COM, my alternative is to expose my unmanaged interface through the CLI, to achieve that I have created a mixed mode DLL in which my unmanaged class are defined. When referencing the DLL just described in another mixed mode EXE...
7
1436
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 "initialisation" routine to cater for any potential "mixed-mode DLL loading problem". Some of our code uses thread-local-storage, and in the DllMain for my mixed-mode assembly I did the appropriate initialisation of the thread-local-storage object on...
8
2328
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 types. The problem: I have a number of mixed-mode functions which I want reuse. These functions revolve around converting a CLR String to a C++ std::string or
0
1418
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 'mixed-mode' assembly. Since a dll of this type provides no normal entry point for C Runtime (CRT) library initialization, I understand that the dll must provide its own exported functions to do this. Thus, from samples I've seen on the web,...
0
1228
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 assembly makes calls to the legacy dlls. All seems to work fine when the assembly is a private assembly. When I go through the process of strong naming the assembly and placing it into the GAC, none of my VB apps will initialize. I have gone to...
1
2701
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. So, I have decided to solve the problem by using a mixed assembly: Most of the program will be my MFC - based code (unmanaged), but I will implement one dialog box as managed code. In my original MFC app, this dialog box contains the problem ActiveX...
0
9851
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9694
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
10583
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
10286
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...
0
9419
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7824
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
7012
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();...
1
4481
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
3128
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.