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

"Could not load file or assembly" exception

I'm trying to migrate a large solution (20 or so projects) from .NET 1.1 to
.NET 2.0. I've taken care of all the compile errors, but now I'm getting an
exception shortly after I start up the app.

Exception:
System.TypeInitializationException "The type initializer for 'MyClass' threw
an exception."

InnerException:
System.IO.FileLoadException "Could not load file or assembly 'MyLib, Version
1.0.2862.16401, Culture=neutral, PublicKeyToken=null' or one of its
dependencies. Exception from HRESULT: 0xE0434F4D"

The exe is built from VB code. 'MyClass' is in a managed C++ dll, and
'MyLib' is a different managed C++ dll. I've been stuck on this problem for
days. Any help would be greatly appreciated. Thanks.
Nov 2 '07 #1
1 1291
Plater
7,872 Expert 4TB
I would guess it just wants you to re-build the .dlls and then update the references to them.

Actually it sounds like you already re-built them so they have a different digital signature now. The project is still looking for the old ones though and doesn't like the new ones.
Try removing the references to the DLLs and then re-adding them.
Nov 2 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Daniel Billingsley | last post by:
Today I went to compile a solution I've been working on for months. I've been off most of the last few months, so there's been a gap in the work, but I did compile it a few times earlier this...
0
by: jff | last post by:
I defined a simple enumeration called "LandProjections" in one of my C# class library assemblies. I have another class library assembly that has a static method which references the enumeration....
1
by: Kevin Parkinson | last post by:
Hello Eveyone: I was wondering if someone can set me straight on this little problem I am having which I believe must be a configuration issue. Everytime VS.NET creates a new web form and puts...
1
by: Dominique Vandensteen | last post by:
I want to dynamicly load a type (typename is defined in the database). This type is located in the exe itself or one of the dll's in the directory with the exe file. When creating an instance...
0
by: ksayal | last post by:
Hi, I'm creating a project. Whenever I try to add a user control or add an aspx page it gives me the following error. When I remove the inherits="" thing, it shows up the page.... What would be...
1
by: Morten71 | last post by:
in web.config in my dot net 1.1 web projects I have my connection strings in the appSettings section. I usually overruled values by referencing an external config file holding my devsettings like...
1
by: Curious | last post by:
Hi, I have a .NET program that uses a third party assembly. However, it doesn't seem to work because when I start my program, it gives me an error as below: Could not load file or assembly...
1
by: Curious | last post by:
Hi, I've got the error as described below: System.TypeLoadException: Could not load type 'CORE.COREUtils' from assembly 'CORE, Version=6.4.2655.23177, Culture=neutral, PublicKeyToken=null'....
0
by: =?Utf-8?B?S2V2aW5NdXJwaHlSSkxH?= | last post by:
I'm trying to migrate a large solution (20 or so projects) from .NET 1.1 to ..NET 2.0. I've taken care of all the compile errors, but now I'm getting an exception shortly after I start up the app....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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...

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.