Cannot find type System.ApplicationException in mo

2019-07-17 00:13发布

问题:

I am making an Image processing App for my own use which I don't want to put on store. I want to use my pre designed Matlab codes in that windows store app. When using the dlls in my project, it displays the error -

Cannot find type System.ApplicationException in module mscorlib.dll

回答1:

Most probable cause for this exception is the DLLs which you are referencing or their dependencies are not supported by WinRT

Try to use LoadPackagedLibrary or GetProcAddress to load DLLs. If you cannot then Matlab DLL needs to be compiles with WinRT SDK.