<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Search results matching tag 'ConfigurationElement'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=ConfigurationElement&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'ConfigurationElement'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>declare connection string in app.config in WPF</title><link>http://forums.asp.net/thread/1696691.aspx</link><pubDate>Sat, 05 May 2007 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1696691</guid><dc:creator>kpxkpx</dc:creator><description>&lt;p&gt;Dear all,&lt;/p&gt;
&lt;p&gt;Here is my question. I am trying to build up a object data source that will to be bound to xaml object in WPF. After I&amp;nbsp;declare&amp;nbsp;a connectionString in app.config of object data source project, the connectionString can not be found and show the error below:&lt;/p&gt;
&lt;p&gt;"Object reference not set to an instance of an object."&lt;/p&gt;
&lt;p&gt;app.config file:&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;br /&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;connectionStrings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name="Connection" connectionString="Data Source=***;Initial Catalog=***;User ID=***;Password=***" providerName="System.Data.SqlClient"/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/connectionStrings&amp;gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;cs code:&lt;/p&gt;
&lt;p&gt;string _connectionString =ConfigurationManager.ConnectionStrings["Connection"].ConnectionString;&lt;/p&gt;
&lt;p&gt;Can any one tell me what I did wrong? Many thanks.&lt;/p&gt;
&lt;p&gt;______________________________________________________________________________________&lt;/p&gt;
&lt;p&gt;After that, I though that it may be work if use connection string in code, but I got new error as below:&lt;/p&gt;
&lt;p&gt;"Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."&lt;/p&gt;
&lt;p&gt;CS:&lt;/p&gt;
&lt;p&gt;string _connectionString="Data Source=***;Initial Catalog=***;User ID=***;Password=***" ;&lt;/p&gt;
&lt;p&gt;SqlClientPermission permission = new SqlClientPermission(PermissionState.None);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; permission.Add(_connectionString, "", KeyRestrictionBehavior.AllowOnly);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; permission.PermitOnly();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string sqlCmd = "select * from OBJ_WORK_ITEMS where ITEM_ID=38";&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; SqlConnection conn = new SqlConnection(_connectionString);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SqlDataAdapter da = new SqlDataAdapter(sqlCmd, conn);&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; DataSet ds = new DataSet();&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; try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn.Open();&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; da.Fill(ds, "OBJ_WORK_ITEMS");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception ee)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new Exception("Something wrong in da.fill()" + ee);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; finally&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn.Close();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can see I tried to modify SqlClientPermission to make it work, but no luck. Please help me!&lt;/p&gt;</description></item><item><title>Supporting configSource attribute on custom ConfigurationSectionGroup</title><link>http://forums.asp.net/thread/1683192.aspx</link><pubDate>Thu, 26 Apr 2007 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1683192</guid><dc:creator>sandor</dc:creator><description>&lt;p&gt;I would like to support the &lt;em&gt;configSource&lt;/em&gt; attribute on my custom &lt;em&gt;ConfigurationSectionGroup&lt;/em&gt; in order to allow&amp;nbsp;for storage of the group contents in an external .config file.&lt;em&gt;&amp;nbsp;&lt;/em&gt;Unfortunately, I have no clue how to do this in a proper manner, other than writing custom code that loads and processes the external file. The latter is probably&amp;nbsp;not a good idea because the logic is allegedly&amp;nbsp;available in the .NET framework (as some of the built-in section groups, like &amp;lt;profiles&amp;gt;&amp;nbsp;support it), though I don't know how to make use of it.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>serving webresource.axd over https</title><link>http://forums.asp.net/thread/1573334.aspx</link><pubDate>Sat, 10 Feb 2007 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1573334</guid><dc:creator>Ahmad49</dc:creator><description>&lt;p&gt;I&amp;nbsp;am observing (via fiddler) a problem where "webresource.axd" files are &lt;br /&gt;being deployed over http (port 80) hot https (443) even when the request is &lt;br /&gt;https://xxx.xx.&lt;br /&gt;IE6 doesn't seem to mind this and reports the page as secure (padlock &lt;br /&gt;closed) but Firefox 1.5 on the other hand reports the page a partially secure &lt;br /&gt;(padlock closed with red line through it).&lt;br /&gt;Disabling Javascript on the Firefox Browser allows the page to become fully &lt;br /&gt;secure (no red line in the padlock).&lt;br /&gt;I have read several blogs on this and specifically Scott Gu's blog entry &lt;br /&gt;http://weblogs.asp.net/scottgu/archive/2006/04/11/Don_1920_t-run-production-ASP.NET-Applications-with-debug_3D001D20_true_1D20_-enabled.aspx&lt;br /&gt;and have performed his suggestion of setting Debug=false on the compilation &lt;br /&gt;directive to no avail! Page is still showing as insecure in Firefox.&lt;br /&gt;Fiddler shows me two webresource entries being downloaded on http rather &lt;br /&gt;than https, is this normal?&lt;br /&gt;Does anyone have any ideas on this, its bugging the hell out of me and my &lt;br /&gt;client is moaning about the Firefox partially secure message on the secure &lt;br /&gt;pages on the site including the login page.&lt;br /&gt;BTW ASPNET validators are used on this page.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I am sure sone one has seen this before please help to solve this problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank, &lt;/p&gt;
&lt;p&gt;Ahmad...&lt;/p&gt;</description></item><item><title>How to add AppSettings key / value pair's dynamically in web Config file</title><link>http://forums.asp.net/thread/1558588.aspx</link><pubDate>Thu, 01 Feb 2007 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1558588</guid><dc:creator>BalaKrishnan</dc:creator><description>&lt;p&gt;&lt;img src="http://forums.asp.net/emoticons/emotion-55.gif" alt="Idea" /&gt;&amp;nbsp;&amp;nbsp; Is it possible to add Dynamically AppSetting Key / value pair's in webconfig file? &lt;/p&gt;&lt;p&gt;if yes, &lt;/p&gt;&lt;p&gt;How? anybody can explain! through C# Coding&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks in advance&lt;/p&gt;&lt;p&gt;Balakrishnan&amp;nbsp;&lt;/p&gt;</description></item><item><title>User credentils popup</title><link>http://forums.asp.net/thread/1472187.aspx</link><pubDate>Tue, 21 Nov 2006 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1472187</guid><dc:creator>Jayapradha</dc:creator><description>&lt;p&gt;I have a ASP.NET application with&amp;nbsp;&amp;nbsp;windows authentication and session state is inproc.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;when I access this application from the local computer it runs fine. &lt;/p&gt;
&lt;p&gt;But in Remote in one page it asking again user credentails by one popup. if we cancel that once then we are getting unaturized to view this page.&lt;/p&gt;
&lt;p&gt;if u click ok then then it proceeds and again asking user credentials.&lt;/p&gt;
&lt;p&gt;this problem i am getting&amp;nbsp; in one page&lt;/p&gt;
&lt;p&gt;&amp;nbsp;this page takes 5 mintues to popluate the&amp;nbsp;data.&lt;/p&gt;
&lt;p&gt;In this&amp;nbsp;page database operation and some calculatons are there.&lt;/p&gt;
&lt;p&gt;in the locla system also it takes 5 min to load but after that it is working fine. but in the remote after 5 mintues it is&amp;nbsp; open a popup asking user credentials.&lt;/p&gt;
&lt;p&gt;what is the problem.&lt;/p&gt;
&lt;p&gt;please assist me.&lt;/p&gt;
&lt;p&gt;please this is very urjent.&lt;/p&gt;
&lt;p&gt;Please help me out &lt;/p&gt;
&lt;p&gt;thanks in Advnace&lt;/p&gt;
&lt;p&gt;Jayapradha Mallepally&lt;/p&gt;</description></item><item><title>how to modify the web.config file when application is running by code</title><link>http://forums.asp.net/thread/1400661.aspx</link><pubDate>Fri, 15 Sep 2006 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1400661</guid><dc:creator>Corny</dc:creator><description>&lt;p&gt;yes , i got some idea from msdn about OpenWebConfiguration and OpenExeConfiguration Method,and i do some test about it&amp;nbsp; , what&amp;#39;s happed?&lt;/p&gt;&lt;p&gt;when i modify something like connectionString and CustomeSection by code, it&amp;#39;s ok when application running, even the connectionstrings is readonly( it&amp;#39;s too many properties&amp;nbsp;was readonly ),no any exception, but the value had no saved to disk. when the application was shutdown, all the value of my modified all lost.&lt;/p&gt;&lt;p&gt;Why?&lt;/p&gt;&lt;p&gt;anyone would tell me ? thks very much!!&lt;/p&gt;</description></item><item><title>Re: Custom Config Section, .NET 2.0</title><link>http://forums.asp.net/thread/1396901.aspx</link><pubDate>Tue, 12 Sep 2006 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1396901</guid><dc:creator>rrahlf</dc:creator><description>&lt;p&gt;Well, I did finaly get this working.&amp;nbsp; I&amp;#39;ll post some links and some advice here for anyone else who is looking.&lt;/p&gt;&lt;p&gt;One of my major problems with implementing a custom config section in .NET 2.0 was the lack of solid documentation.&amp;nbsp; It&amp;#39;s there, but not very deep, and the &amp;quot;example below&amp;quot; examples all seem to be missing at the time I&amp;#39;m writing this.&amp;nbsp; I was able to piece things together thanks to some tenacious people with blogs.&amp;nbsp; Here&amp;#39;s&amp;nbsp;a list of links that helped me out, in no particular order.&lt;/p&gt;&lt;p&gt;&lt;a href="http://fredrik.nsquared2.com/viewpost.aspx?PostID=233"&gt;http://fredrik.nsquared2.com/viewpost.aspx?PostID=233&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms228062.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms228062.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://blogs.msdn.com/markgabarra/archive/2006/06/27/648742.aspx"&gt;http://blogs.msdn.com/markgabarra/archive/2006/06/27/648742.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://blogs.msdn.com/markgabarra/archive/2006/06/25/646775.aspx"&gt;http://blogs.msdn.com/markgabarra/archive/2006/06/25/646775.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://msdn.microsoft.com/msdnmag/issues/06/06/ConfigureThis/"&gt;http://msdn.microsoft.com/msdnmag/issues/06/06/ConfigureThis/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=132716&amp;amp;SiteID=1&amp;amp;mode=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=132716&amp;amp;SiteID=1&amp;amp;mode=1&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.agileprogrammer.com/oneagilecoder/archive/2005/06/11/3689.aspx"&gt;http://www.agileprogrammer.com/oneagilecoder/archive/2005/06/11/3689.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://jason.diamond.name/weblog/2006/05/25/custom-configuration-section-validator-weirdness"&gt;http://jason.diamond.name/weblog/2006/05/25/custom-configuration-section-validator-weirdness&lt;/a&gt;&lt;/p&gt;&lt;p&gt;That last link was particularly helpful; it set me in the right direction.&amp;nbsp; Jason Diamond admits that he didn&amp;#39;t look deep enough into the problem to find the reason, but I think I may have found the answer in the Microsoft forums (third last link).&amp;nbsp; &lt;/p&gt;&lt;p&gt;In my mind, the declarative programming model for custom config sections is broken.&amp;nbsp; The issue is with default values,&amp;nbsp;validators, and the ConfigurationElement base class constructor.&amp;nbsp; &lt;/p&gt;&lt;p&gt;It seems that the ConfigurationElement base constructor attempts to set &amp;quot;default&amp;quot; values for your ConfigurationElement&amp;#39;s properties.&amp;nbsp; If it&amp;#39;s an integer property, the ConfigurationElement constructor will attempt to assign a zero to it, &amp;quot;&amp;quot; for a String etc.&amp;nbsp; Reasonably, this default assignment is still passed through any validation&amp;nbsp;you may have assigned to the property declaritively using an attribute, since the declarative validation attribute&amp;#39;s routines are attached to the properties before the constructor attempts to assign a default value (I think).&amp;nbsp; &lt;/p&gt;&lt;p&gt;However, as &lt;a href="http://jason.diamond.name/weblog/2006/05/25/custom-configuration-section-validator-weirdness" title="Jason Diamond"&gt;Jason Diamond&lt;/a&gt; and &lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=132716&amp;amp;SiteID=1&amp;amp;mode=1" title="Paul D. Murphy"&gt;Paul D. Murphy&lt;/a&gt; point out, this becomes a problem if, for example, your validation says that your integer property needs to be between 2 and 5; zero is invalid.&amp;nbsp; OK, so you also decorate your property with the DefaultValue attribute and inform the ConfigurationElement constuctor that when it assigns a value to that property, it should use, say, 3 instead of zero.&amp;nbsp; Now the framework can instantiate your ConfigurationElement derived class without the validator throwing an error.&amp;nbsp; But.&lt;/p&gt;&lt;p&gt;Now you have a property of your ConfigurationElement that has a default value.&amp;nbsp; Default value...that means that the implementor/user of your custom configuration section is no longer required to type in a value for that property (an attribute on an xml tag in the config file).&amp;nbsp; What if you wanted to require that the implementor type a value?&amp;nbsp; You&amp;#39;re stuck, if you wanted to use the declarative model to code your custom config section.&amp;nbsp; The only solution is to use the programatic model.&lt;/p&gt;&lt;p&gt;Justin Diamonds post shows how this can be done.&amp;nbsp; &lt;a href="http://jason.diamond.name/weblog/2006/05/25/custom-configuration-section-validator-weirdness"&gt;http://jason.diamond.name/weblog/2006/05/25/custom-configuration-section-validator-weirdness&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Another Tip:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;If you want to have a ConfigurationElementCollection in your config section without actually having a parent&amp;nbsp;tag around the collection, declare the collection name in the ConfigurationProperty attribute as an empty string.&amp;nbsp; For example if you have a &amp;lt;MyConfigSection&amp;gt; section with a collection of FileGroup elements, you can code:&lt;/p&gt;&lt;pre class="coloredcode"&gt;       &amp;lt;ConfigurationProperty(&lt;span class="st"&gt;&amp;quot;&amp;quot;&lt;/span&gt;, IsRequired:=&lt;span class="kwd"&gt;True&lt;/span&gt;, IsDefaultCollection:=&lt;span class="kwd"&gt;True&lt;/span&gt;)&amp;gt; _
        &lt;span class="kwd"&gt;Public Property&lt;/span&gt; FileGroups() &lt;span class="kwd"&gt;As&lt;/span&gt; FileGroupCollection
            &lt;span class="kwd"&gt;Get
                Return CType&lt;/span&gt;(&lt;span class="kwd"&gt;Me&lt;/span&gt;(&lt;span class="st"&gt;&amp;quot;&amp;quot;&lt;/span&gt;), FileGroupCollection)
            &lt;span class="kwd"&gt;End Get
            Set&lt;/span&gt;(&lt;span class="kwd"&gt;ByVal&lt;/span&gt; value &lt;span class="kwd"&gt;As&lt;/span&gt; FileGroupCollection)
                &lt;span class="kwd"&gt;Me&lt;/span&gt;(&lt;span class="st"&gt;&amp;quot;&amp;quot;&lt;/span&gt;) = value
            &lt;span class="kwd"&gt;End Set
        End Property&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;which will give you:&lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;MySection&lt;/span&gt;&amp;gt;
   &amp;lt;&lt;span class="tag"&gt;FileGroup/&lt;/span&gt;&amp;gt;
   &amp;lt;&lt;span class="tag"&gt;FileGroup/&lt;/span&gt;&amp;gt;
   &amp;lt;&lt;span class="tag"&gt;FileGropu/&lt;/span&gt;&amp;gt;
