Hi Stephen,
Looks like you're using medium trust hosting. Microsoft quit recommending the use of trust levels to isolate application code back in 2012.
So, my recommendation is to ask your host to switch you to full trust hosting (many hosting providers are not using trust levels anymore) or switch to a new host.
Thanks,
Joe