Microsoft Knowledge Base Email Alertz

Smart Client Software Factory Security Problems With Partially Trusted Callers

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Smart Client Software Factory Security Problems With Partially Trusted Callers

Article ID: 951981 - View products that this article applies to.
Source: Microsoft Support

RAPID PUBLISHING

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

Action

Smart client application development for partially trusted environment, using both the May 2007 Smart Client Software Development Factory and the Enterprise Library Edition 3.1.

Result

System.Security.SecurityException was unhandled
  Message="That assembly does not allow partially trusted callers."

Cause

The SmartClient Software Factory was never intended to run in a partially trusted context or environment.  Thus, it may contain strong-name-signed assemblies that are not decorated with the AllowPartiallyTrustedCallers attribute.  Strong-named assemblies have a LinkDemand for full-trust, which will cause a SecurityException on partially-trusted callers when the AllowPartiallyTrustedCaller attribute is not applied to the strong-name-signed assembly.

Resolution



The Smart Client Software Factory was never intended for use in a partially-trusted environment.  i.e., it does not use the AllowPartiallyTrustedCallers attribute.

The Enterprise Library 3.1 does have support for partially trusted callers, but has a known bug in the ObjectBuild assembly, which does not have the AllowPartiallyTrustedCallers attribute.

More Information



CodePlex 

Creating an AppDomain with limited permissions

An Enhanced Version of the Sandboxed AppDomain

How to: Debug a Partial Trust Application

Exception Assistant

 

Giving the application Full-Trust is not the same as giving permissions with all the predefined permissions sets (Everything). 

CLR Integration Code Access Security

FullTrust means Full Trust

The Security Infrastructure of the CLR Provides Evidence, Policy, Permissions, and Enforcement Services

Patch for Partial Trust support in Enterprise Library for .NET 2.0

Whidbey's New SecurityException

Using CasPol to Fully Trust a Share

 

DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

Properties

Article ID: 951981 - Last Review: April 21, 2008 - Revision: 1.2
APPLIES TO
  • Microsoft .NET Framework 1.0
  • Microsoft .NET Framework 1.0 Service Pack 3
  • Microsoft .NET Framework 1.1 Device Update 3.0
  • Microsoft .NET Framework 1.1 Service Pack 1
  • Microsoft .NET Framework 2.0
  • Microsoft .NET Framework 2.0 IA64 Edition
  • Microsoft .NET Framework 2.0 Service Pack 1 (x86)
  • Microsoft .NET Framework 2.0 Software Development Kit
  • Microsoft .NET Framework 2.0 x64 Edition
  • Microsoft .NET Framework 3.0
  • Microsoft .NET Framework 3.5
  • Microsoft .NET Framework Class Libraries 2.0
  • Microsoft .NET Framework 1.1
  • Microsoft ASP.NET 1.1
Keywords: 
kbnomt kbrapidpub KB951981
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate