Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / February 2007

Tip: Looking for answers? Try searching our database.

Wierd mixed c++ assembly problem.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike Smith - 19 Feb 2007 15:18 GMT
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
Mike Smith - 19 Feb 2007 15:58 GMT
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.

> We are having an issue where .NET assemblies are inconsistently being
> found/not found.  On some runs, everything runs fine.  On other runs, we
[quoted text clipped - 7 lines]
> Thanks,
> Mike
Mike Smith - 19 Feb 2007 17:58 GMT
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.

> We are having an issue where .NET assemblies are inconsistently being
> found/not found.  On some runs, everything runs fine.  On other runs, we
[quoted text clipped - 7 lines]
> Thanks,
> Mike

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.