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 1779
走了就别回头了
走了就别回头了 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:23

    The system.runtime.serialization library is completely unavailable in medium trust.

    I coded around this for json serialization/deserialization and found out the hard way. It took a week to get an associate to confirm that medium trust restrictions were to blame. I ended up switching hosting companies as a result.

提交回复
热议问题