Microsoft KB Archive/887787

= You may receive error messages from Reporting Services after you install the ASP.NET ValidatePath Module =

Article ID: 887787

Article Last Modified on 11/1/2005

-

APPLIES TO


 * Microsoft SQL Server 2000 Reporting Services
 * Microsoft SQL Server 2005 Beta 2

-



SYMPTOMS
After you install the Microsoft ASP.NET ValidatePath module, you may receive the following error messages from Microsoft SQL Server 2000 Reporting Services when you browse the http://servername/Reportserver page and the http://servername/Reports page:

Server Error in '/ReportServer' Application.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type System.Web.AspNetHostingPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.



RESOLUTION
To resolve this problem, use one of the following methods.

Method 1: Replace the .config files
To replace the .config files with new versions that are available from the Microsoft Download Center, follow these steps:

Important When you replace your .config files, you return to a default installation. Any changes that you have made to the configuration files will be lost. If you have made several modifications to your .config files, use Method 2.  Locate the following two files on the computer that is running Microsoft Internet Information Services (IIS) and the Reporting Services components:  %ProgramFiles%\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\rssrvpolicy.config %ProgramFiles%\Microsoft SQL Server\MSSQL\Reporting Services\ReportManager\rsmgrpolicy.config  Rename the files in step 1 to Rssrvpolicy.old and Rsmgrpolicy.old. Download the .config files from the following link:

http://download.microsoft.com/download/9/8/C/98CEED6D-3489-4504-BBB5-586B63001CE0/887787.exe

 Expand the files from the package to your local drive.</li> Replace your current .config files with the .config files from the package.</li> Restart the IIS services by using IIS Manager.</li></ol>

Method 2: Manually change the .config files
To manually change the .config files, follow these steps: <ol> Locate the following files on the computer that is running IIS and the Reporting Services components:  %ProgramFiles%\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\rssrvpolicy.config</li> %ProgramFiles%\Microsoft SQL Server\MSSQL\Reporting Services\ReportManager\rsmgrpolicy.config</li></ul> </li> Make a backup copy of the .config files.</li> Open the .config files by using a text editor, such as Notepad.</li>  Locate the following CodeGroup tag in each .config file: <CodeGroup class = &quot;UnionCodeGroup&quot; Version = &quot;1&quot; PermissionSetName = &quot;FullTrust&quot; Name = &quot;Microsoft_Strong_Name&quot; Description = &quot;This code group grants codes signed with the Microsoft strong name full trust.&quot;> <IMembershipCondition Class = &quot;StrongNameMembershipCondition&quot; Version = &quot;1&quot;

PublicKeyBlob = &quot;00240000048000009400000006020000002400005253413100040000010001 0007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79AD 9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E8 21C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D62DE5F17E5EAF0FC 4963D261C8A12436518206DC093344D5AD293&quot;/> </CodeGroup> </li>  Add the following code after the CodeGroup tag that you found in step 4: <CodeGroup class = &quot;UnionCodeGroup&quot; Version = &quot;1&quot; PermissionSetName = &quot;Nothing&quot; Name = &quot;ValidateModule&quot; Description = &quot;Microsoft.Web.ValidatePathModule.dll&quot;> <IMembershipCondition class=&quot;StrongNameMembershipCondition&quot; version =&quot;1&quot;

PublicKeyBlob=&quot;0024000004800000940000000602000000240000525341310004000001000 100A77DA99520637B04AF0CBA09C5C08FF306F1D69859D03EE699C57C1F6C497339BFB3E6 618255AE0A3906C10CE5673311E8B30C186D2393C1B78D6FF7F32BDA20C74B0AD36BA491 C17E5E01C1D5B3ECD5AEF05C8E4660C384226BE8933812800DFD8F365D7CD0CF5E6631A6 506CBC1D2F73136FF9C52EBE77068E3B0DC78B7DD9&quot;/>

<CodeGroup class = &quot;UnionCodeGroup&quot; Version = &quot;1&quot; PermissionSetName = &quot;FullTrust&quot; Name = &quot;Validate Module from GAC&quot;> <IMembershipCondition class = &quot;UrlMembershipCondition&quot; Version = &quot;1&quot; Url = &quot;$Gac$/*&quot;/> </CodeGroup> </CodeGroup>

Note: You will need to remove the line breaks from the PublicKeyBlob if you are pasting this code into your .config files </li> Restart the IIS services by using IIS Manager.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in ASP.NET ValidatePath module.

<div class="references_section">