<feed xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
    <title>Development 4.0</title>
    <link rel="self" type="application/xml" href="http://williamkent.net/Atom.aspx" />
    <subtitle type="html">Musings &amp;  Reflections</subtitle>
    <id>http://williamkent.net/Default.aspx</id>
    <author>
        <name>William Kent</name>
        <uri>http://williamkent.net/Default.aspx</uri>
    </author>
    <generator uri="http://subtextproject.com" version="Subtext Version 1.9.5.176">Subtext</generator>
    <updated>2010-02-04T21:19:00Z</updated>
    <entry>
        <title>My Windows 7 Start menu search bar stopped working and how I fixed it</title>
        <link rel="self" type="text/html" href="http://williamkent.net/archive/2010/02/04/my-windows-7-start-menu-search-bar-stopped-working-and.aspx" />
        <id>http://williamkent.net/archive/2010/02/04/my-windows-7-start-menu-search-bar-stopped-working-and.aspx</id>
        <published>2010-02-04T21:19:00-07:00:00</published>
        <updated>2010-02-04T21:19:00Z</updated>
        <content type="html">&lt;p&gt;One of the feature I rather like in Windows 7 is the search bar in the Start Menu, that allows me to type in pretty much any Application name, and start it.&lt;/p&gt;
&lt;p&gt;No more hunting through the Start Menu hierarchy in order to find that elusive application. It reminds me of a less comprehensive Quicksilver (on Os/x).&lt;/p&gt;
&lt;p&gt;For some reason, after some updates and general usage the search bar stopped working as far as application were concerned. I still to this day am not sure why it stopped working.&lt;/p&gt;
&lt;p&gt;The symptoms where, I would start the Start Menu, and type in for instance "Notepad" and it would show 3 folders, and hitting enter did nothing. Frustrating!!&lt;/p&gt;
&lt;p&gt;I digged around in various options and settings and so forth, for a while without being able to fix my problem.&lt;/p&gt;
&lt;p&gt;Thankfully there is a fix, but its obscure, and require you to &lt;b&gt;reboot&lt;/b&gt; your computer to work.&lt;/p&gt;
&lt;p&gt;The error is due to an invalid registry key.&lt;br /&gt;
&lt;span style="font-family: Calibri; font-size: small;"&gt;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{ef87b4cb-f2ce-4785-8658-4ca6c63e38c6}\TopViews\{00000000-0000-0000-0000-000000000000}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This controls the value Start Menu's grouping values. The value is supposed to be:&lt;br /&gt;
&lt;span style="font-family: Calibri; font-size: small;"&gt;“System.StartMenu.Group”&lt;/span&gt;  &lt;/p&gt;
&lt;p&gt;When the search stops working usually and in my case this value was set to Null.&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;In order to change this value start regedit.&lt;/li&gt;

  &lt;li&gt;Browse to the &lt;span style="font-family: Calibri; font-size: small;"&gt;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{ef87b4cb-f2ce-4785-8658-4ca6c63e38c6}\TopViews\{00000000-0000-0000-0000-000000000000} &lt;span style="font-family: Helvetica; font-size: 12px;"&gt;registry key&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;

  &lt;li&gt;Click Modify&lt;/li&gt;

  &lt;li&gt;Change the value to &lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;strong style=""&gt;System.StartMenu.Group &lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;

  &lt;li&gt;Reboot&lt;br /&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="posttagsblock"&gt;&lt;a href="http://technorati.com/tag/Windows7" rel="tag"&gt;Windows7&lt;/a&gt;&lt;/div&gt;&lt;img src="http://williamkent.net/aggbug/66.aspx" width="1" height="1" /&gt;</content>
    </entry>
    <entry>
        <title>Sharepoint Saturday in Denver</title>
        <link rel="self" type="text/html" href="http://williamkent.net/archive/2009/11/20/sharepoint-saturday-in-denver.aspx" />
        <id>http://williamkent.net/archive/2009/11/20/sharepoint-saturday-in-denver.aspx</id>
        <published>2009-11-20T09:56:53-07:00:00</published>
        <updated>2009-11-20T09:56:53Z</updated>
        <content type="html">&lt;p&gt;My good friend Ryan McIntyre is on the organizing comittee, and my employer Statera is a corperator sponsor fro the Sharepoint Saturday Event.&lt;/p&gt;
