Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configuration system failed to initialize

Status
Not open for further replies.
Jun 17, 2004
73
US
Hopefully someone can help we with this. I keep getting this error. I read different things in different places and none have helped. I already tried deleting the file, with no luck. I read somewhere it might be the XML. Can some one look this over to see if there is a problem with it please. It is pretty much the same as my file except for a few naming changes for posting reasons but other than that it is exactly the same.

Code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=xxxxx" >
            <section name="MayFlower.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=xxxx" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
        </sectionGroup>
    </configSections>
  <dataConfiguration defaultDatabase="MayFlower.Properties.Settings.ConnectionString" />
  <connectionStrings>
    <add name="MayFlower.Properties.Settings.ConnectionString"
      connectionString="Data Source=ServerName;Initial Catalog=DB;Integrated Security=True"
      providerName="System.Data.SqlClient" />
  </connectionStrings>
  <userSettings>
    <MayFlower.Properties.Settings>
      <setting name="TempFolder" serializeAs="String">
        <value>\\server\Home Shares\Test\Temp</value>
      </setting>
      <setting name="PermFileFolder" serializeAs="String">
        <value>\\server\development\Test\DiStructure</value>
      </setting>
      <setting name="EmailServer" serializeAs="String">
        <value>server.xxxxx.local</value>
      </setting>
      <setting name="EmailTo" serializeAs="String">
        <value>email@yahoo.com</value>
      </setting>
      <setting name="EmailFrom" serializeAs="String">
        <value>email@yahoo.com</value>
      </setting>
      <setting name="FolderLimit" serializeAs="String">
        <value>999</value>
      </setting>
      <setting name="DBPath" serializeAs="String">
        <value>q:\dev\</value>
      </setting>
      <setting name="TempDBPath" serializeAs="String">
        <value>q:\dev\TempDocFolder\</value>
      </setting>
    </MayFlower.Properties.Settings>
  </userSettings>
</configuration>

It errors out on the line below.

public string PermFileFolder {
get {
return ((string)(this["PermFileFolder"]));
}
set {
this["PermFileFolder"] = value;
}

/cry
/help

[viking2]
LVL 60 ROGUE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top