bjr,
J'ai un probleme :
Dans la classe :État insuffisant pour désérialiser l'objet
Dans mon code principale je fais :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 class Loader : MarshalByRefObject { ... // Le get public Type TypeAssemblyInstance { get { return __typeAssemblyInstance; } } // Load public void Load(string assemblyName) { this.__currentAssembly = Assembly.LoadFrom(assemblyName); this.__assemblies.Add(this.__currentAssembly); } // Recupere le type avec public void GetTypeAssemblyInstance() { this.__typeAssemblyInstance = this.__currentAssembly.GetType("MDIPlugins.FPlugins",true,false); } }
arrivé au niveau de l'affectation 3eme ligne il me lance une exception serializationexception avec
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 this.__loader.Load(fi.FullName); // fi = fichier dll this.__loader.GetTypeAssemblyInstance(); _typePlugins = this.__loader.TypeAssemblyInstance;
J'ai oublié un truc ?État insuffisant pour désérialiser l'objet.
Partager