&lt;p&gt;This is an exciting oppertunity to learn about Sharepoint, hear some news about Sharepoint 2010, and network with fellow Sharepoint enthusiast from the Denver area.&lt;/p&gt;http://www.sharepointsaturday.org/denver/default.aspx 
&lt;p&gt;You can sign up right now&lt;/p&gt;
&lt;p style="MARGIN: 0in 0in 0pt" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Space is limited for these events.  So sign up today&lt;br /&gt;&lt;br /&gt;SharePoint Saturday: &lt;/font&gt;&lt;a href="http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032434871&amp;amp;Culture=en-US" target="_blank"&gt;&lt;font color="#0000ff" size="3" face="Calibri"&gt;http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032434871&amp;amp;Culture=en-US&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; &lt;br /&gt;&lt;br /&gt;Get On The Bus: Vail: &lt;/font&gt;&lt;a href="http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032434880&amp;amp;culture=en-US" target="_blank"&gt;&lt;font color="#0000ff" size="3" face="Calibri"&gt;http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032434880&amp;amp;culture=en-US&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://williamkent.net/aggbug/65.aspx" width="1" height="1" /&gt;</content>
    </entry>
    <entry>
        <title>Black Friday deals from Amazon</title>
        <link rel="self" type="text/html" href="http://williamkent.net/archive/2009/11/20/black-friday-deals-from-amazon.aspx" />
        <id>http://williamkent.net/archive/2009/11/20/black-friday-deals-from-amazon.aspx</id>
        <published>2009-11-20T09:47:27-07:00:00</published>
        <updated>2009-11-20T09:47:27Z</updated>
        <content type="html">&lt;p&gt;Amazon has released the link for their Black Friday deals. &lt;br /&gt;They are extending their BlackFriday sale for a week preceding&lt;br /&gt;the date. &lt;/p&gt;&lt;a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;amp;location=http%3A%2F%2Fwww.amazon.com%2FBlack-Friday-After-Thanksgiving-Sale%2Fb%3Fie%3DUTF8%26node%3D384082011&amp;amp;tag=develop40-20&amp;amp;linkCode=ur2&amp;amp;camp=1789&amp;amp;creative=390957"&gt;Amazon Black Friday Deals (starting a week early)&lt;/a&gt;&lt;img style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; MARGIN: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none" border="0" alt="" src="https://www.assoc-amazon.com/e/ir?t=develop40-20&amp;amp;l=ur2&amp;amp;o=1" width="1" height="1" /&gt;&lt;img src="http://williamkent.net/aggbug/64.aspx" width="1" height="1" /&gt;</content>
    </entry>
    <entry>
        <title>ReSharper 4.0 has been released</title>
        <link rel="self" type="text/html" href="http://williamkent.net/archive/2008/06/10/resharper-4.0-has-been-released.aspx" />
        <id>http://williamkent.net/archive/2008/06/10/resharper-4.0-has-been-released.aspx</id>
        <published>2008-06-10T14:06:01-06:00:00</published>
        <updated>2008-06-13T09:51:28Z</updated>
        <content type="html">&lt;p&gt;ReSharper 4.0 has been released and it has a &lt;a href="http://www.jetbrains.com/resharper/buy/index.jsp#upgradeuser"&gt;30 day trail available&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;ReSharper 4.0 features full support for C# 3.0 and LinQ.&lt;/p&gt;
