Microsoft KB Archive/941443

= Error message when you try to open a report in Microsoft Dynamics CRM: &quot;ASP.NET ViewState has been disabled. The Report Viewer control requires that ViewState be enabled&quot; =

Article ID: 941443

Article Last Modified on 10/25/2007

-

APPLIES TO


 * Microsoft Dynamics CRM 3.0

-



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
Error when attempting to open a Report.



Result
ASP.NET ViewState has been disabled. The Report Viewer control requires that ViewState be enabled.



Cause
The virtual reporting folders are inheriting the viewstate from the root of the directory it is installed into.



Resolution
Open the web.config file at the root and enter the following between the  tags

Note: the location path must be the name of your SRS virtual directories (by default it is ReportServer and reports)

















If the SRS virtual directories are installed on the CRM Web site with non defaulst SRS virtual direcory names, you will need to update the CRM websites web.conf file to point to the correct virtual directories.

Example:

Default SRS Support in CRM web.config file:

<location path=&quot;Reports&quot;>



<compilation defaultLanguage=&quot;C#&quot; debug=&quot;true&quot;>

<remove assembly=&quot;Microsoft.Crm, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/>

<remove assembly=&quot;Microsoft.Crm.Entities, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/>

<remove assembly=&quot;Microsoft.Crm.ManagedInterop, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/>

<remove assembly=&quot;Microsoft.Crm.MetadataHelper, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/>

<remove assembly=&quot;Microsoft.Crm.MetadataService, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/>

<remove assembly=&quot;Microsoft.Crm.NativeInteropProxy, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/>

<remove assembly=&quot;Microsoft.Crm.ObjectModel, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/>

<remove assembly=&quot;Microsoft.Crm.Platform.ComProxy, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/>

<remove assembly=&quot;Microsoft.Crm.Platform.Proxy, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/>

<remove assembly=&quot;Microsoft.Crm.Platform.Server, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/>

<remove assembly=&quot;Microsoft.Crm.Platform.Sdk, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/>

<remove assembly=&quot;Microsoft.Crm.Platform.Types, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/>

<remove assembly=&quot;Microsoft.Crm.Scheduling, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/>

<remove assembly=&quot;Microsoft.Crm.Tools.ImportExportPublish, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;/>

<pages enableSessionState=&quot;true&quot; validateRequest=&quot;false&quot; enableViewState=&quot;true&quot; />

</system.web>

<location path=&quot;ReportServer&quot;>



<pages enableSessionState=&quot;true&quot; validateRequest=&quot;false&quot; enableViewState=&quot;true&quot; />

</system.web>

Change the <location path=&quot;ReportServer&quot;> to your reportserver URL and <location path=&quot;Reports&quot;> to Reports URL

<div class="summary_section">

DISCLAIMER
MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.

Keywords: kbmbsreports kbmbsmigrate kbnomt kbrapidpub KB941443

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.