<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>David Kline : Configuration</title><link>http://blogs.msdn.com/davidklinems/archive/tags/Configuration/default.aspx</link><description>Tags: Configuration</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Are you having issues with Application Configuration files on the .NET Compact Framework version 2?</title><link>http://blogs.msdn.com/davidklinems/archive/2006/02/23/538299.aspx</link><pubDate>Fri, 24 Feb 2006 03:52:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:538299</guid><dc:creator>DavidKlineMS</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/davidklinems/comments/538299.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidklinems/commentrss.aspx?PostID=538299</wfw:commentRss><description>I've talked before about application configuration file support in the .NET Compact Framework version 2.&amp;nbsp; I've discussed &lt;A HREF="/davidklinems/archive/2005/11/09/491113.aspx"&gt;promoting version 1 applications to run on version 2&lt;/A&gt;, and &lt;A HREF="/davidklinems/archive/2005/04/19/409541.aspx"&gt;some of the elements of the file's format&lt;/A&gt;.&amp;nbsp; Today, I'd like to spend some time talking about some scenarios where application configuration file processing may fail.&lt;BR&gt;&lt;BR&gt;&lt;B&gt;Incorrect formatting&lt;BR&gt;&lt;/B&gt;By far, the most common issue I have encountered with failing application configuration files is when I have made a mistake when typing the XML.&amp;nbsp; If any of the XML tags or attributes are misspelled, processing of the application configuration file will fail silently.&amp;nbsp; &lt;BR&gt;&lt;BR&gt;When none of the versions specified in the &lt;STRONG&gt;supportedRuntime&lt;/STRONG&gt; tag can be found, an error message similar to the following will be displayed.&lt;BR&gt;&lt;BR&gt;&lt;CODE&gt;.NET CF Initialization Error&lt;BR&gt;To run this application, you must first install one of the following versions of the .NET Compact Framework:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; v5.6.7890&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; v4.5.6789&lt;BR&gt;Contact your application publisher for instructions about obtaining the appropriate version of the .NET Compact Framework.&lt;BR&gt;&lt;/CODE&gt;&lt;BR&gt;In the example above, I created an application configuration file which listed two fictitious .NET Compact Framework versions (v4.5.6789 and v5.6.7890).&amp;nbsp; &lt;BR&gt;&lt;BR&gt;To combat my tendency towards typing mistakes, I typically create one application configuration file and copy / rename as appropriate.&amp;nbsp; The baseline file I use is listed &lt;A HREF="/davidklinems/archive/2005/11/09/491113.aspx"&gt;here&lt;/A&gt;.&lt;BR&gt;&lt;BR&gt;&lt;B&gt;"XML Core Services and Document Object Model (DOM)" is not installed in the device image&lt;BR&gt;&lt;/B&gt;Version 2 of the .NET Compact Framework requires MSXML to be installed for application configuration files to be processed.&amp;nbsp; If you are creating a device image using Platform Builder, "XML Core Services and Document Object Model (DOM)" (also known as SYSGEN_MSXML_DOM),&amp;nbsp; will automatically be added to your image when you add version 2 of the .NET Compact Framework.&lt;BR&gt;&lt;BR&gt;Since MSXML was not a dependency of version 1 of the .NET Compact Framework, it may not be available on some devices.&amp;nbsp; On these devices, if version 2 is installed using a &lt;A HREF="/netcfteam/archive/2005/10/11/479793.aspx"&gt;cab file&lt;/A&gt;, application configuration files may not be processed.&amp;nbsp; Unfortunately, there are no error messages displayed if MSXML cannot be loaded and applications will:
&lt;P&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Attempt to run on the version of the .NET Compact Framework for which they were built (ex: version 1)&lt;/LI&gt;
&lt;LI&gt;Attempt to run on the currently installed version of the .NET Compact Framework&lt;/LI&gt;
&lt;LI&gt;If the version of the .NET Compact Framework for which the application was built is not found, fail to run&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Take care!&lt;BR&gt;-- DK&lt;BR&gt;&lt;BR&gt;&lt;FONT size=1&gt;Disclaimer(s):&lt;BR&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=538299" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Configuration/default.aspx">Configuration</category></item><item><title>Running NetCF v1 applications on v2 post has been updated</title><link>http://blogs.msdn.com/davidklinems/archive/2005/11/11/491919.aspx</link><pubDate>Sat, 12 Nov 2005 00:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:491919</guid><dc:creator>DavidKlineMS</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/davidklinems/comments/491919.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidklinems/commentrss.aspx?PostID=491919</wfw:commentRss><description>&lt;P&gt;Just a quick note for those of you who have already read my "&lt;A HREF="/davidklinems/archive/2005/11/09/491113.aspx"&gt;Is your application running on version 2 of the .NET Compact Framework?&lt;/A&gt;" post...&lt;BR&gt;&lt;BR&gt;Today, I updated the application configuration file data to list all versions of the .NET Compact Framework, including all version 1 service pack releases.&amp;nbsp; When creating your configuration files, please use the following data:&lt;BR&gt;&lt;BR&gt;&lt;CODE&gt;&amp;lt;configuration&amp;gt; &lt;BR&gt;&amp;nbsp; &amp;lt;startup&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v2.0.5238"/&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v1.0.4292"/&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v1.0.3316"/&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v1.0.3111"/&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v1.0.2268"/&amp;gt; &lt;BR&gt;&amp;nbsp; &amp;lt;/startup&amp;gt; &lt;BR&gt;&amp;lt;/configuration&amp;gt;&lt;/CODE&gt; &lt;BR&gt;&lt;BR&gt;Thanks!&lt;BR&gt;-- DK&lt;BR&gt;&lt;BR&gt;&lt;FONT size=1&gt;Disclaimer(s):&lt;BR&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/FONT&gt; &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=491919" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Configuration/default.aspx">Configuration</category></item><item><title>Is your application running on version 2 of the .NET Compact Framework?</title><link>http://blogs.msdn.com/davidklinems/archive/2005/11/09/491113.aspx</link><pubDate>Thu, 10 Nov 2005 05:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:491113</guid><dc:creator>DavidKlineMS</dc:creator><slash:comments>7</slash:comments><comments>http://blogs.msdn.com/davidklinems/comments/491113.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidklinems/commentrss.aspx?PostID=491113</wfw:commentRss><description>Now that &lt;A HREF="/davidklinems/archive/2005/10/31/487396.aspx"&gt;version 2 of the .NET Compact Framework has been released&lt;/A&gt; and Visual Studio 2005 has been launched, I thought it would be a good idea to post an update to the application configuration (app.config) file needed to allow your .NET Compact Framework v1 applications to enjoy the benefits of the new release.&lt;BR&gt;&lt;BR&gt;To promote your v1 applications to run on version 2 of the .NET Compact Framework,: 
&lt;P&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Copy the following XML data&lt;BR&gt;&lt;CODE&gt;&amp;lt;configuration&amp;gt; &lt;BR&gt;&amp;nbsp; &amp;lt;startup&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v2.0.5238"/&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v1.0.4292"/&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v1.0.3316"/&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v1.0.3111"/&amp;gt; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v1.0.2268"/&amp;gt; &lt;BR&gt;&amp;nbsp; &amp;lt;/startup&amp;gt; &lt;BR&gt;&amp;lt;/configuration&amp;gt;&lt;/CODE&gt; 
&lt;LI&gt;Create a file called &lt;CODE&gt;&amp;lt;appname&amp;gt;.exe.config&lt;/CODE&gt; (ex: &lt;CODE&gt;WebCrawler.exe.config&lt;/CODE&gt;) containing the above XML 
&lt;LI&gt;Save a copy of the file in the folder (on your device) containing your application (ex: &lt;CODE&gt;\Program Files\Web Crawler&lt;/CODE&gt;)&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;By default, the .NET Compact Framework will run your application on the version of the runtime for which it was originally written.&amp;nbsp; Currently available (at the time of this writing) Windows Mobile 2003 and Windows Mobile 5.0 devices contain version 1 of the .NET Compact Framework in ROM.&amp;nbsp; Installing version 2 of the .NET Compact Framework does not overwrite or disable version 1.&amp;nbsp; In this scenario, your applications written for version 1 will continue to use version 1.&lt;BR&gt;&lt;BR&gt;The addition of an application configuration file containing the above mentioned data will instruct the .NET Compact Framework to run your application with the specified version (version 2) of the runtime.&amp;nbsp; Your application will now take advantage of the performance improvements we have made in version 2 of the .NET Compact Framework.&amp;nbsp; Please note that since version 1 of the .NET Compact Framework is not aware of application configuration files, having one present on a device without version 2 installed has no affect on your application, it will continue to run with version 1.&lt;BR&gt;&lt;BR&gt;While version 1 of the .NET Compact Framework is not application configuration file aware, installing and uninstalling version 2, on a device with version 1, will add configuration file awareness (via the updated mscoree.dll).&amp;nbsp; This is why the above data contains references to all .NET Compact Framework versions (v1, v1 SP1, v1 SP2, v1 SP3 and v2).&lt;BR&gt;&lt;BR&gt;&lt;A HREF="/netcfteam/archive/2005/10/17/481970.aspx"&gt;Compatibility&lt;/A&gt; is a primary goal for the .NET Compact Framework team.&amp;nbsp; If you encounter any issues running your version 1 applications using the above described application configuration file, please let us know via the &lt;A href="http://lab.msdn.microsoft.com/productfeedback"&gt;Microsoft Product Feedback Center&lt;/A&gt;.&lt;BR&gt;&lt;BR&gt;Take care,&lt;BR&gt;-- DK&lt;BR&gt;&lt;BR&gt;&lt;FONT size=1&gt;Disclaimer(s):&lt;BR&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/FONT&gt; &lt;BR&gt;&lt;FONT size=1&gt;&lt;BR&gt;[Edit: add version 1 information to config file data]&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=491113" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Configuration/default.aspx">Configuration</category></item><item><title>Running NetCF v1 Applications on v2 - Part II</title><link>http://blogs.msdn.com/davidklinems/archive/2005/04/19/409541.aspx</link><pubDate>Tue, 19 Apr 2005 10:20:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:409541</guid><dc:creator>DavidKlineMS</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/davidklinems/comments/409541.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidklinems/commentrss.aspx?PostID=409541</wfw:commentRss><description>&lt;P&gt;Several months ago, I &lt;A href="https://blogs.msdn.com/davidklinems/archive/2004/08/03/207372.aspx"&gt;posted&lt;/A&gt; on using an application configuration file to instruct your NetCF v1 application to run against NetCF v2.&amp;nbsp; As with Beta 1, this file must be named &amp;lt;appname&amp;gt;.exe.config and must be located in the same directory as your application (ex: myapp.exe.config must be in the same directory as myapp.exe).&amp;nbsp; With the release of NetCF v2 Beta2, the application configuration file has a new option - &lt;STRONG&gt;compatibilityversion&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;In his Loader Logging &lt;A href="https://blogs.msdn.com/stevenpr/archive/2005/02/28/381744.aspx"&gt;post&lt;/A&gt;, Steven Pratschner mentioned a "coercion state".&amp;nbsp; He defined this as indicating "whether or not your application was run in backwards compatibility mode".&amp;nbsp; You can specify this compatibility mode using the application configuration file.&amp;nbsp; Steven also has an excellent &lt;A HREF="/stevenpr/archive/2004/12/30/344540.aspx"&gt;post&lt;/A&gt; that details NetCF application compatibility and configuration files.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Basic configuration file&lt;/STRONG&gt;&lt;BR&gt;At it's simplest, the Beta 2 application configuration file is the same as for Beta 1.&amp;nbsp; You supply the desired runtime version using a &lt;STRONG&gt;supportedRuntime&lt;/STRONG&gt; XML node:&lt;/P&gt;&lt;CODE&gt;
&lt;P&gt;&amp;lt;configuration&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;startup&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v2.0.5056"/&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;/startup&amp;gt;&lt;BR&gt;&amp;lt;/configuration&amp;gt;&lt;/P&gt;&lt;/CODE&gt;
&lt;P&gt;The example above was copied from my original post and the version attribute was updated to specify Beta 2's version (2.0.5056).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Adding compatibility mode&lt;/STRONG&gt;&lt;BR&gt;Using the example above to run an application built using version 1 of the .NET Compact Framework will result in a &lt;STRONG&gt;compatibilityversion&lt;/STRONG&gt; setting of 1.0 to ensure maximum compatibility.&lt;/P&gt;
&lt;P&gt;If you wish to explicitly specify the compatibility mode for your application, you can add the &lt;STRONG&gt;compatibilityversion&lt;/STRONG&gt; XML node to the above example:&lt;/P&gt;&lt;CODE&gt;
&lt;P&gt;&amp;lt;configuration&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;runtime&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;compatibilityversion major="1" minor="0"/&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;/runtime&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;startup&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v2.0.5056"/&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;/startup&amp;gt;&lt;BR&gt;&amp;lt;/configuration&amp;gt;&lt;/P&gt;&lt;/CODE&gt;
&lt;P&gt;This new application configuration file is functionally equivalent to the previous example.&amp;nbsp; The application will be run against NetCF v2 Beta 2 in NetCF v1 compatibility mode.&lt;BR&gt;&amp;nbsp; &lt;BR&gt;There are times when you may wish to have your NetCF v1 application run on NetCF v2 in it's native compatibility mode (as if the application were built against NetCF v2).&amp;nbsp; To do so, you need to override the default behavior by specifying v2 in the &lt;STRONG&gt;compatibilityversion&lt;/STRONG&gt; XML node.&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;Please note:&amp;nbsp; Use the following configuration file for diagnostic purposes only.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;CODE&gt;
&lt;P&gt;&amp;lt;configuration&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;runtime&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;compatibilityversion major="2" minor="0"/&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;/runtime&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;startup&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v2.0.5056"/&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;/startup&amp;gt;&lt;BR&gt;&amp;lt;/configuration&amp;gt;&lt;/P&gt;&lt;/CODE&gt;
&lt;P&gt;One of our primary goals for NetCF v2 is compatibility.&amp;nbsp; After you download and install beta 2, it would be much appreciated if you would run your NetCF v1 application(s) on NetCF v2 beta 2 using one of the above application configuration files.&amp;nbsp; If you find any issues, please report them via the &lt;A href="http://lab.msdn.microsoft.com/productfeedback"&gt;Microsoft Product Feedback Center&lt;/A&gt; along with the compatibilityversion (if any) specified in your application configuration file.&amp;nbsp; We take application compatibility very seriously and look forward to receiving your results.&lt;/P&gt;
&lt;P&gt;Thanks and enjoy the beta!&lt;BR&gt;-- DK&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;[Edit: fix formatting *2]&lt;BR&gt;[Edit: add link to second Steven Pratschner post]&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;Disclaimer(s):&lt;BR&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;BR&gt;Some of the information contained within this post may be in relation to beta software.&amp;nbsp; Any and all details are subject to change.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=409541" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Configuration/default.aspx">Configuration</category></item><item><title>How do I force my NetCF v1 application to run against NetCF v2?</title><link>http://blogs.msdn.com/davidklinems/archive/2004/08/03/207372.aspx</link><pubDate>Wed, 04 Aug 2004 01:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:207372</guid><dc:creator>DavidKlineMS</dc:creator><slash:comments>7</slash:comments><comments>http://blogs.msdn.com/davidklinems/comments/207372.aspx</comments><wfw:commentRss>http://blogs.msdn.com/davidklinems/commentrss.aspx?PostID=207372</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Arial size=2&gt;In my &amp;#8220;NetCF v2 now supports NTLM&amp;#8221; &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/davidklinems/archive/2004/07/18/187038.aspx"&gt;&lt;FONT face=Arial size=2&gt;post&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Arial size=2&gt;, I mentioned that the 3 ways to gain NTLM support with existing code are:&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Building your application against the v2 beta &lt;/FONT&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Uninstall v1 from your device (not possible on PPC 2003 devices, as v1 is installed in ROM) &lt;/FONT&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Construct an application configuration file for your executable, instructing it to run against the v2 beta&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Option number 3 sparked a few questions.&amp;nbsp; Hopefully, this post will help answer those questions.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;To force your NetCF v1 application to run against NetCF v2, whether or not v1 is installed on the device (either in RAM or ROM), all you need is a simple XML file in the following format:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" color=#800080 size=2&gt;&lt;STRONG&gt;&amp;lt;configuration&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;startup&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version=&amp;#8220;v2.0.4135&amp;#8220;/&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;/startup&amp;gt;&lt;BR&gt;&amp;lt;/configuration&amp;gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;This file &lt;STRONG&gt;&lt;EM&gt;&lt;FONT color=#000080&gt;must&lt;/FONT&gt;&lt;/EM&gt;&lt;/STRONG&gt; be named as follows: &lt;FONT face="Courier New" color=#800080&gt;&lt;STRONG&gt;&amp;lt;appname&amp;gt;.exe.config&lt;/STRONG&gt;&lt;/FONT&gt;.&amp;nbsp; For example, if my executable is &lt;FONT face="Courier New" color=#800080&gt;simpletest.exe&lt;/FONT&gt;, the name of the configuration file must be &lt;FONT face="Courier New" color=#800080&gt;simpletest.exe.config&lt;/FONT&gt;.&amp;nbsp; Place the file in your application's folder on the device and you'll be running on NetCF v2.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Please note the last number in the version string.&amp;nbsp; This value must match the &lt;STRONG&gt;&lt;EM&gt;&lt;FONT color=#000080&gt;exact&lt;/FONT&gt;&lt;/EM&gt;&lt;/STRONG&gt; build number of NetCF v2 for this to work.&amp;nbsp; The value 4135 is the correct build number for NetCF v2 beta1.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;One thing I like to do, to help me verify that I have created the configuration file correctly is to display the runtime version somewhere in my application (ex: the About box).&amp;nbsp; To do this, create a label control and assign the runtime version to the Text property as shown below:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" color=#800080 size=2&gt;&lt;STRONG&gt;runtimeVersionLabel.Text = System.Environment.Version.ToString()&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;If you do not see &amp;#8220;2.0.4135&amp;#8220;, you are not running against the NetCF v2 beta.&amp;nbsp; Most likely, this is due to a type-o in your configuration file or that the file cannot be located (copied to the wrong folder, misnamed, etc).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Hope this helps!&lt;BR&gt;--DK&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=1&gt;Disclaimers:&lt;BR&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;BR&gt;Some of the information contained within this post may be in relation to beta software.&amp;nbsp; Any and all details are subject to change.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=207372" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category><category domain="http://blogs.msdn.com/davidklinems/archive/tags/Configuration/default.aspx">Configuration</category></item></channel></rss>