Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
<runtime> Element
 <generatePublisherEvidence> Element

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework General Reference
<generatePublisherEvidence> Element

Specifies whether the runtime uses code access security (CAS) publisher policy.

<configuration> Element
  <runtime> Element
    <generatePublisherEvidence> Element
<generatePublisherEvidence  
   enabled="true|false"/>

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

enabled

Required attribute.

Specifies whether the runtime uses CAS publisher policy.

Enabled Attribute

Value

Description

false

Does not use CAS publisher policy.

true

Uses CAS publisher policy. This is the default.

Child Elements

None.

Parent Elements

Element

Description

configuration

The root element in every configuration file used by the common language runtime and .NET Framework applications.

runtime

Contains information about runtime initialization options.

The common language runtime (CLR) tries to verify the Authenticode signature at load time to create Publisher evidence for the assembly. However, by default, most applications do not need Publisher evidence. Standard CAS policy does not rely on the PublisherMembershipCondition. You should avoid the unnecessary startup cost associated with verifying the publisher signature unless your application executes on a computer with custom CAS policy, or is intending to satisfy demands for PublisherIdentityPermission in a partial-trust environment. (Demands for identity permissions always succeed in a full-trust environment.)

NoteNote:

We recommend that services use the <generatePublisherEvidence> element to improve startup performance. Using this element can also help avoid delays that can cause a time-out and the cancellation of the service startup.

Configuration File

This element can be used only in the application configuration file.

The following example shows how to use the <generatePublisherEvidence> element to disable checking for CAS publisher policy for an application.

<configuration>
    <runtime>
        <generatePublisherEvidence enabled="false"/>
    </runtime>
</configuration>
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Which .NET version?      codecruncher ... Das Wiesel   |   Edit   |   Show History

Woefully lacking from this documentation is which exact version of .NET first supported this element.

In contrast, good old Win32 APIs are very nicely documented as far as which versions of Windows they are supported in.

ADD:
This is documented in http://support.microsoft.com/kb/936707
and is supported by the Microsoft .NET Framework 2.0 and later

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker