Modified trident *.exe.config OK

Oct 19, 2012 at 2:53 AM

I was having trouble calling SharpSvn from within an Activity. One of the major errors was getting "Execution of the workflow failed. Reason: Mixed mode assembly us built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information."

I fixed this by modifying all the .exe.config files in the trident install so that their <startup> element also had the attribute useLegacyV2RuntimeActivationPolicy="true".

This fixed the issue. Not sure if it will have repercussions down the line. Wasn't sure which one was causing the problem, and I'll look at doing some more work to narrow it down later.

I haven't found any problems with this change, I'll report if I do.

Tim Smith


Oct 22, 2012 at 7:49 AM

Hi Smith,

Thanks for showing interest in Trident.

There should not be any repercussions as such. In fact, it is a better and safer way of executing side by side execution which is out of process instead of inprocess side-by-side execution. All the default settings for the new app domain is managed by the .net framework itself and Trdient has no role to play in it.