<?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>Client Settings FAQ</title><link>http://blogs.msdn.com/b/rprabhu/archive/2005/06/29/433979.aspx</link><description>One of the cool new features in .NET 2.0/VS 2005 is an easy to use, extensible API to manage application/user settings, i.e., data that needs to be persisted across runs of a client application. You can find more information about this feature on MSDN</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Client Settings FAQ</title><link>http://blogs.msdn.com/b/rprabhu/archive/2005/06/29/433979.aspx#1319999</link><pubDate>Tue, 19 Dec 2006 03:46:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1319999</guid><dc:creator>rprabhu</dc:creator><description>&lt;p&gt;Aaron: One way to quickly test correct behavior is to use Ctrl + F5 in Visual Studio instead of F5. This will cause the app to run normally and not under the vshost process.&lt;/p&gt;
&lt;p&gt;Also, there is an option in Application Properties in VS to disable the vshost process if you want to.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1319999" width="1" height="1"&gt;</description></item><item><title>re: Client Settings FAQ</title><link>http://blogs.msdn.com/b/rprabhu/archive/2005/06/29/433979.aspx#1304074</link><pubDate>Sat, 16 Dec 2006 17:01:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1304074</guid><dc:creator>Aaron Oneal</dc:creator><description>&lt;p&gt;Tony, I have the same problem when running my apps under Visual Studio when code is running under an app domain that doesn't have an executing assembly. For example, I have a host process (app domain) that creates several child app domains (one for each plugin). If I use the config manager under one of the plugin domains (which doesn't have an executing assembly), the config manager tries to pull the properties for the user path from the executing process EXE using a native call. Unfortunately, the executing process EXE is usually the vshost.exe wrapper process, which has Microsoft as the company, and the VS version as the version instead of the information from my process executing assembly. I suppose when deployed and not running under VS it would probably come up with the right company and version values, but it makes testing annoying.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1304074" width="1" height="1"&gt;</description></item><item><title>re: Client Settings FAQ</title><link>http://blogs.msdn.com/b/rprabhu/archive/2005/06/29/433979.aspx#1123904</link><pubDate>Thu, 23 Nov 2006 00:39:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1123904</guid><dc:creator>rprabhu</dc:creator><description>&lt;p&gt;Tony: IIRC, using the LocalFileSettingsProvider within VSTO is not a supported or tested scenario. It is not explicitly blocked so might seem to work, but I recommend against using it in *shipping* code, as you might run into problems (unfortunately, I don't remember what specific issues there were - I moved to a different part of Microsoft over an year ago).&lt;/p&gt;
&lt;p&gt;But do double check by posting this question on the MSDN forums if you wish. &lt;/p&gt;
&lt;p&gt;I would recommend writing your own provider, which is pretty simple to do, starting with the samples/docs on MSDN. &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1123904" width="1" height="1"&gt;</description></item><item><title>re: Client Settings FAQ</title><link>http://blogs.msdn.com/b/rprabhu/archive/2005/06/29/433979.aspx#1121822</link><pubDate>Wed, 22 Nov 2006 13:47:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1121822</guid><dc:creator>Tony</dc:creator><description>&lt;p&gt;Hello rprabhu,&lt;/p&gt;
&lt;p&gt;in the answer of the last question (Is the settings functionality available only to Windows Forms applications?) you wrote, that user.config isn't supported for VSTO apps. I found out, that this is not correct. I use userSettings in my VSTO-OutlookAddin and it works. The only 'problem' is, that the path, where the user.config is saved contains &amp;quot;Microsoft_Corporation&amp;quot; istead of the AssemblyCompany of my AssemblyInfo.&lt;/p&gt;
&lt;p&gt;Could it become a problem? Is it safe, to use the default settings provider in a VSTO app, or should I write my own settings provider?&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Tony&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1121822" width="1" height="1"&gt;</description></item><item><title>re: Client Settings FAQ</title><link>http://blogs.msdn.com/b/rprabhu/archive/2005/06/29/433979.aspx#1104619</link><pubDate>Sun, 19 Nov 2006 22:56:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1104619</guid><dc:creator>rprabhu</dc:creator><description>&lt;p&gt;'Gbenga: Unfortunately, I don't know the answer to your question. I suggest posting it on one of the .NET forums or newsgroups.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1104619" width="1" height="1"&gt;</description></item><item><title>re: Client Settings FAQ</title><link>http://blogs.msdn.com/b/rprabhu/archive/2005/06/29/433979.aspx#1096005</link><pubDate>Sat, 18 Nov 2006 01:21:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1096005</guid><dc:creator>'Gbenga</dc:creator><description>&lt;p&gt;I'm developing a Windows CE application. I need to persist some settings across applications sessions like web service url. But there is no Settings option in Win CE Device App project. Any suggestion on how to persist the settings?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1096005" width="1" height="1"&gt;</description></item><item><title>re: Client Settings FAQ</title><link>http://blogs.msdn.com/b/rprabhu/archive/2005/06/29/433979.aspx#701538</link><pubDate>Tue, 15 Aug 2006 23:17:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:701538</guid><dc:creator>rprabhu</dc:creator><description>Brian: Good to know you got it working!&lt;br&gt;&lt;br&gt;Marty: Sorry, I am not aware of how NetRun deployment works. If you can isolate an issue, please report it through MSDN Product Feedback so the right folks can investigate.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=701538" width="1" height="1"&gt;</description></item><item><title>re: Client Settings FAQ</title><link>http://blogs.msdn.com/b/rprabhu/archive/2005/06/29/433979.aspx#696841</link><pubDate>Sun, 13 Aug 2006 00:15:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:696841</guid><dc:creator>Brian</dc:creator><description>Hello Raghavendra, &lt;br&gt;&lt;br&gt;Thanks for the fast response, but I've pin pointed the problem. ;)&lt;br&gt;&lt;br&gt;ApplicationSettingsBase internally uses Refleciton and Assembly.Load() to seralize/deserialze types. &amp;nbsp;Deserialization failed for complex (custom) types because the EXE assembly containg these types was packed and encrypted by the loader as a resource (inside the loader EXE)... since the runtime only saw the EXE loader assembly, it failed to resolve types correcty.&lt;br&gt;&lt;br&gt;Solution:&lt;br&gt;&lt;br&gt;Move all seralized types that need to be accessed by the runtime to a seperate DLL library. &amp;nbsp;Pack the EXE assembly and DLL assembly then hook assembly resolve type events emitted by the CLR to correct the problem.&lt;br&gt;&lt;br&gt;-Brian&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=696841" width="1" height="1"&gt;</description></item><item><title>re: Client Settings using NetRun</title><link>http://blogs.msdn.com/b/rprabhu/archive/2005/06/29/433979.aspx#695680</link><pubDate>Fri, 11 Aug 2006 19:44:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:695680</guid><dc:creator>Marty Cerisano</dc:creator><description>I have a windows app that is deployed using NetRun. &amp;nbsp;When I run it from a users machine the configuration API is unable to retrieve the Configuration.FilePath. &amp;nbsp;I am assuming this is because applications installed using NetRun execute under a restricted context.&lt;br&gt;&lt;br&gt;Any experience or solutions for this scenario?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=695680" width="1" height="1"&gt;</description></item><item><title>re: Client Settings FAQ</title><link>http://blogs.msdn.com/b/rprabhu/archive/2005/06/29/433979.aspx#694915</link><pubDate>Fri, 11 Aug 2006 03:57:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:694915</guid><dc:creator>Matt</dc:creator><description>Awesome got it working.&lt;br&gt;&lt;br&gt;yep my config file was unhappy killed it and re did it and all worked fine at runtime. &lt;br&gt;&lt;br&gt;Still got an error message in the desinger telling me it couldnt load the provider type. So i change the line&lt;br&gt;&lt;br&gt;&amp;lt;SettingsProvider(&amp;quot;[assembly].[provider], [assembly]&amp;quot;)&amp;gt;&lt;br&gt;&lt;br&gt;to&lt;br&gt;&lt;br&gt;&amp;lt;SettingsProvider(GetType([Provider]))&amp;gt; _&lt;br&gt;&lt;br&gt;and all is working great.&lt;br&gt;&lt;br&gt;Cheers for your quick response&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=694915" width="1" height="1"&gt;</description></item></channel></rss>