I have to host a WCF service in a medium trust environment. I want to know which bindings are supported while hosting WCF services in medium trust. There is a MSDN article, Supported Deployment Scenarios which talks about开发者_运维知识库 partial trust. Is it the same as medium trust?
- Full trust; you can do anything.
- High; you can do anything except unmanaged code, services, event logs, msmq, odbc/oledb/oracle.
- Medium; same as High, with the additional restrictions of not being able to access files outside the wwwroot, access the registry, or do network/webservice calls.
- Low; same as Medium, with the additional restrictions of not being able to write to the file system and call CodeAccessPermission.Assert.
- Minimal; no access, except execution.
If an application is configured with a trust level other than Full, it is referred to as a partial-trust application. Partial-trust applications have restricted permissions, which limit access to secured resources for the application.
Source: trust Element (ASP.NET Settings Schema)
精彩评论