&amp;lt;&lt;span class="tag"&gt;MySection&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;as opposed to &lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;lt;ConfigurationProperty(&lt;span class="st"&gt;&amp;quot;&lt;strong&gt;FileGroups&lt;/strong&gt;&amp;quot;&lt;/span&gt;, IsRequired:=&lt;span class="kwd"&gt;True&lt;/span&gt;, IsDefaultCollection:=&lt;span class="kwd"&gt;True&lt;/span&gt;)&amp;gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;which would require the section to look like:&lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;MySection&lt;/span&gt;&amp;gt;
   &amp;lt;&lt;span class="tag"&gt;FileGroups&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="tag"&gt;FileGroup/&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="tag"&gt;FileGroup/&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="tag"&gt;FileGropu/&lt;/span&gt;&amp;gt;
   &amp;lt;/&lt;span class="tag"&gt;FileGroups&lt;/span&gt;&amp;gt;
&amp;lt;&lt;span class="tag"&gt;MySection&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;strong&gt;Something Odd&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Most of the example code I&amp;#39;ve found on the&amp;nbsp;web write the property accessors as I did above, using Me(&amp;quot;someName&amp;quot;) (or base[&amp;quot;someName&amp;quot;] in C#) to store the values.&amp;nbsp; Reading the documentation, it looks like the default the default property of the ConfigurationElement is Item(), but tracing through the code I found that the values I was trying to retrieve&amp;nbsp;could be found in&amp;nbsp;the Values property collection (a hash I think, probably a ConfigurationPropertiesCollection object) , a property which doesn&amp;#39;t appear in the MSDN documentation for the ConfigurationElement.&amp;nbsp; Me(&amp;quot;someName&amp;quot;) seems to be functionaly&amp;nbsp;equivalent to Me.Values(&amp;quot;someName&amp;quot;).&amp;nbsp; I&amp;#39;m not sure why they omitted that from the documentation, or what purpose the Item() property serves except that it&amp;#39;s documented as:&lt;/p&gt;&lt;p&gt;In C#, this property is the indexer for the&amp;nbsp;ConfigurationSectionCollection class. &lt;/p&gt;&lt;p&gt;which leaves me wondering why it&amp;#39;s in the ConfigurationElement class and what it does for VB.&amp;nbsp; In my explorations, I found that Me.Item(&amp;quot;someName&amp;quot;) couldn&amp;#39;t get me to my value, but Me.Values(&amp;quot;someName&amp;quot;) could.&amp;nbsp; If anyone has some insight into this, I&amp;#39;d be very happy to hear it.&lt;/p&gt;&lt;p&gt;I hope this helps someone out.&lt;/p&gt;</description></item></channel></rss>