Code-based security in managed code was not set because of the following error: %1[%{exception/}%]%[;%{exceptioninner/}%]. ...