<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Edwin Vriethoff &#187; Infopath</title>
	<atom:link href="http://edwin.vriethoff.net/category/infopath/feed/" rel="self" type="application/rss+xml" />
	<link>http://edwin.vriethoff.net</link>
	<description>Edwin Vriethoff</description>
	<lastBuildDate>Fri, 04 Jun 2010 06:16:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>This product requires ASP.NET v2.0 to be set to &#8216;Allow&#8217; in the list of Internet Information Services (IIS) Web Server Extensions</title>
		<link>http://edwin.vriethoff.net/2008/01/29/this-product-requires-aspnet-v20-to-be-set-to-allow-in-the-list-of-internet-information-services-iis-web-server-extensions/</link>
		<comments>http://edwin.vriethoff.net/2008/01/29/this-product-requires-aspnet-v20-to-be-set-to-allow-in-the-list-of-internet-information-services-iis-web-server-extensions/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 10:38:10 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Infopath]]></category>
		<category><![CDATA[Quick note]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[internet information services]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[visual studio 2005]]></category>
		<category><![CDATA[web server extensions]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/2008/01/29/this-product-requires-aspnet-v20-to-be-set-to-allow-in-the-list-of-internet-information-services-iis-web-server-extensions/</guid>
		<description><![CDATA[I’m currently performing a migration process and during the Moss installation the following error message is presented:
&#8220;This product requires ASP.NET v2.0 to be set to &#8216;Allow&#8217; in the list of Internet Information Services (IIS) Web Server Extensions.  If it is not available in the list, re-install ASP.NET v2.0.&#8221;
But on my machine Visual Studio 2005 [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://edwin.vriethoff.net/wp-content/dotnet2.jpg' alt='This product requires ASP.NET v2.0' align="right" style="position:relative;top:-5px;" />I’m currently performing a migration process and during the Moss installation the following error message is presented:</p>
<p>&#8220;This product requires ASP.NET v2.0 to be set to &#8216;Allow&#8217; in the list of Internet Information Services (IIS) Web Server Extensions.  If it is not available in the list, re-install ASP.NET v2.0.&#8221;</p>
<p>But on my machine Visual Studio 2005 and .NET2 are installed, so that’s a bit strange. Checking out the IIS extensions panel is indeed not showing the v2.0 version.</p>
<p>To solve the issue open your command prompt en navigate to:<br />
<font style="color: green;">%drive%\Windows\Microsoft.NET\Framework\v2.0.nnnnn</font><br />
where nnnnn is the least significant version number of ASP.NET 2.0.</p>
<p>Now run the following command at the command prompt:<br />
<font style="color: green;">&#8220;aspnet_regiis.exe -iru -enable&#8221;</font><br />
and the issue should be fixed.</p>
<p>Source: <a href="http://office.microsoft.com/en-us/winsharepointadmin/HA100598511033.aspx#Inst2on2003" onclick="javascript:pageTracker._trackPageview('/outbound/article/office.microsoft.com');" target="_blank">Office online &#8211; Windows SharePoint Services 2.0 IT Documentation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2008/01/29/this-product-requires-aspnet-v20-to-be-set-to-allow-in-the-list-of-internet-information-services-iis-web-server-extensions/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>InfoPath publishing: The following URL is not valid</title>
		<link>http://edwin.vriethoff.net/2007/11/14/infopath-publishing-the-following-url-is-not-valid/</link>
		<comments>http://edwin.vriethoff.net/2007/11/14/infopath-publishing-the-following-url-is-not-valid/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 09:05:02 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[Infopath]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Notification service]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/2007/11/14/infopath-publishing-the-following-url-is-not-valid/</guid>
		<description><![CDATA[After publishing a lot of InfoPath forms, suddenly InfoPath 2007 started to present me with an error:
The following URL is not valid: www.url.com

The error made it completely impossible to publish any document to my SharePoint site. After searching some time on Google I found a few solutions which didn’t work for me:

Only Office Sharepoint 2007
Sharepoint [...]]]></description>
			<content:encoded><![CDATA[<p>After publishing a lot of InfoPath forms, suddenly InfoPath 2007 started to present me with an error:<br />
The following URL is not valid: www.url.com</p>
<p><img src='http://edwin.vriethoff.net/wp-content/infopath_invalid_url.jpg' alt='InfoPath The following URL is not valid' /></p>
<p>The error made it completely impossible to publish any document to my SharePoint site. After searching some time on Google I found a few solutions which didn’t work for me:</p>
<ul>
<li><a href="http://onlysharepoint.spaces.live.com/blog/cns!FEDB6AD7A9644520!163.entry" onclick="javascript:pageTracker._trackPageview('/outbound/article/onlysharepoint.spaces.live.com');" Target="_blank">Only Office Sharepoint 2007</a></li>
<li><a href="http://www.sharepoint-tips.com/2007/02/publishing-infopath-to-sharepoint.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.sharepoint-tips.com');" target="_blank">Sharepoint Tips and Tricks</a></li>
</ul>
<p>But the post from <a href="http://serena-yeoh.blogspot.com/2006/08/infopathformurlnotvalid.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/serena-yeoh.blogspot.com');" target="_blank">Firedancer</a> worked all right.</p>
<p>The solution is to stop the System Event Notification service. It seems to me that it is more a work around as a solution, so after publishing enable the service again.</p>
<p><font style="color:blue;">[update 15-11-2007]<br />You&#8217;ll only have to stop the System Event Notification service for one time. After you published the form resume the service. All new publications will go allright again. I guess that something that went wrong in the SharePoint database gets fixed after the forced publication.</font></p>
]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2007/11/14/infopath-publishing-the-following-url-is-not-valid/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to quickly edit multiple Web Service urls inside an InfoPath form</title>
		<link>http://edwin.vriethoff.net/2007/11/10/how-to-quickly-edit-multiple-web-service-urls-inside-an-infopath-form/</link>
		<comments>http://edwin.vriethoff.net/2007/11/10/how-to-quickly-edit-multiple-web-service-urls-inside-an-infopath-form/#comments</comments>
		<pubDate>Sat, 10 Nov 2007 19:06:09 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[Infopath]]></category>
		<category><![CDATA[connection wizard]]></category>
		<category><![CDATA[data connection]]></category>
		<category><![CDATA[manifest]]></category>
		<category><![CDATA[source files]]></category>
		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/2007/11/10/how-to-quickly-edit-multiple-web-service-urls-inside-a-infopath-form/</guid>
		<description><![CDATA[A good way to communicate with SharePoint from within a InfoPath form is to use Web Services. Normally you will manage the data source type Web Service with the help of the Data Connection Wizard. To investigate the web service you often have to supply the wizard with some example parameters, especially when the web [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://edwin.vriethoff.net/wp-content/infopath_logo.jpg' alt='How to quickly edit multiple Web Service urls inside a InfoPath form' align="right" />A good way to communicate with SharePoint from within a InfoPath form is to use Web Services. Normally you will manage the data source type Web Service with the help of the Data Connection Wizard. To investigate the web service you often have to supply the wizard with some example parameters, especially when the web service doesn&#8217;t return any result with empty parameters. Providing those parameters can take quite some time if you have to update more as one web service.</p>
<p>One of my current projects included 5 InfoPath forms with each 6 web services. Clicking through the Data Connection Wizard to update the url would take quite some time and I only needed to change the location. My test environment used the same web service as in production, but because of the different server name I had to update the urls to make the InfoPath forms work.</p>
<p>I found some <a href="http://msdn2.microsoft.com/en-us/library/aa218672(office.11).aspx#officeinfopathdevelopingsolutionsch7_rebinding" onclick="javascript:pageTracker._trackPageview('/outbound/article/msdn2.microsoft.com');" target="_blank">interesting instructions in the InfoPath documentation</a> and I decided to take it to the test. It turned out to be a good and quick way to update the urls. If you are facing the same situation as me follow these steps:</p>
<p><span id="more-89"></span></p>
<ul>
<li>Open your XSN file inside InfoPath</li>
<li>Choose &#8220;Save As Source Files&#8230;&#8221; from the File menu and select a location on your hard disk to store the source files<br /><img src='http://edwin.vriethoff.net/wp-content/saveassourcefiles.jpg' alt='Save xsn file as source files' /></li>
<li>Open the location on your hard disk with Windows Explorer. You will see all the files that are normally contained in the xsn file. One of these files is called manifest.xsf which contains information about the form like the urls from our web services<br /><img src='http://edwin.vriethoff.net/wp-content/manifestfile.jpg' alt='The xml manifest file' /></li>
<li>Open the manifest.xsf file inside your favorite text editor like Notepad and do a search and replace for the url that needs to be changed</li>
<li>Save the edited manifest.xsf file</li>
<li>Open the manifest.xsf file again but now with InfoPath</li>
<li>Continue to edit your form or publish it again</li>
<li>That&#8217;s it! All urls are updated within a single minute</li>
</ul>
<p>Take in mind that you cannot always use this method. If the structure of your Web Service changed you have to run the Data Connection Wizard again, but for changing only the urls this method will save you quite some time.</p>
]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2007/11/10/how-to-quickly-edit-multiple-web-service-urls-inside-an-infopath-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>InfoPath IXMLDOMDocument: Reference to undeclared namespace prefix</title>
		<link>http://edwin.vriethoff.net/2007/10/30/infopath-ixmldomdocument-reference-to-undeclared-namespace-prefix/</link>
		<comments>http://edwin.vriethoff.net/2007/10/30/infopath-ixmldomdocument-reference-to-undeclared-namespace-prefix/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 11:00:49 +0000</pubDate>
		<dc:creator>Edwin Vriethoff</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Infopath]]></category>
		<category><![CDATA[data source]]></category>
		<category><![CDATA[interop]]></category>
		<category><![CDATA[IXMLDOMDocument]]></category>
		<category><![CDATA[namespace prefix]]></category>
		<category><![CDATA[node]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://edwin.vriethoff.net/2007/10/30/infopath-ixmldomdocument-reference-to-undeclared-namespace-prefix/</guid>
		<description><![CDATA[By making use of the Microsoft Office Interop libraries it is possible to fill an InfoPath form automatically. This can be useful when you would like to run a large batch of initial settings.
Trying to set a query property in the DOM of a data source I received the error &#8220;Reference to undeclared namespace prefix: [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://edwin.vriethoff.net/wp-content/logoxml.gif' alt='InfoPath IXMLDOMDocument Reference to undeclared namespace prefix' align="right" />By making use of the Microsoft Office Interop libraries it is possible to fill an InfoPath form automatically. This can be useful when you would like to run a large batch of initial settings.</p>
<p>Trying to set a query property in the DOM of a data source I received the error &#8220;Reference to undeclared namespace prefix: &#8216;tns&#8217;&#8221;. The reason of this error is that the xml contains multiple namespaces and that you have to explicitly define the namespace to use.</p>
<p>By default the DOM property you can access from the XDocument are of the type <a href="http://msdn2.microsoft.com/en-us/library/ms757878.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/article/msdn2.microsoft.com');" target="_blank">IXMLDOMDocument</a>. But working with this type, does not allow you to set the required namespace for your selections. To get around the issue convert the IXMLDOMDocument to a <a href="http://msdn2.microsoft.com/en-us/library/ms761358.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/article/msdn2.microsoft.com');" target="_blank">IXMLDOMDocument2</a> which makes it possible to define a &#8220;<a href="http://msdn2.microsoft.com/en-us/library/ms756048.aspx" onclick="javascript:pageTracker._trackPageview('/outbound/article/msdn2.microsoft.com');">SelectionNamespaces</a>&#8221; property. If you fill this property with the required documentElement&#8217;s namespace, the xpath selection of your node will succeed and the error is gone.</p>
<p>Below is an example of the Data source’s IXMLDOMDocument2 content (xml) and some demo code to select the required node.</p>
<p><span id="more-83"></span><br />
<strong>IXMLDOMDocument2 content</strong> </p>
<div class="code">
&lt;dfs:myFields xmlns:dfs=&#8221;http://schemas.microsoft.com/office/infopath/2003/<br />dataFormSolution&#8221; xmlns:tns=&#8221;http://tempuri.org/&#8221; xmlns:my=&#8221;http://schemas.microsoft.com/office/infopath/2003/myXSD/<br />2007-09-05T13:53:48&#8243; xmlns:_xdns0=&#8221;http://schemas.microsoft.com/office/infopath/2003/<br />changeTracking&#8221; xmlns:soap=&#8221;http://schemas.xmlsoap.org/soap/envelope/&#8221; xmlns:xsi=&#8221;http://www.w3.org/2001/<br />XMLSchema-instance&#8221; xmlns:xsd=&#8221;http://www.w3.org/2001/XMLSchema&#8221; xmlns:diffgr=&#8221;urn:schemas-microsoft-com:<br />xml-diffgram-v1&#8243; xmlns:msdata=&#8221;urn:schemas-microsoft-com:xml-msdata&#8221;&gt;<br />
&nbsp;&lt;dfs:queryFields&gt;<br />
&nbsp;&nbsp;&lt;tns:SearchEmployee&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;tns:name&gt;&lt;/tns:name&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;tns:siteUrl&gt;http://portal.site.org/&lt;/tns:siteUrl&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;tns:listName&gt;Employees&lt;/tns:listName&gt;<br />
&nbsp;&nbsp;&lt;/tns:SearchEmployee&gt;<br />
&nbsp;&lt;/dfs:queryFields&gt;<br />
&nbsp;&lt;dfs:dataFields&gt;<br />
&nbsp;&nbsp;&lt;tns:SearchEmployeeResponse&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;tns:SearchEmployeeResult&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;NewDataSet&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Employees&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ID&gt;&lt;/ID&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Email&gt;&lt;/Email&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Accountname&gt;&lt;/Accountname&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Created&gt;&lt;/Created&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/Employees&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/NewDataSet&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;/tns:SearchEmployeeResult&gt;<br />
&nbsp;&nbsp;&lt;/tns:SearchEmployeeResponse&gt;<br />
&nbsp;&lt;/dfs:dataFields&gt;<br />
&lt;/dfs:myFields&gt;
</div>
<p><strong>Example code</strong> </p>
<div class="code">
private static void DemoCode()<br />
{<br />
&nbsp;//Start application and load the xsn file<br />
&nbsp;Application application = new ApplicationClass();<br />
&nbsp;XDocument document = application.XDocuments.NewFromSolution(&#8221;c:\test.xsn&#8221;);</p>
<p>&nbsp;//Get the XML Document Object Model of the webservice datasource<br />
&nbsp;//and load/convert the type IXMLDOMDocument as IXMLDOMDocument2<br />
&nbsp;IXMLDOMDocument2 docDom = document.DataObjects["WebService_SearchEmployee"].DOM as IXMLDOMDocument2;</p>
<p>&nbsp;//retrieve the namespace and set the SelectionNamespaces property<br />
&nbsp;string tsnNamespace = GetTNSNamespace(docDom);<br />
&nbsp;docDom.setProperty(&#8221;SelectionNamespaces&#8221;, tsnNamespace);</p>
<p>&nbsp;//Get the required node<br />
&nbsp;IXMLDOMNode nodeEmployeeName = docDom.selectSingleNode(&#8221;//tns:name&#8221;);<br />
}</p>
<p>private static string GetTNSNamespace(IXMLdocDomument2 xmlDoc)<br />
{<br />
&nbsp;return xmlDoc.documentElement.attributes.getNamedItem(&#8221;xmlns:tns&#8221;).xml;<br />
}
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://edwin.vriethoff.net/2007/10/30/infopath-ixmldomdocument-reference-to-undeclared-namespace-prefix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
