PC Review


Reply
Thread Tools Rate Thread

"Could not load file or assembly" exception

 
 
=?Utf-8?B?S2V2aW5NdXJwaHlSSkxH?=
Guest
Posts: n/a
 
      2nd Nov 2007
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Assembly.Load()" - How to find an assembly using an alternate path JohnE Microsoft C# .NET 0 13th Apr 2008 02:50 PM
Error, "Could not load file or assembly" Curious Microsoft Dot NET 1 14th Jun 2007 08:25 PM
Load Assembly Type.GetType("Class,Assembly") Mohamed Zaki Microsoft Dot NET Framework 4 7th Jan 2006 06:32 PM
Assembly.CreateInstance throws "Exception has been thrown by the target of an invocation." cristian Microsoft Dot NET Framework 2 19th Nov 2004 02:50 PM
How to Catch "Unhandled exception" for a "file or assembly not found" error? Erialc Berts Microsoft C# .NET 1 3rd Nov 2003 03:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:58 AM.