Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. load assemble with xml

load assemble with xml

Scheduled Pinned Locked Moved C#
questionxmlhelpannouncement
7 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    billy_iii
    wrote on last edited by
    #1

    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

    W P 2 Replies Last reply
    0
    • B billy_iii

      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

      W Offline
      W Offline
      WillemM
      wrote on last edited by
      #2

      Sadly this can get quite complex. There's a project here on the site that implemented something similar. The best option is to search for MyXaml. It's an opensource XAML parser that contains code to do this. I hope this helps.

      WM. My blog

      1 Reply Last reply
      0
      • B billy_iii

        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

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        I'm not sure what you're asking. Do you need to dynamically load the mydll Assembly?

        B 1 Reply Last reply
        0
        • P PIEBALDconsult

          I'm not sure what you're asking. Do you need to dynamically load the mydll Assembly?

          B Offline
          B Offline
          billy_iii
          wrote on last edited by
          #4

          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.

          N 1 Reply Last reply
          0
          • B billy_iii

            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.

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            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

            B 1 Reply Last reply
            0
            • N Not Active

              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

              B Offline
              B Offline
              billy_iii
              wrote on last edited by
              #6

              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

              N 1 Reply Last reply
              0
              • B billy_iii

                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

                N Offline
                N Offline
                Not Active
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups