The solution "|0" needs to add Code Access Security policies. If you fully trust this solution, use the -allowCasPolicies ...