Newbie Question: Crash on not-quite-trivial config file

Topics: User Forum
Apr 7, 2009 at 8:48 PM
I just downloaded rsbuild and tried to get it to access my server by providing a simple config file, but it crashed.
Below are the config file contents and the rsbuild console output.
I don't know what causes this and I'm not sure if the Path is correct.
Suggestions appreciated.

<?xml version="1.0" encoding="utf-8"?>
<Settings>
  <Globals />
  <ReportServers>
    <ReportServer Name="RS1" Protocol="http" Host="msg-bi-report-1" Path="sites/MFx_Monitoring/StandardReports" Timeout="30" />
  </ReportServers>
  <DataSources>
   
  </DataSources>
  <Reports>
   
  </Reports>
  <DBExecutions />
</Settings>

C:\Users\domherit\Desktop\install>RSBuild.exe
RSBuild 1.1.0
(C)2005 Microsoft Corporation
Microsoft Corporation

--------------------------------
Database Installation
--------------------------------

--------------------------------
Reports Installation
--------------------------------
Validating reporting service: http://msg-bi-report-1/sites/MFx_Monitoring/Standa
rdReports/

Unhandled Exception: System.Configuration.ConfigurationErrorsException: Configur
ation system failed to initialize ---> System.Configuration.ConfigurationErrorsE
xception: Configuration file RSBuild.config does not have root <configuration> t
ag (C:\Users\domherit\Desktop\install\RSBuild.config line 2)
   at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignor
eLocal)
   at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
   at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey
)
   --- End of inner exception stack trace ---
   at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey
)
   at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(S
tring sectionName)
   at System.Configuration.ClientConfigurationSystem.System.Configuration.Intern
al.IInternalConfigSystem.GetSection(String sectionName)
   at System.Configuration.ConfigurationManager.GetSection(String sectionName)
   at System.Configuration.PrivilegedConfigurationManager.GetSection(String sect
ionName)
   at System.Diagnostics.DiagnosticsConfiguration.Initialize()
   at System.Diagnostics.Switch.InitializeConfigSettings()
   at System.Diagnostics.Switch.InitializeWithStatus()
   at System.Diagnostics.Switch.get_SwitchSetting()
   at System.Diagnostics.BooleanSwitch.get_Enabled()
   at System.Xml.Serialization.RecursionLimiter..ctor()
   at System.Xml.Serialization.XmlReflectionImporter.IncludeTypes(ICustomAttribu
teProvider provider)
   at System.Web.Services.WebMethodReflector.IncludeTypes(LogicalMethodInfo meth
od, XmlReflectionImporter importer)
   at System.Web.Services.WebMethodReflector.IncludeTypes(LogicalMethodInfo[] me
thods, XmlReflectionImporter importer)
   at System.Web.Services.Protocols.SoapClientType.GenerateXmlMappings(Type type
, ArrayList soapMethodList, String serviceNamespace, Boolean serviceDefaultIsEnc
oded, ArrayList mappings)
   at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
   at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
   at Microsoft.SqlServer.ReportingServices.ReportingService..ctor() in e:\Diabe
tesNed\vendorsrc\rsbuild\trunk\vendorsrc\trunk\src\RSBuild.Core\ReportingService
s\ReportingService.cs:line 18
   at RSBuild.WSWrapper2003.TryCreate(ReportServerInfo reportServer, IWSWrapper&
 result, Exception& exception) in e:\DiabetesNed\vendorsrc\rsbuild\trunk\vendors
rc\trunk\src\RSBuild.Core\WSWrapper2003.cs:line 26
   at RSBuild.PublishTask.Validate() in e:\DiabetesNed\vendorsrc\rsbuild\trunk\v
endorsrc\trunk\src\RSBuild.Core\Tasks\PublishTask.cs:line 57
   at RSBuild.Dispatcher.RunTasks() in e:\DiabetesNed\vendorsrc\rsbuild\trunk\ve
ndorsrc\trunk\src\RSBuild.Core\Dispatcher.cs:line 48
   at RSBuild.AppEntry.Main(String[] args)

C:\Users\domherit\Desktop\install>

Apr 8, 2009 at 8:16 AM
Try renaming the config file to anything else than RSBuild.config or RSBuild.exe.config. Using RSBuild.config as file name causes the .NET configuration system to consider the file a regular .NET application configuration file, which it isn't. Therefore the ConfigurationErrorsException.