473,657 Members | 2,517 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Could not load file or assembly" exception

3 New Member
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.TypeInit ializationExcep tion "The type initializer for 'MyClass' threw
an exception."

InnerException:
System.IO.FileL oadException "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 1312
Plater
7,872 Recognized Expert Expert
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
4537
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 week. Today I get a message: Could not write to output file 'D:\DevelopmentProjects\Enterprise\CustomUtilities\obj\Debug\CustomUtilities ..dll' -- 'The process cannot access the file because it is being used by another process. '
0
1692
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. When I execute the static method via a test-driver windows form, I get the "System.TypeLoadException: Could not load type FCI.ITS.GIS.Utilities.LandProjections from assembly fciGISSpatialReferences". The error message has the fully-qualified...
1
334
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 this at the top: Page language="c#" Codebehind="MyWebForm.aspx.cs" AutoEventWireup="false" Inherits="MyProject.MyWebForm" ....when I hit the page on my server, I get this message:
1
1292
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 directly it works, when using reflection none of the dll's is "scanned". I used following code to work around this problem. Now I just want to know if this is the/a good way to do it, or should I use another system.
0
1453
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 the cause of this problem.. Please suggest asap.. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error
1
1909
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 this: <appSettings file="devsettings.config"/> I can't find any info on how to do the same in my dot net 2.0 web projects using the <connectionStringsin the web.config file. <connectionStrings file="devsettings.config"produces an
1
2936
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 'acPDFCreatorLib.Net, Version=2.0.1.32956, Culture=neutral, PublicKeyToken=8aedc7a81d17941d'
1
544
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'. at CORE.Reports.ImagingStepEngine.RenderReportSection(WorkItem aWorkItem, ReportSection aSection)
0
1356
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. Exception: System.TypeInitializationException "The type initializer for 'MyClass' threw an exception." InnerException: System.IO.FileLoadException "Could not load file or assembly 'MyLib, Version
0
8397
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
8310
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
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5632
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();...
0
4315
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2731
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
2
1620
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.