Funny Issue with DataGrid and Config file

T

Tariq

I have a app.config file that looks something like this.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="test" value="10001"/>
</appSettings>
<fileTypes>
<add key="htm" value="c:\temp"/>
<add key="jpg" value="c:\temp\jpg"/>
<add key="png" value="c:\temp\png"/>
</fileTypes>
</configuration>

The issue is when I try to bind a datatable to a datagrid I get the
following ConfigurationException saying "Unrecognized configuration
section fileTypes".
Can someone explain why this is to me?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top