WPF control throwing 'resource identified by the URI missing' exception

前端 未结 3 1907
南方客
南方客 2021-02-12 18:13

On loading the plugin and trying to create \'XYZ\' control, the application throws the following exception:

\"The component \'XYZ\' does not have a reso

3条回答
  •  别那么骄傲
    2021-02-12 19:08

    try to use Assembly.LoadFrom() instead of Assembly.Load() or Assembly.LoadFile().

    I had the same problem: I used to load assemblies with Assembly.LoadFile(). After searching for days, I found out that Assembly.LoadFile() and Assembly.Load() are deprecated. Both methods create problems in the runtime. So I used Assembly.LoadFrom() and it worked.

提交回复
热议问题