Bug in module loading from dll

Topics: Prism v4 - WPF 4
Jan 20, 2011 at 8:24 AM

Hi,

I was trying to load modules from separate assemblies using the path to the dll file. However the path was correct, the loading failed, because the dll couldn't be found. Then I started to look around and found that the module type loader cuts the first character of the path, when separating the path from the file prefix: string path = moduleInfo.Ref.Substring(RefFilePrefix.Length + 1);

The bug is located in the LoadModuleType method of the FileModuleTypeLoader class.

Cheers,

Csaba

Developer
Jan 20, 2011 at 1:36 PM

Hi Csaba,

You might find this work item in the issue tracker useful, which describes a similar problem. One possible workaround for this, as explained in the work item, would be to write "file:///YourModuleName.dll" in the path for your module.

I hope you find this helpful.

Guido Leandro Maliandi
http://blogs.southworks.net/gmaliandi

Jan 20, 2011 at 1:58 PM

Hi Guido,

I did the same as described in the work item.

Thanks for the quick reply,

Csaba