<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>InfoPath project in .NET</title><link>https://www.infopathdev.com:443/forums/thread/12808.aspx</link><pubDate>Wed, 08 Mar 2006 07:33:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12808</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12808.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12808</wfw:commentRss><description>I created InfoPath project in .NET (c#). I add to the project an application config (App.config) file. In the App.config file I have this code:&lt;br /&gt;&lt;br /&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt; &amp;lt;appSettings&amp;gt;&lt;br /&gt;	&amp;lt;add key="ListName" value="MyForms" /&amp;gt; 	&lt;br /&gt;&amp;lt;/appSettings&amp;gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt;&lt;br /&gt;&lt;br /&gt;In the form's code I have this code:&lt;br /&gt;&lt;br /&gt;string listname=System.Configuration.ConfigurationSettings.AppSettings["ListName"];&lt;br /&gt;&lt;br /&gt;this.thisXDocument.UI.Alert(listname);&lt;br /&gt;&lt;br /&gt;But I get nothing in the alert!!!&lt;br /&gt;What is the problem? why can I work with config</description></item></channel></rss>