Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assembly not loaded
Message
De
26/08/2007 11:49:50
 
 
À
26/08/2007 08:51:40
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01250486
Message ID:
01250493
Vues:
24
John,

Check out my reply to Pete about a similar issue (Message #1250462). I use Reflection slightly differently (I don't use the Activator.CreateInstance method) to load a class from an assembly and it's been working great.

~~Bonnie



>Hi,
>I created a form in a class library project (DLL). I reference it from an EXE. However, .NET couldn't find my form if I use Actovator.CreateInstance(Type.GetType("MyNameSpace.myForm")). It works if I use new statement.
>
>When I debug, I found that, this exe doesn't load my DLL at all.
>
>The strange thing is, I can load this form and dll using another EXE project. What could cause this?
>
>Thank you
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform