Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
Load Assembly Error Using LoadFromBinary
posted

Hi

I am getting an error when trying to load a binary file into an UltraTree. Here are the steps I am using:

1) I create the binary file by Serialising my object graph using a BinaryFormatter

2) I try to use the LoadFromBinary() method.

The error I get is:

{"Could not load file or assembly 'Castle.DynamicProxy, Version=1.1.5.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Castle.DynamicProxy, Version=1.1.5.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc"}

This assembly is referenced by NHibernate.dll, which is part of our solution.

My question is, why does the Tree try to load this assembly when it is not referenced by the containing assembly of my class? Is there a solution to this problem?

Thanks

Parents
No Data
Reply
  • 20872
    Offline posted

    Hello Bracchi,

    It seems to me that in your case your applicaiton is trying to load unsuccessfully the "Castle.DynamicProxy version 1.1.5.0" and that's why the applications doesn't run. I have tried using our UltraTree control, and I have found such issue while using the mentioned methods.

    Could you please verify if your application is using Castle.DynamicProxy and if it is able to load it correctly ? I believe that this is the reason for which you applicaiton is not able to compile and run. In order to verify this you could remove those assemblies from your project, and just use the UltraTree control and load its data through the mentioned methods.

    Please feel free to let us know if you have any other questions.

     

Children
No Data