You are here: Home

View Blog

tcpclient "configuration system failed to initialize"

by Robin Gaschk on Tuesday, 10 January 2017 1:12 AM
When creating a "New" tcpClient after upgrading from .Net 1.0 to 2.0 in a console application  I got the error message "configuration system failed to initialize". It was related to the config file I was using.

I had been using an xml data file in .net 1.0 to hold settings and other dynamic data information for the application. I called the xml file the same name as the application and with an extension of ".config".

After upgrading to .Net 2.0 the ".config" extension file required certain default tags I suspect which was not in this particular xml file. I then kept getting this error when instantiating the tcpClient class. Had me confused for some time. I eventually changed the ".config" file extension to ".info" which fixed my problem immediately. I didnt even need a default app.config file, I just needed to have my data file to be named something different than ".config".

This is for anyone else that may have falled into this issue.

Blogs Parent Separator Robin's Blog
network
Author
Robin Gaschk

The ramblings of a soapbox man