Lorsqu'on installe SQL Server 2005 Reporting Services (SSRS), on peut tomber sur une erreur pénible à trouver lors de l'accès au portail :
Ce message est le suivant :
------
Server Error in '/Reports' Application.
An error occurred while parsing the configuration file. The ReportServerVirtualDirectory element is missing.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details:Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[Exception: An error occurred while parsing the configuration file. The ReportServerVirtualDirectory element is missing.] Microsoft.ReportingServices.Diagnostics.RSConfiguration.ThrowElementMissing(String element) +74 Microsoft.ReportingServices.Diagnostics.UIConfiguration.ParseXML(XmlNode node, RSConfiguration configObject) +1496 Microsoft.ReportingServices.Diagnostics.RSConfiguration.ParseDocument() +1323 Microsoft.ReportingServices.Diagnostics.RSConfiguration.Load() +88 [ServerConfigurationErrorException: The report server has encountered a configuration error. See the report server log files for more information.] Microsoft.ReportingServices.Diagnostics.RSConfiguration.Load() +318 Microsoft.ReportingServices.Diagnostics.RSConfigurationManager..ctor(String configFileName, String configLocation) +191 Microsoft.ReportingServices.UI.Global.get_ConfigurationManager() +128 Microsoft.ReportingServices.UI.Global.get_Configuration() +9 Microsoft.ReportingServices.UI.GlobalApp.Application_AuthenticateRequest(Object sender, EventArgs e) +146 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +176 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +177
Version Information:
------
Ce message est lié à la configuration du site portail qui n'est pas terminée. Il faut donc aller dans le répertoire d'installation de SSRS :
- C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager\
Editer le fichier de configuration :
- RSWebApplication.config
Ce fichier doit avoir les valeurs correctes pour les accès, qui sont dans mon cas :
<Configuration>
<UI>
<ReportServerUrl></ReportServerUrl>
<ReportServerVirtualDirectory>ReportServer</ReportServerVirtualDirectory>
<ReportBuilderTrustLevel>FullTrust</ReportBuilderTrustLevel>
</UI>....
Ensuite, un petit iisreset et votre portail SSRS sera à nouveau fonctionnel.
La solution est disponible sur le site :
Romelard Fabrice [MVP]
Commentaires
Enregistrer un commentaire