简体   繁体   中英

p/invoke dll loads fine on dev machines but distributed applications (xp/windows7) p/invoke .dll cannot be found

We built a project in c# that uses a .dll which we use p/invoke to access functions within the .dll. It works on our development machines, we can create an installation version of our software which runs fine but if we load it on other xp machines and windows 7 machines which aren't dev machines it reports an error that the .dll that it is trying to p/invoke cannot be found. The error is repored as the 'the application has failed to start because its side by side configuration is not correct.'

What are we doing wrong?

Thanks, Ron.

尝试安装VC ++可再发行组件。

Also check that the dll is in the path. It does make a difference, I swear!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM