In general, most applications will run fine under Medium Trust. If your application requires Full Trust, you can override the trust level at the application level by adding the following to your web.config file:
<trust level=”Full” />
If you run into problems using this code, we suggest you to get the answer from related community forum. Technical support cannot assist with specific coding related issues.