views:

144

answers:

3

A long time ago I wrote a little FTP utility for a client, and it has been working just fine for over a year. The other day, they tell me that they "updated" their machines (including the server where this was installed). Suddenly, my tiny little desktop app started erroring out. Here is the error message:

The configuration section 'connectionStrings' has an unexpected declaration

Which is interesting because my app doesn't even HAVE a connectionStrings entry in the config file.

I do use a 3rd party dll, but from the stacktrace, it appears that it is blowing up when trying to access a property that I made in my own Settings.settings file -- the property is called FTPserver, and not anything to do with my 3rd party dll, PowerTCP.

Anyone have any ideas where I can start diagnosing the real issue?

EDIT (added a screenshot, then removed it because it didn't help anything)

![alt text][1]

EDIT2: Damn Image Shack. Here it is typed out: System.Configuration.ConfigurationErrorsException: The configuration section 'connectionStrings' has an unexpected declaration. at System.Configuration.ConfigurationManger.get_ConnectionStrings() at System.Configuration.PrivilegedConfigurationManager.get_ConnectionStrings() at System.Configuration.LocatFileSettingsProvider.GetPropertyValues(SettingsContext contect, SettingsPropertyCollection properties) at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider) at System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName) at System.Configuration.SettingsBase.get_Item(String propertyName) at System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName) at System.Configuration.ApplicationSettingsBase.get_Item(String propertyName) at FTPAndArchive.Properties.Settings.get_FTPserver() in .Settings.Designer.cs: line 43 at FTPAndArchive.FtpAndArchive..ctor() in FtpAndAchive.cs: line 25 at FTPAndArchive.Program.Main() in .Program.cs: line 21

+1  A: 

Did you catch the complete exception?

If yes, please post them.

MrMarco
+1  A: 

Are you using FtpWebRequest or WebClient in your app? You might be running into a proxy server problem.

MusiGenesis
Nope. I'm not personally doing anything web related, only instantiating and calling some methods through PowerTCP.
Matt Dawdy
A: 

Well, I told my client to try something as a complete stab in the dark, and they said that all is fine now.

They went into the permissions on the folder in question, and added ASPNET as a user, and propagated those permissions down. Now they say that it works.

I don't really like that solution. But they are happy because it is up and running now.

If anyone has any concrete solution and evidence that it would work, too, I'll accept their answer instead of my own.

Thanks MrMarco and MusiGenesis for your time. I hope you don't feel that I've wasted it.

Matt Dawdy
That's weird - I thought you said this was a desktop app.
MusiGenesis
I did, and that is why I said it would be a huge shot in the dark to my client. And also why I'm not really sure WHY it even worked. It is 100% a desktop app.Even more confused now...
Matt Dawdy
My guess is that they accidentally granted and propagated permissions to Everyone while adding user ASPNET. I can't think of any other reason why ASPNET would have anything to do with a desktop app. I dunno.
MusiGenesis
Good point. So, merely resetting permissions and having them propagate down would have done it, the ASPNET user was just a red herring. Thanks!
Matt Dawdy