What are the most common, typical things to AVOID coding into my ASP.NET app in order for it to run under Medium Trust on a shared host?
问题 What are the things that Medium Trust stops you from doing? For example, I've already learned that Medium Trust stops you from using System.IO.Path.GetTempPath(). What other things like that? 回答1: Here's how to learn about and resolve trust issues. 1) Search your Windows\Microsoft.NET\Framework[YOUR VERSION]\CONFIG folders for the files: web.config (this is the root config file) web_mediumtrust.config web_hightrust.config 2) Change the web.config to say <trust level="Medium" originUrl="" /> 3