开发者

WPF, can´t load a COM dll in some client machines

开发者 https://www.devze.com 2023-01-08 00:19 出处:网络
I have an WPF Full Tust explorer application that uses a COM assembly. In some computers it works fine, in other ones it fails. There are too kind ok exceptions I got: ComException and FileNotFoundEx

I have an WPF Full Tust explorer application that uses a COM assembly.

In some computers it works fine, in other ones it fails. There are too kind ok exceptions I got: ComException and FileNotFoundException. In the first case the dll arrives to clinet but the COm generator isn´t found (wich is the Com generator?? must i add it to the project???), in the second case de dll never goes to client.

It´s an assembly to create and modificate PDF. PdfToolkit

I´ve tried registering the dll progamatically. It registers sucessfully in开发者_如何学编程 client, but can´t be load.

Some help, please???? Have I to do something to use the COM assembly in my WPF appplication???


It could be possible you are compiling for "Any CPU", then running your application on an x64 version of windows. When you run your application on x64 and it tries to load the COM, it will not find it because Windows is looking for a 64bit version of the COM.

Try compiling your main executable as "x86" instead of "Any CPU" and it should work on x64 or x86 (if this is the issue).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号