load assemble with xml
-
Hi forum some body can tell me how can i save and load an assembly in any location through xml for my application. when i save my data with xml so
<property>
<name>MyProperty</name>
<type>System.Collections.Generic.List`1[[Mysolution.Myproject.MyClass.MyProperty, mydll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</type>
<value />
</property>and i try load it again, i get the error "is not possible load the filename or assembly mydll ..." and i don't want to copy the assembly to the bin folder of my application. What i want is save and load this in any location. how can i specify this? Thankyou
-
Hi forum some body can tell me how can i save and load an assembly in any location through xml for my application. when i save my data with xml so
<property>
<name>MyProperty</name>
<type>System.Collections.Generic.List`1[[Mysolution.Myproject.MyClass.MyProperty, mydll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</type>
<value />
</property>and i try load it again, i get the error "is not possible load the filename or assembly mydll ..." and i don't want to copy the assembly to the bin folder of my application. What i want is save and load this in any location. how can i specify this? Thankyou
-
Hi forum some body can tell me how can i save and load an assembly in any location through xml for my application. when i save my data with xml so
<property>
<name>MyProperty</name>
<type>System.Collections.Generic.List`1[[Mysolution.Myproject.MyClass.MyProperty, mydll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</type>
<value />
</property>and i try load it again, i get the error "is not possible load the filename or assembly mydll ..." and i don't want to copy the assembly to the bin folder of my application. What i want is save and load this in any location. how can i specify this? Thankyou
I'm not sure what you're asking. Do you need to dynamically load the mydll Assembly?
-
I'm not sure what you're asking. Do you need to dynamically load the mydll Assembly?
No. I can load my assembly. What i need is to load the values of my properties from the xml file. I'm serializing the values of my properties, but if the property is a basic type (int, float, string...) there is no problem, the problem is when my property is the type Myclass, I can not load again my values.
-
No. I can load my assembly. What i need is to load the values of my properties from the xml file. I'm serializing the values of my properties, but if the property is a basic type (int, float, string...) there is no problem, the problem is when my property is the type Myclass, I can not load again my values.
Edit the subject then since your question is not about loading an assembly but rather serialization http://msdn.microsoft.com/en-us/library/ty01x675(VS.80).aspx[^]
I know the language. I've read a book. - _Madmatt
-
Edit the subject then since your question is not about loading an assembly but rather serialization http://msdn.microsoft.com/en-us/library/ty01x675(VS.80).aspx[^]
I know the language. I've read a book. - _Madmatt
-
Sorry, but the ploblem is not with the serialization, is loading the data. The error always says that is not possible to load the assembly. Any way, thank you
billy_iii wrote:
No. I can load my assembly.
billy_iii wrote:
the ploblem is not with the serialization, is loading the data.
Now which way is it?
I know the language. I've read a book. - _Madmatt