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?

后端 未结 6 1780
走了就别回头了
走了就别回头了 2021-02-04 15:33

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

6条回答
  •  孤独总比滥情好
    2021-02-04 16:25

    In medium trust, at least at my host, P/INVOKE calls are unavailable, ie using [DLLImport] to call a COM component is not going to work.

    -Edoode

提交回复
热议问题