.net - FileNotFoundException when calling remote C# dll from C++/CLR -


my project plug in platform built in native c++. , plugin reuse current functionalities of existing c# project, built upon .net framework 4.0. use c++/clr bridge call c# codes. is, host application, built in unmanaged c++, calls managed c++ dll calls c# dll.

the platform run in 1 process , plugin run in process. , way platform find plugin dll user input directory in platform's user interface, platform load plugin dlls in directory plugin process.

this works when plugin folder local folder. however, when set plugin folder remote folder, , when tried instantiate c# class c++/clr class, got filenotfoundexception, detailed information "unknown url protocol".

our plugin project has both c++/clr , c# codes, built different dll files. in debug mode, in visual studio modules view, turns out c++/clr dlls loaded while c# dll not loaded(both in app directory). , exception happens when tried instantiate managed class in c++/clr codes, however, unfortunately there’s no stack call when got exception.

so how can allow host plugin process load remote c# dll properly?

after further investigation, found root cause plugin's applicationbase not set correctly. reason, if folder set remote folder, platform passes folder in linux format rather windows format, , our software running on windows only. why "filenotfoundexception" thrown , works when plugin folder local folder. need correct applicationbase in windows path format.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -