c# - Application builds yet execution fails on Any CPU build -


so there couple of questions asked on matter. there's x86, x64 secondary project references project created on x86 , based on third party .dll built on x86.

the entire dllimport , marshal call com wrapper created using upgrader tool. upgraded vb6.0 .net code. final .exe installed , run in every pc long released using x86 build. fails when build on anycpu configuration.

when anycpu build done , programme executed code keeps throwing error on third party .dll , complaints can't find .dll. none of these issues persists when build on x86. practical issue application meant device on windows embedded standard os , windows oss windows xp onwards.

error :

system.dllnotfoundexception unhandled  hresult=-2146233052   message=unable load dll 'posltd.dll': specified module not found. (exception hresult: 0x8007007e)   source=projectone      typename=""      stacktrace:        @ porjectone.pinvoke.unsafenative.posltd.connecttodevice(int32 nmachineno, string& stripaddress, int32 nnetport, int32 ntimeout, int32 nprotocoltype, int32 nnetpassword, int32 nlicense) 

what can done solve this? device os compatibility issue?

some of third party libraries created in such way, can not compiled other architecture.

for example, @ least theoretically use same part of code in x86, x86_64 , arm(eg. universal app), if wrote scratch using .net. if library compiled x86(be bad of developer or optimalization), can used applications same architecture. fine example of sqlite, pain in windows phone 8 developer - must have both x86 debug in emulator , arm production(afaik, @ least never found way have one).


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -