Article ID: 815164 - Last Review: April 30, 2003 - Revision: 2.3 HOW TO: Troubleshoot Problems That Are Related to Trust LevelsOn This PageSUMMARYThis step-by-step article discusses how to troubleshoot
problems that are related to trust levels. Managed assemblies are assigned trust levels that define what resources the assembly, and applications that use the assembly, will have access to. When an assembly is assigned permissions that are too restrictive, it does not function correctly. In highly restrictive environments, this is a common source of problems. This article describes how to isolate and resolve problems that are related to trust levels. Note These steps require you to grant additional privileges to the assembly. Microsoft recommends that you follow these steps only when you are confident that the assembly does not pose a security risk. back to the top Identify the Current Trust Level Assigned to an AssemblyWhen an assembly is assigned full trust, security policy restrictions are not applied to an assembly and you can be confident trust level is not the source of a problem. For additional information and to evaluate the trust level that is assigned to an assembly, click the following article number to view the article in the Microsoft Knowledge Base: 815159
(http://support.microsoft.com/kb/815159/EN-US/
)
HOW TO: Analyze ASP.NET Web Application Performance by Using the Performance Administration Tool
When the permissions that are assigned to the
assembly are unrestricted, the trust level that is to assigned the assembly is
not causing the problem.back to the top Determine Whether the Trust Level is the Source of the ProblemTrust levels are assigned by using the .NET Framework Configuration snap-in. A quick way to determine whether restrictive trust levels are the source of a problem is to temporarily grant full access to the assembly and determine whether the problem still occurs. To grant full access to the assembly, follow these steps:
back to the top Adjust the Trust LevelIf temporarily assigning full trust to an assembly resolves the problem, you know that the assembly requires greater trust than is typically assigned to it. To identify the lowest level of trust that an assembly requires to execute, assign the lowest trust possible and gradually increase that level of trust until the assembly executes correctly. To set the appropriate trust level to the assembly, follow these steps:
REFERENCES For additional information, click the following article
numbers to view the articles in the Microsoft Knowledge Base: 315736
(http://support.microsoft.com/kb/315736/EN-US/
)
HOW TO: Secure an ASP.NET Application by Using Windows Security
315588
(http://support.microsoft.com/kb/315588/EN-US/
)
HOW TO: Secure an ASP.NET Application Using Client-Side Certificates
815163
(http://support.microsoft.com/kb/815163/EN-US/
)
HOW TO: Troubleshoot Problems That Are Caused by the .NET Framework Security Configuration
back to the
top
| Article Translations
|
Back to the top
