<?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>Re: config file location</title><link>https://www.infopathdev.com:443/forums/thread/14599.aspx</link><pubDate>Thu, 08 Jun 2006 16:43:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14599</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14599.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14599</wfw:commentRss><description>Thanks for that info, AndersR!</description></item><item><title>Re: config file location</title><link>https://www.infopathdev.com:443/forums/thread/14598.aspx</link><pubDate>Sun, 04 Jun 2006 22:34:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14598</guid><dc:creator>AndersR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14598.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14598</wfw:commentRss><description>Just for the record:&lt;br /&gt;&lt;br /&gt;app.config and infopath.exe.config is identical.&lt;br /&gt;&lt;br /&gt;app.config is just the way VS.NET names it until the project is builded.&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: config file location</title><link>https://www.infopathdev.com:443/forums/thread/14597.aspx</link><pubDate>Thu, 01 Jun 2006 17:04:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14597</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14597.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14597</wfw:commentRss><description>Yes.</description></item><item><title>Re: config file location</title><link>https://www.infopathdev.com:443/forums/thread/14596.aspx</link><pubDate>Wed, 31 May 2006 21:17:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14596</guid><dc:creator>mshukla</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14596.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14596</wfw:commentRss><description>thanks guys! I will try that and let you know, but basically you are saying that if I load the file at startup, then it will be read and any new config value picked up. If i dont explicitly load the file, then is it read only once when the form is created and then never read again?</description></item><item><title>Re: config file location</title><link>https://www.infopathdev.com:443/forums/thread/14595.aspx</link><pubDate>Wed, 31 May 2006 19:50:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14595</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14595.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14595</wfw:commentRss><description>You save the config file in a central location like a sharepoint or a webserver and load that config file when the form loads.&lt;br /&gt;You can either use a InfoPath secondary dataconnection to load the config file or you can use C# XMLDocument to load the file from the central location.</description></item><item><title>Re: config file location</title><link>https://www.infopathdev.com:443/forums/thread/14594.aspx</link><pubDate>Wed, 31 May 2006 17:25:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14594</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14594.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14594</wfw:commentRss><description>Okay--someone else will have to jump in to assist you then. I don't have any background on the app.config file.</description></item><item><title>Re: config file location</title><link>https://www.infopathdev.com:443/forums/thread/14593.aspx</link><pubDate>Wed, 31 May 2006 01:53:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14593</guid><dc:creator>mshukla</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14593.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14593</wfw:commentRss><description>I am referring to the app.config file created in the visual studio 2005 project. I am using the infopath toolkit for VS 2005 to create a infopath form based project</description></item><item><title>Re: config file location</title><link>https://www.infopathdev.com:443/forums/thread/14592.aspx</link><pubDate>Tue, 30 May 2006 22:48:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14592</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14592.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14592</wfw:commentRss><description>Are you referring to InfoPath.exe.config? If so, this doesn't sound like a good solution to me. Each user would need to have this file, with the db connection string.&lt;br /&gt;&lt;br /&gt;As for your other question, the .config file should be located in the same Office11 folder as InfoPath.exe. If it doesn't exist, it must be created.</description></item><item><title>config file location</title><link>https://www.infopathdev.com:443/forums/thread/12879.aspx</link><pubDate>Tue, 30 May 2006 21:47:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12879</guid><dc:creator>mshukla</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12879.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12879</wfw:commentRss><description>I have created a form using VS2005 managed code (in C#). I am handling the OnSubmit event in code, creating a database connection and calling a stored procedure to insert and update rows in the MS SQL Server DB.&lt;br /&gt;Right now the connection string is hardcoded in the code but i want to put it in the config file for runtime alterations. It is  afully secured form that would be deployed in a network location and would need to be emailed to several users. My question is: Where is the config file located and where do i change it so that it gets picked up by the form? Do i have to send out the form to all users again after the config file has changed?</description></item></channel></rss>