﻿<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developers.de/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>Andreas Lehmann - All Comments</title><link />http://developers.de/blogs/andreas_lehmann/default.aspx<description></description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>re: A simple implementation of config files for windows mobile</title><link />http://developers.de/blogs/andreas_lehmann/archive/2009/05/26/a-simple-implementation-of-config-files-for-windows-mobile.aspx#1230503<pubdate>Wed, 25 Feb 2015 12:08:41 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1230503</guid><dc:creator>Sanya S</dc:creator><description>&lt;p&gt;Thanks, this is quite simple and good.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1230503" width="1" height="1"&gt;</description></item><item><title>re: Be aware of the serializer when using AppFabric or Workflow Manager</title><link />http://developers.de/blogs/andreas_lehmann/archive/2013/11/26/be-aware-of-the-serializer-when-using-appfabric-or-workflow-manager.aspx#1230504<pubdate>Sat, 11 Oct 2014 15:41:33 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1230504</guid><dc:creator>Tory Burch Louiisa</dc:creator><description>&lt;p&gt;Great tips! I will try to use them. Thanks for any future updates.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1230504" width="1" height="1"&gt;</description></item><item><title>re: A simple implementation of config files for windows mobile</title><link />http://developers.de/blogs/andreas_lehmann/archive/2009/05/26/a-simple-implementation-of-config-files-for-windows-mobile.aspx#986950<pubdate>Wed, 16 Apr 2014 14:33:11 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:986950</guid><dc:creator>Ezgi Keçici</dc:creator><description>&lt;p&gt;Thank you so much Alehmann. This code is really good and helpful.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=986950" width="1" height="1"&gt;</description></item><item><title>re: A simple implementation of config files for windows mobile</title><link />http://developers.de/blogs/andreas_lehmann/archive/2009/05/26/a-simple-implementation-of-config-files-for-windows-mobile.aspx#986951<pubdate>Wed, 15 Jan 2014 12:35:36 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:986951</guid><dc:creator>Marcelo Casamassa</dc:creator><description>&lt;p&gt;Congrats this is very useful...&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=986951" width="1" height="1"&gt;</description></item><item><title>re: A simple implementation of config files for windows mobile</title><link />http://developers.de/blogs/andreas_lehmann/archive/2009/05/26/a-simple-implementation-of-config-files-for-windows-mobile.aspx#986952<pubdate>Wed, 15 Jan 2014 03:59:05 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:986952</guid><dc:creator>bcd</dc:creator><description>&lt;p&gt;This implementation is pretty usefull and for Jack as Fernando said, you need to set &amp;quot;Copy allways&amp;quot; in the Copy output directory property for that file and also you need to set Build Action as &amp;quot;Content&amp;quot;.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=986952" width="1" height="1"&gt;</description></item><item><title>re: A simple implementation of config files for windows mobile</title><link />http://developers.de/blogs/andreas_lehmann/archive/2009/05/26/a-simple-implementation-of-config-files-for-windows-mobile.aspx#523137<pubdate>Thu, 28 Mar 2013 15:54:59 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:523137</guid><dc:creator>Jay</dc:creator><description>&lt;p&gt;Thank you. This was helpful. &amp;nbsp;I made a mistake by placing comments in the app.config file. &amp;nbsp;The parsing logic cound not handle this. &amp;nbsp;Once I removed my comments the logic worked great. &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=523137" width="1" height="1"&gt;</description></item><item><title>re: A simple implementation of config files for windows mobile</title><link />http://developers.de/blogs/andreas_lehmann/archive/2009/05/26/a-simple-implementation-of-config-files-for-windows-mobile.aspx#523090<pubdate>Wed, 20 Feb 2013 06:12:02 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:523090</guid><dc:creator>Rizky Zulkarnaen</dc:creator><description>&lt;p&gt;I&amp;#39;m facing type load exception error when implement this&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=523090" width="1" height="1"&gt;</description></item><item><title>re: A simple implementation of config files for windows mobile</title><link />http://developers.de/blogs/andreas_lehmann/archive/2009/05/26/a-simple-implementation-of-config-files-for-windows-mobile.aspx#448405<pubdate>Fri, 12 Oct 2012 11:04:32 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:448405</guid><dc:creator>anil</dc:creator><description>&lt;p&gt;hi i am very thankful to you for this.&lt;/p&gt;
&lt;p&gt;Because i am trying for this for a long time. And now i am able to store my app settings but there is another problem i am facing when i want to update . i Tried many of the codes from the forums it is executing successfully but the file is not updating. So can you please provide me how to update the xml file from my code. please please help me on this&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Anilkumar&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=448405" width="1" height="1"&gt;</description></item><item><title>re: A simple implementation of config files for windows mobile</title><link />http://developers.de/blogs/andreas_lehmann/archive/2009/05/26/a-simple-implementation-of-config-files-for-windows-mobile.aspx#300048<pubdate>Wed, 29 Feb 2012 11:32:35 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:300048</guid><dc:creator>Martin Milan</dc:creator><description>&lt;p&gt;Just a quick note to say thanks for this... I was about to implement something similar in my lunch break, but this is pre-written and will do the job I have in mind...&lt;/p&gt;
&lt;p&gt;As others have said, the lack of Configuration on CF is a big oversight on MS&amp;#39;s part. I&amp;#39;ve only worked with CF for a few months, and I have been amazed how limited it is in terms of memory, and missing &amp;quot;really basic bits&amp;quot; - like TryParse methods on various types etc. Yes, ok, you can easily reimplement a lot of bits yourself, but you SHOULDN&amp;#39;T HAVE TO...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=300048" width="1" height="1"&gt;</description></item><item><title>re: A simple implementation of config files for windows mobile</title><link />http://developers.de/blogs/andreas_lehmann/archive/2009/05/26/a-simple-implementation-of-config-files-for-windows-mobile.aspx#300049<pubdate>Mon, 20 Feb 2012 00:16:09 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:300049</guid><dc:creator>Jordi</dc:creator><description>&lt;p&gt;And the function that saves the settings in vb...&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Shared Sub Save()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim configFile As String = Assembly.GetExecutingAssembly.GetName.CodeBase &amp;amp; &amp;quot;.config&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If Not File.Exists(configFile) Then&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Throw New FileNotFoundException(String.Format(&amp;quot;Application configuration file &amp;#39;{0}&amp;#39; not found.&amp;quot;, configFile))&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End If&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim xmlDocument As New XmlDocument&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlDocument.Load(configFile)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim nodeList As XmlNodeList = xmlDocument.GetElementsByTagName(&amp;quot;appSettings&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For i As Integer = 0 To Settings.Count - 1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim sKey As String = Settings.GetKey(i)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim sValue As String = Settings.Get(i)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim bFound As Boolean = False&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim node As XmlNode&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For Each node In nodeList&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim key As XmlNode&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For Each key In node.ChildNodes&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If key.Attributes.ItemOf(&amp;quot;key&amp;quot;).Value = sKey Then&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;key.Attributes.ItemOf(&amp;quot;value&amp;quot;).Value = sValue&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bFound = True&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Exit For&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End If&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Next&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If bFound Then Exit For&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Next&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If Not bFound Then&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim elem As XmlElement&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim attr As XmlAttribute&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;main node&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;elem = xmlDocument.CreateElement(&amp;quot;add&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;attr = xmlDocument.CreateAttribute(&amp;quot;key&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;attr.Value = sKey&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;elem.Attributes.Append(attr)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;attr = xmlDocument.CreateAttribute(&amp;quot;value&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;attr.Value = sValue&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;elem.Attributes.Append(attr)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlDocument.SelectSingleNode(&amp;quot;//appSettings&amp;quot;).AppendChild(elem)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End If&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Next&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlDocument.Save(configFile)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=300049" width="1" height="1"&gt;</description></item><item><title>re: Dynamic where with Entity Framework</title><link />http://developers.de/blogs/andreas_lehmann/archive/2009/03/18/dynamic-where-with-entity-framework.aspx#300054<pubdate>Sat, 18 Feb 2012 02:38:07 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:300054</guid><dc:creator>Karim</dc:creator><description>&lt;p&gt;Err... Is it nmloarly provided in any other performance comparison? Is there a single performance score in our tests we can use? What should be done with differently priced editions of each product?In short, price / performance is actually a very subjective number. IMO, even this question is more meaningful: let&amp;#39;s say you get 30% better performance for X$ (fixed amount of money) for your Windows Azure application requiring you to pay C$ / month in average. How much time would it take to return the initial investment of X$?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=300054" width="1" height="1"&gt;</description></item><item><title>re: Set max upload size for IIS7 web applications</title><link />http://developers.de/blogs/andreas_lehmann/archive/2009/06/24/set-max-upload-size-for-iis7-web-applications.aspx#300050<pubdate>Sat, 21 Jan 2012 11:34:14 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:300050</guid><dc:creator>Peter</dc:creator><description>&lt;p&gt;Does not work for new ISS 7 .&lt;/p&gt;
&lt;p&gt;No changes for me . Sorry &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=300050" width="1" height="1"&gt;</description></item><item><title>re: A simple implementation of config files for windows mobile</title><link />http://developers.de/blogs/andreas_lehmann/archive/2009/05/26/a-simple-implementation-of-config-files-for-windows-mobile.aspx#300055<pubdate>Thu, 05 Jan 2012 04:33:58 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:300055</guid><dc:creator>Yanz</dc:creator><description>&lt;p&gt;how to use in VB.net?&lt;/p&gt;
&lt;p&gt;string userName = MobileConfiguration.Settings[&amp;quot;UserName&amp;quot;];&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=300055" width="1" height="1"&gt;</description></item><item><title>re: Windows Phone 7 Series CTP of the SDK available</title><link />http://developers.de/blogs/andreas_lehmann/archive/2010/03/16/windows-phone-7-series-sdk-available.aspx#300051<pubdate>Tue, 04 Oct 2011 00:48:27 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:300051</guid><dc:creator>Coralyn</dc:creator><description>&lt;p&gt;I might be betiang a dead horse, but thank you for posting this!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=300051" width="1" height="1"&gt;</description></item><item><title>re: How to use Entity Framework to query string values with filter conditions</title><link />http://developers.de/blogs/andreas_lehmann/archive/2009/04/08/how-to-use-entity-framework-to-query-string-values-with-filter-conditions.aspx#300052<pubdate>Mon, 03 Oct 2011 18:17:14 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:300052</guid><dc:creator>Justus</dc:creator><description>&lt;p&gt;What a joy to find such clear thinking. Thanks for positng!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=300052" width="1" height="1"&gt;</description></item></channel></rss>