The ReportServerVirtualDirectory element is missing.

[Bankground]
When I open the Reporting Service website, I got the issue:The ReportServerVirtualDirectory element is missing. 

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: System.Exception: An error occurred while parsing the configuration file. The ReportServerVirtualDirectory element is missing.

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) +45
Microsoft.ReportingServices.Diagnostics.UIConfiguration.ParseXML(XmlNode node, RSConfiguration configObject) +1640
Microsoft.ReportingServices.Diagnostics.RSConfiguration.ParseDocument() +1270
Microsoft.ReportingServices.Diagnostics.RSConfiguration.Load() +90

[ServerConfigurationErrorException: The report server has encountered a configuration error. See the report server log files for more information.]
Microsoft.ReportingServices.Diagnostics.RSConfiguration.Load() +316
Microsoft.ReportingServices.Diagnostics.RSConfigurationManager..ctor(String configFileName, String configLocation) +191
Microsoft.ReportingServices.UI.Global.get_ConfigurationManager() +157
Microsoft.ReportingServices.UI.GlobalApp.Application_Start(Object sender, EventArgs e) +52


[Solution]

I have checked a lot websites that only mentioned we should configure the Reporting Service from top in the Reporting Service Configuration Manager Tool. However, it does not fix the my issue.

What we can do is to go to Report Manager folder and edit the RSWebApplication.config file.

Add the ReportServer between ReportServerVirtualDirectory code.
<ReportServerVirtualDirectory>ReportServer</ReportServerVirtualDirectory>

It can fix the issue I got on our client server.
Advertisements
This entry was posted in Microsoft SQL Server Reports Service (SSRS). Bookmark the permalink.

3 Responses to The ReportServerVirtualDirectory element is missing.

  1. Unknown says:

    Thank you – this resolved my issue.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s