Export (0) Print
Expand All

.NET Trust Levels

Published: February 29, 2012

Updated: February 29, 2012

Applies To: Windows Server 2012, Windows Server 2012 R2



Use the .NET Trust Levels feature page to set the trust element in the Web.config file. The trust element enables you to configure the level of code access security (CAS) that is applied to an application.

Related scenarios

The following tables describe the UI elements that are available on the feature page and in the Actions pane.

 

Element Name Description

Trust Level

Displays the name of the trust level. Available options include:

  • Full (internal) - Specifies unrestricted permissions. Grants the ASP.NET application permissions to access any resource that is subject to operating system security. All privileged operations are supported.

  • High (web_hightrust.config) - Specifies a high level of code access security, which means that the application cannot do any one of the following things by default:

    • Call unmanaged code.

    • Call serviced components.

    • Write to the event log.

    • Access Message Queuing service queues.

    • Access ODBC, OleDb, or Oracle data sources.

  • Medium (web_mediumtrust.config) - Specifies a medium level of code access security, which means that, in addition to High Trust Level restrictions, the ASP.NET application cannot do any of the following things by default:

    • Access files outside the application directory.

    • Access the registry.

    • Make network or web service calls.

  • Low (web_lowtrust.config) - Specifies a low level of code access security, which means that, in addition to Medium Trust Level restrictions, the application cannot do any of the following things by default:

    • Write to the file system.

    • Call the Assert method.

  • Minimal (web_minimaltrust.config) - Specifies a minimal level of code access security, which means that the application has only execute permissions.

 

Element Name Description

Apply

Saves the changes that you have made on the feature page.

Cancel

Cancels the changes that you have made on the feature page.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft