SerializationException for dynamically loaded Type

前端 未结 1 1382
野趣味
野趣味 2021-01-24 02:40

As consequence of my previous question ( XML serialization of interfaces ) I obtained another problem...

I have an application that export data from a database. The expo

1条回答
  •  野的像风
    2021-01-24 02:58

    You could hook the AppDomain.AssemblyResolve event to load the assemblies as they are needed. the event is raised each time that the runtime needs an assembly that it cannot resolve. It gives you one last chance to provide the assembly before the "Unable to find assembly" exception is thrown. Examples are on the page that I linked.

    0 讨论(0)
提交回复
热议问题