&lt;p&gt;It also has some new &lt;a href="http://www.jetbrains.com/resharper/features/newfeatures.html"&gt;refactorings built in&lt;/a&gt;, and promises to be faster. &lt;/p&gt;
&lt;p&gt;I have been using the beta version on Visual Studio 2008 for a while, and I did not notice any errors with the version I had. &lt;br /&gt;A great thing about it, is that it can help you in learning some of the new C# 3.0 features, by suggesting refactorings that &lt;br /&gt;take advantage of the new features.&lt;/p&gt;
&lt;p&gt;I was shocked by the cost to upgrade from 3.0 to 4.0 though: $249. That is excessive.&lt;br /&gt;Around $150 – $100 would be reasonable and expected. &lt;/p&gt;
&lt;p&gt;For someone who has been using ReSharper since pre 1.0 it felt a bit like a slap in the face. &lt;/p&gt;
&lt;p&gt; I hope jetBrains might drop the upgrade fee, or at least have an introductory upgrade offer.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;UPDATE: I received a message from Ann of Jetbrains, saying that there was a minor issue with the web page&lt;br /&gt;that had the pricing, and that the correct pricing is now available&lt;a href="http://www.jetbrains.com/resharper/buy/index.jsp#upgradeuser"&gt;&lt;/a&gt;. This brings the cost down to $209 for Full version 3&lt;br /&gt;to Full version  upgrade, and a good $149 for C# 3 upgrade to C# 4 upgrade.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://williamkent.net/aggbug/62.aspx" width="1" height="1" /&gt;</content>
    </entry>
    <entry>
        <title>Programatically updating a BDC primary key column in MOSS </title>
        <link rel="self" type="text/html" href="http://williamkent.net/archive/2008/06/09/programatically-updating-a-bdc-primary-key-column-in-moss.aspx" />
        <id>http://williamkent.net/archive/2008/06/09/programatically-updating-a-bdc-primary-key-column-in-moss.aspx</id>
        <published>2008-06-09T16:24:28-06:00:00</published>
        <updated>2008-06-09T16:31:01Z</updated>
        <content type="html">If you have a document library or list, that contains a BDC column, you mig th run into updating the value of the primary key column programatically .If you try to do this the regular way,k you will not receive an error, but the new value will never show up in the row. &lt;pre&gt;AnSPFile.Item["MyPrimaryBDCColumnsName"] = 1;&lt;/pre&gt;
