Last post May 16, 2018 02:24 PM by bruce (sqlwork.com)
May 03, 2018 12:16 AM|qiuguoli|LINK
I have a .net framework 2.0 dll for AX 4.0 business connector that I need it working in new .net 4.7.1 Web API project.
I tried but it is not working , it throw error said the application is in break mode.
but It works well in windows form app same 4.7.1 by add useLegacyV2RuntimeActivationPolicy to app.config
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1" />
I tried to add this to Web API, web.config , but it does not works, how can I make the web API project enable the mix mode like windows form app?
May 03, 2018 08:26 AM|Brando ZWZ|LINK
According to your description, I couldn't directly find the reason.
Could you please post the details error message about your web application?
Besides, I suggest you could check you have build your application in the right architecture.
Since multiple net 2.0 dll couldn't run well in x64 environment.
I suggest you could modify the Debug configuration to target an x86 platform.
More details about how to modify the debug configuration, you could refer to below article.
May 04, 2018 03:07 AM|qiuguoli|LINK
target to x86 does not help, I still get error : the application is in break mode and I cannot get error message as there is no exception throw.
what I trying is very simple.
create a new 4.7.1 web api , add refer to ax connector .dll change web.config, call api : application exit with no message
create a new 4.7.1 winform, add refer to ax connecto .dll and change the app.config , call api, it works.
May 16, 2018 02:24 PM|bruce (sqlwork.com)|LINK