&lt;p&gt;&lt;font face="Verdana"&gt;Instead you need to seek out the internal name of the column your trying to modify. You can do this easily by iterating over the columns of the list. Once you have located the internal name of the column, use that as the indexer for the row, and us the little documented class &lt;/font&gt;EntityInstanceIdEncoder to convert your new value into a BDC formatted value.&lt;/p&gt;
&lt;p&gt;An example of using EntityInstanceIdEncoder.&lt;/p&gt;&lt;font face="Courier New"&gt;AnSPFile.Item["MyPrimaryBDCColumns&lt;strong&gt;&lt;em&gt;Internal&lt;/em&gt;&lt;/strong&gt;Name"] = EntityInstanceIdEncoder.EncodeEntityInstanceId(new object[] { "1" });&lt;/font&gt; 
&lt;p&gt;You can quickly see if a column contains BDC encoded information by looking at the actual data (programatically) of the column. If the values look a bit like “_xxx30935” its probably a BDC encoded column.&lt;br /&gt;Note: In the regular list view interface, Sharepoint will display a user friendly interpretation of the BDC data. &lt;/p&gt;
&lt;p&gt;The EntityInstanceIdEncoder has a second function which will convert BDC encoded data back to its normal form. &lt;/p&gt;&lt;font face="Courier New"&gt;object[] decoded = EntityInstanceIdEncoder.DecodeEntityInstanceId(source);&lt;/font&gt; 
&lt;p&gt;The EntityInstanceIdEncoder has a third function which you can use to tell if a column contains BDC encoded data or not&lt;/p&gt;&lt;font face="Courier New"&gt;EntityInstanceIdEncoder.IsEncodedIdentifier (Convert.ToString(AnSPFile.Item[ "MyPrimaryBDCColumns&lt;strong&gt;&lt;em&gt;Internal&lt;/em&gt;&lt;/strong&gt;Name"])&lt;/font&gt; 
&lt;p&gt;One caveat to this method is that it will return false if the value of the current row is null, even if all other rows in the column contain encoded bdc information. &lt;/p&gt;
&lt;p&gt;Hopefully this will help others who are faced with modifying a BDC column programatically and cannot find a lot of documentation on the subject in the Sharepoint documentation.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;div class="bjtags"&gt;Tags:  &lt;a rel="tag" href="http://technorati.com/tag/Sharepoint"&gt;Sharepoint&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tag/BDC"&gt;BDC&lt;/a&gt;&lt;/div&gt;&lt;img src="http://williamkent.net/aggbug/61.aspx" width="1" height="1" /&gt;</content>
    </entry>
    <entry>
        <title>Code to store Infopath forms via WCF</title>
        <link rel="self" type="text/html" href="http://williamkent.net/archive/2008/06/09/code-to-store-infopath-forms-via-wcf.aspx" />
        <id>http://williamkent.net/archive/2008/06/09/code-to-store-infopath-forms-via-wcf.aspx</id>
        <published>2008-06-09T15:53:40-06:00:00</published>
        <updated>2008-06-09T15:54:18Z</updated>
        <content type="html">&lt;p&gt;The following is a code snibbit which will allow you to store Infopath forms via WCF. &lt;/p&gt;
&lt;p&gt;In this post I focus soley on the WCF aspects, in a later post I will talk about the configuration of the Infopath form in order to utilize the code.  &lt;/p&gt;
&lt;blockquote&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;using&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; System;&lt;?xml:namespace prefix ="" o /?&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;using&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; System.Data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;using&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; System.IO;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;using&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; System.ServiceModel;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;using&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; System.Xml;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;[ServiceContract()]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;[XmlSerializerFormat]&lt;font color="#000000"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; &lt;span style="COLOR: blue"&gt;interface&lt;/span&gt; IInfopathStorage&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;    &lt;/span&gt;[OperationContract]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;    &lt;/span&gt;XmlDocument LoadForm(&lt;span style="COLOR: blue"&gt;int&lt;/span&gt; id);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;    &lt;/span&gt;[OperationContract]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;    &lt;/span&gt;&lt;span style="COLOR: blue"&gt;void&lt;/span&gt; StoreForm(XmlDocument xmlDoc, &lt;span style="COLOR: blue"&gt;int&lt;/span&gt; id);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; &lt;span style="COLOR: blue"&gt;class&lt;/span&gt; InfopathStorage : IInfopathStorage&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;    &lt;/span&gt;&lt;span style="COLOR: blue"&gt;public&lt;/span&gt; XmlDocument LoadForm(&lt;span style="COLOR: blue"&gt;int&lt;/span&gt; id)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;        &lt;/span&gt;XmlDocument xmlDoc = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; XmlDocument();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;        &lt;/span&gt;&lt;span style="COLOR: #2b91af"&gt;StringReader&lt;/span&gt; sr = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; &lt;span style="COLOR: #2b91af"&gt;StringReader&lt;/span&gt;(MyDal.GetForm(id));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;        &lt;/span&gt;xmlDoc.Load(sr);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;        &lt;/span&gt;&lt;span style="COLOR: blue"&gt;return&lt;/span&gt; xmlDoc;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;    &lt;/span&gt;&lt;span style="COLOR: blue"&gt;public&lt;/span&gt; &lt;span style="COLOR: blue"&gt;void&lt;/span&gt; StoreForm(XmlDocument xmlDoc, &lt;span style="COLOR: blue"&gt;int&lt;/span&gt; id)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;        &lt;/span&gt;MyDal.StoreForm(xmlDoc, id);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;span style="mso-spacerun: yes"&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt;&lt;span style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The most notable part of the code should be the [XmlSerializerFormat] attribute. This bit of magic will allow the passing of the XmlDocument object. Without the attribute you will get a compile time error stating that the XmlDocument cannot be serialized.&lt;/p&gt;
&lt;blockquote&gt;&lt;font face="courier new"&gt;
&lt;p&gt;  &amp;lt;service name="&lt;font face="courier new"&gt;InfopathStorage" behaviorConfiguration="returnFaults"&amp;gt;&lt;br /&gt;    &amp;lt;endpoint contract="IPersonalClientQuestionnaire" binding="&lt;strong&gt;basicHttpBinding&lt;/strong&gt;"/&amp;gt;&lt;br /&gt;   &amp;lt;/service&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/blockquote&gt;

&lt;p&gt;In your web.config file where you configure the WCF endpoints, its important to make sure your binding is set to basicHttpBidining, instead of wsHttpBiding. Otherwise Infopath will return errors.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;div class="bjtags"&gt;Tags:  &lt;a rel="tag" href="http://technorati.com/tag/Infopath"&gt;Infopath&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tag/WCF"&gt;WCF&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tag/Sharepoint"&gt;Sharepoint&lt;/a&gt;&lt;/div&gt;&lt;img src="http://williamkent.net/aggbug/60.aspx" width="1" height="1" /&gt;</content>
    </entry>
    <entry>
        <title>Configuring Sharepoint for use with Infopath and forms server</title>
        <link rel="self" type="text/html" href="http://williamkent.net/archive/2008/06/09/configuring-sharepoint-for-use-with-infopath-and-forms-server.aspx" />
        <id>http://williamkent.net/archive/2008/06/09/configuring-sharepoint-for-use-with-infopath-and-forms-server.aspx</id>
        <published>2008-06-09T11:39:07-06:00:00</published>
        <updated>2008-06-09T15:55:23Z</updated>
        <content type="html">&lt;h1&gt;Pre requisites&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;A server running Moss 2007 (Enterprise license) &lt;/li&gt;
&lt;li&gt;Visual Studio 2005 &lt;/li&gt;
&lt;li&gt;Infopath extensions for Visual Studio 2005 &lt;/li&gt;&lt;/ul&gt;
&lt;p&gt; &lt;/p&gt;
&lt;h1&gt;Sharepoint configuration &lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;Ensure that you have activated the Enterprise license &lt;/li&gt;
&lt;li&gt;Ensure that you have activated the Forms server feature &lt;/li&gt;
&lt;li&gt;Ensure that the forms library is available in the site where you wish to publish infopath forms. &lt;/li&gt;&lt;/ul&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;If the site you intend to publish your forms at is a publishing site, the option to create a forms library will not exist, in which case you have to activate a feature to have access to the forms library. &lt;/p&gt;
&lt;p&gt;Ensure that the following features are enabled (on the site and the site collection): &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Office SharePoint Server Enterprise Site features &lt;/li&gt;
&lt;li&gt;Team Collaboration Lists &lt;/li&gt;
&lt;li&gt;Office SharePoint Server Standard Site features &lt;/li&gt;&lt;/ol&gt;
&lt;h2&gt;Create a library to hold the Data Connection files &lt;/h2&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If this library type is not visible in Sharepoint for you, you need to enable enterprise feature on the portal and in the site. Jot down the address to the library you just created, you will need it later. &lt;/p&gt;The data connection file is a configuration file that tells Sharepoint how and with whom an Infopath form is allowed to communicate with, when its running in Forms Server. You can have Infopath client create them automatically, and put them in the data connection library. If you use the Infopath client to automatically create the files and put them in the library, the client will automatically reference the Data connection files in the library. If you manually create the data connection files, you need to update the forms to reference the new data connection file. The data connection files are used for submitting forms, loading forms, and loading data via web services into drop down menus or other dynamic content. 
&lt;p&gt; &lt;/p&gt;
&lt;h2&gt;Create a forms library &lt;/h2&gt;
&lt;p&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;This will be the library where you want to create the forms. &lt;/p&gt;
&lt;p&gt;At this point Sharepoint should be ready to host the forms and the configuration files required to get an Infopath up and running. &lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0cm 0cm 10pt"&gt; &lt;/p&gt;&lt;div class="bjtags"&gt;Tags:  &lt;a rel="tag" href="http://technorati.com/tag/Sharepoint"&gt;Sharepoint&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tag/Infopath"&gt;Infopath&lt;/a&gt;&lt;/div&gt;&lt;img src="http://williamkent.net/aggbug/59.aspx" width="1" height="1" /&gt;</content>
    </entry>
    <entry>
        <title>Amazon.com is down</title>
        <link rel="self" type="text/html" href="http://williamkent.net/archive/2008/06/06/amazon.com-is-down.aspx" />
        <id>http://williamkent.net/archive/2008/06/06/amazon.com-is-down.aspx</id>
        <published>2008-06-06T12:12:29-06:00:00</published>
        <updated>2008-06-06T12:12:29Z</updated>
        <content type="html">&lt;p&gt;Amazon.com appears to be down, and has been down for quite a while. &lt;/p&gt;
&lt;p&gt;“&lt;strong&gt;Http/1.1 Service Unavailable”&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You can still access your amazon.com goodies via the secure site (https). &lt;/p&gt;
&lt;p&gt;It will be interesting to find out what caused such a widespread and long outage and one of the premium .com sites.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt; &lt;/p&gt;&lt;img src="http://williamkent.net/aggbug/58.aspx" width="1" height="1" /&gt;</content>
    </entry>
    <entry>
        <title>Enterprise Library 4.0 is out</title>
        <link rel="self" type="text/html" href="http://williamkent.net/archive/2008/05/16/enterprise-library-4.0-is-out.aspx" />
        <id>http://williamkent.net/archive/2008/05/16/enterprise-library-4.0-is-out.aspx</id>
        <published>2008-05-16T13:13:59-06:00:00</published>
        <updated>2008-05-16T13:13:59Z</updated>
        <content type="html">&lt;p&gt;A brand new version of the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=90DE37E0-7B42-4044-99BE-F8ECFBBC5B65&amp;amp;displaylang=en"&gt;Enterprise Library&lt;/a&gt; has been &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=90DE37E0-7B42-4044-99BE-F8ECFBBC5B65&amp;amp;displaylang=en"&gt;released&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Most notable is the integration and &lt;a href="http://helpdesk.codingrobots.com/"&gt;support&lt;/a&gt; for Visual Studio 2008.&lt;/p&gt;&lt;div class="bjtags"&gt;Tags:  &lt;a rel="tag" href="http://technorati.com/tag/VS2008,+Enterprise+Library"&gt;VS2008,+Enterprise+Library&lt;/a&gt;&lt;/div&gt;&lt;img src="http://williamkent.net/aggbug/57.aspx" width="1" height="1" /&gt;</content>
    </entry>
    <entry>
        <title>Document libraries vs File shares</title>
        <link rel="self" type="text/html" href="http://williamkent.net/archive/2008/05/07/document-libraries-vs-file-shares.aspx" />
        <id>http://williamkent.net/archive/2008/05/07/document-libraries-vs-file-shares.aspx</id>
        <published>2008-05-07T11:13:35-06:00:00</published>
        <updated>2008-05-07T11:13:35Z</updated>
        <content type="html">&lt;p&gt;Joel Oleson has &lt;a href="http://blogs.msdn.com/sharepoint/archive/2007/01/02/is-the-file-server-dead.aspx"&gt;published a great blog &lt;/a&gt;post regarding the choice of wether or not to store files on a file share or in a document library in WSS/MOSS.&lt;/p&gt;
&lt;p&gt;He also has a &lt;a href="http://blogs.msdn.com/joelo/archive/2007/11/08/what-not-to-store-in-sharepoint.aspx"&gt;great post&lt;/a&gt; on what not to store in Sharepoint. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://williamkent.net/aggbug/56.aspx" width="1" height="1" /&gt;</content>
    </entry>
</feed>