<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Please help!  Can't get simple form (msdn example) to work</title><link>https://www.infopathdev.com:443/forums/thread/68881.aspx</link><pubDate>Mon, 01 Aug 2011 22:39:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68881</guid><dc:creator>Josee Sevigny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68881.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=68881</wfw:commentRss><description>&lt;p&gt;After applying&amp;nbsp;Office SP2, works like a charm. Thanks for the input.&lt;/p&gt;</description></item><item><title>Re: Please help!  Can't get simple form (msdn example) to work</title><link>https://www.infopathdev.com:443/forums/thread/68879.aspx</link><pubDate>Mon, 01 Aug 2011 22:26:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68879</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68879.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=68879</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;Are the machines that are failing updated w/ the latest Windows updates? &lt;a href="http://www.infopathdev.com/forums/t/7535.aspx"&gt;This thread&lt;/a&gt; suggests .NET 3.5 as the issue, but I&amp;#39;m pretty sure that&amp;#39;s been patched by now.... your instinct that it is a machine issue is correct, I think.&lt;/p&gt;</description></item><item><title>Re: Please help!  Can't get simple form (msdn example) to work</title><link>https://www.infopathdev.com:443/forums/thread/68877.aspx</link><pubDate>Mon, 01 Aug 2011 21:49:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68877</guid><dc:creator>Josee Sevigny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68877.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=68877</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m starting to get the same error while in Domain trust:&lt;/p&gt;
&lt;p&gt;&lt;font color="#006600" face="courier new,courier"&gt;System.Security.SecurityException&lt;br /&gt;Request failed.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.MsxmlNavigator.IsValidNode(MsxmlNode test)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.MsxmlNavigator.MoveToFirstChild()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.XPathDescendantIterator.MoveNext()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.DescendantQuery.Advance()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.CacheChildrenQuery.GetNextInput()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.CacheChildrenQuery.Advance()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.Query.MoveNext()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.Query.get_Count()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.XPathSelectionIterator.get_Count()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Leave_Request.FormCode.isApprover_attr_Changed(Object sender, XmlEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.XmlEventHost.GenericProxy(Object genericDelegate, DataDOMEvent dataDOMEvent, InfoPathEvents type)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.XmlEventHost.ChangedProxy(DataDOMEvent dataDOMEvent)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._DataDOMEventSink_SinkHelper.OnAfterChange(DataDOMEvent pDataDOMEvent)&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;This form has worked well form the past 8 months but suddenly started to fail when my client upgraded some of his users to Windows 7 Professional 64-bit. All users still on XP are working fine. Both types of uses are using InfoPath 2007 and the form loads in the client (filler form).&lt;/p&gt;
&lt;p&gt;On the other hand, I&amp;#39;m accessing the form through a direct connection to their network, using Windows 7 Enterprise 64-bit and I&amp;#39;m not getting the error. I&amp;#39;m using IP 2010 though but somehow don&amp;#39;t think it&amp;#39;s related.&lt;/p&gt;
&lt;p&gt;Any ideas would help as I don&amp;#39;t think there&amp;#39;s actually anything wrong with the code.&lt;/p&gt;</description></item><item><title>Re: Please help!  Can't get simple form (msdn example) to work</title><link>https://www.infopathdev.com:443/forums/thread/68763.aspx</link><pubDate>Tue, 26 Jul 2011 23:00:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68763</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68763.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=68763</wfw:commentRss><description>&lt;p&gt;I sent you an email asking you to email me your code, since I can&amp;#39;t read it in a big block like this (sometimes it can be hard to get it to copy &amp;amp; paste nicely). You should also try running your project in debug to see the lines you are failing on. &lt;a href="http://www.infopathdev.com/blogs/hilary/archive/2009/09/27/debug-managed-code-in-vsta-for-the-accidental-programmer.aspx"&gt;Here&amp;#39;s&lt;/a&gt; a blog post on how to do that if you need help, okay?&lt;/p&gt;</description></item><item><title>Re: Please help!  Can't get simple form (msdn example) to work</title><link>https://www.infopathdev.com:443/forums/thread/68761.aspx</link><pubDate>Tue, 26 Jul 2011 22:42:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68761</guid><dc:creator>kfosmoen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68761.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=68761</wfw:commentRss><description>Thank you 

The code for the checkbox is:


Try
	&amp;#39; Get a reference to the form&amp;#39;s XmlNamespaceManager object.
	Dim ns As XmlNamespaceManager = Me.NamespaceManager

	&amp;#39; Create an XPathNavigator object for the form&amp;#39;s main data
	&amp;#39; source.
	Dim xnDoc As XPathNavigator = Me.MainDataSource.CreateNavigator()

	&amp;#39; If the check box is set to true, add a new row so the user 
	&amp;#39; can add a new contact.
	If e.Site.Value = &amp;quot;true&amp;quot; Then
		Dim xnTable As XPathNavigator = xnDoc.SelectSingleNode(&amp;quot;/my:myFields/my:gpContacts&amp;quot;, ns)
		xnTable.AppendChild(&amp;quot;&amp;quot;)
	Else
		&amp;#39; If the user clears the check box, remove the added row.
		ClearEnteredValues(xnDoc)
	End If
Catch ex As Exception
	MessageBox.Show(&amp;quot;The following error occurred: &amp;quot; + ex.Message)
	Throw
End Try


This is the code for the Cleared Event (for the checkbox)

Private Sub ClearEnteredValues(xnDoc As XPathNavigator)
	Try
		&amp;#39; Get a reference to the form&amp;#39;s XmlNamespaceManager object.
		Dim ns As XmlNamespaceManager = Me.NamespaceManager

		&amp;#39; Create an XPathNodeIterator object to get a count of the 
		&amp;#39; rows in the repeating table used to add new Contacts.
		Dim xi As XPathNodeIterator = xnDoc.[Select](&amp;quot;/my:myFields/my:gpContacts/my:gpContact&amp;quot;, ns)
		Dim rowCount As Integer = xi.Count

		If rowCount &amp;gt; 0 Then
			&amp;#39; Get the first and last rows (nodes) in the 
			&amp;#39; repeating table.
			Dim firstNode As XPathNavigator = xnDoc.SelectSingleNode(&amp;quot;/my:myFields/my:gpContacts/my:gpContact[1]&amp;quot;, ns)
			Dim lastNode As XPathNavigator = xnDoc.SelectSingleNode(&amp;quot;/my:myFields/my:gpContacts/my:gpContact[&amp;quot; &amp;amp; rowCount &amp;amp; &amp;quot;]&amp;quot;, ns)

			&amp;#39; Delete the existing nodes using the DeleteRange method.
			firstNode.DeleteRange(lastNode)
		End If

		&amp;#39; Clear the check box. 
		xnDoc.SelectSingleNode(&amp;quot;/my:myFields/my:AddContacts&amp;quot;, ns).SetValue(&amp;quot;false&amp;quot;)

	Catch ex As Exception
		MessageBox.Show(&amp;quot;The following error occurred: &amp;quot; + ex.Message)
		Throw
	End Try
End Sub


This is the code for the Submit button

Try
	&amp;#39; Get a reference to the form&amp;#39;s XmlNamespaceManager object.
	Dim ns As XmlNamespaceManager = Me.NamespaceManager

	&amp;#39; Create a DataSource object for the MyContacts 
	&amp;#39; list data connection.
	Dim dsContacts As DataSource = Me.DataSources(&amp;quot;MyContacts&amp;quot;)

	&amp;#39; Create an XPathNavigator object for the MyContacts 
	&amp;#39; data connection.
	Dim xnContacts As XPathNavigator = dsContacts.CreateNavigator()

	&amp;#39; Create an XPathNodeIterator object for the MyContacts 
	&amp;#39; data connection to enumerate the existing contacts.
	Dim xiContacts As XPathNodeIterator = xnContacts.[Select](&amp;quot;/dfs:myFields/dfs:dataFields/dfs:MyContacts&amp;quot;, ns)

	&amp;#39; Create a DataSource object for the Add List Item Template
	&amp;#39; data connection.
	Dim dsCAML As DataSource = Me.DataSources(&amp;quot;Add List Item Template&amp;quot;)

	&amp;#39; Create an XPathNavigator object for the 
	&amp;#39; Add List Item Template data connection.
	&amp;#39; This is used to set the values in the CAML XML file.
	Dim xnCAML As XPathNavigator = dsCAML.CreateNavigator()

	&amp;#39; Create a WebServiceConnection object for submitting 
	&amp;#39; to the Lists Web service data connection.
	Dim wsSubmit As WebServiceConnection = DirectCast(Me.DataConnections(&amp;quot;Web Service Submit&amp;quot;), WebServiceConnection)

	&amp;#39; Create an XPathNavigator object for the form&amp;#39;s 
	&amp;#39; main data source.
	Dim xnDoc As XPathNavigator = Me.MainDataSource.CreateNavigator()

	&amp;#39; Create an XPathNodeIterator object for the new contacts.
	Dim xiNewContacts As XPathNodeIterator = xnDoc.[Select](&amp;quot;/my:myFields/my:gpContacts/my:gpContact&amp;quot;, ns)

	&amp;#39; See if any new contacts have been added.
	If xiNewContacts.Count &amp;gt; 0 Then
		While xiNewContacts.MoveNext()
			&amp;#39; Set the values in the Add List Item Template 
			&amp;#39; XML file using the values in the new row.
			xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Title&amp;#39;]&amp;quot;, ns).SetValue(xiNewContacts.Current.SelectSingleNode(&amp;quot;my:Title&amp;quot;, ns).Value)
			xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;FirstName&amp;#39;]&amp;quot;, ns).SetValue(xiNewContacts.Current.SelectSingleNode(&amp;quot;my:FirstName&amp;quot;, ns).Value)
			xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;LastName&amp;#39;]&amp;quot;, ns).SetValue(xiNewContacts.Current.SelectSingleNode(&amp;quot;my:LastName&amp;quot;, ns).Value)
			xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Phone&amp;#39;]&amp;quot;, ns).SetValue(xiNewContacts.Current.SelectSingleNode(&amp;quot;my:Phone&amp;quot;, ns).Value)
			xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Email&amp;#39;]&amp;quot;, ns).SetValue(xiNewContacts.Current.SelectSingleNode(&amp;quot;my:Email&amp;quot;, ns).Value)

			&amp;#39; Set the values of the Changed and Delete columns to
			&amp;#39; &amp;quot;FALSE&amp;quot;.
			xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Changed&amp;#39;]&amp;quot;, ns).SetValue(&amp;quot;FALSE&amp;quot;)
			xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Delete&amp;#39;]&amp;quot;, ns).SetValue(&amp;quot;FALSE&amp;quot;)

			&amp;#39; Set the value of Cmd attribute to &amp;quot;New&amp;quot;.
			xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/@Cmd&amp;quot;, ns).SetValue(&amp;quot;New&amp;quot;)

			&amp;#39; Submit the new row.
			wsSubmit.Execute()
		End While
	Else
		&amp;#39; Enumerate the existing contacts and see if 
		&amp;#39; any items have been changed or set to be deleted.
		While xiContacts.MoveNext()
			If xiContacts.Current.SelectSingleNode(&amp;quot;@Changed&amp;quot;, ns).Value = &amp;quot;true&amp;quot; Then
				&amp;#39; Set the values in the Add List Item Template XML file
				&amp;#39; to the values in the updated row.
				xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Title&amp;#39;]&amp;quot;, ns).SetValue(xiContacts.Current.SelectSingleNode(&amp;quot;@Title&amp;quot;).Value)
				xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;FirstName&amp;#39;]&amp;quot;, ns).SetValue(xiContacts.Current.SelectSingleNode(&amp;quot;@FirstName&amp;quot;).Value)
				xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;LastName&amp;#39;]&amp;quot;, ns).SetValue(xiContacts.Current.SelectSingleNode(&amp;quot;@LastName&amp;quot;).Value)
				xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Phone&amp;#39;]&amp;quot;, ns).SetValue(xiContacts.Current.SelectSingleNode(&amp;quot;@Phone&amp;quot;).Value)
				xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Email&amp;#39;]&amp;quot;, ns).SetValue(xiContacts.Current.SelectSingleNode(&amp;quot;@Email&amp;quot;).Value)
				xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;Changed&amp;#39;]&amp;quot;, ns).SetValue(&amp;quot;false&amp;quot;)
				xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;ID&amp;#39;]&amp;quot;, ns).SetValue(xiContacts.Current.SelectSingleNode(&amp;quot;@ID&amp;quot;).Value)

				&amp;#39; Set the value of the Cmd attribute to &amp;quot;Update&amp;quot;.
				xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/@Cmd&amp;quot;, ns).SetValue(&amp;quot;Update&amp;quot;)

				&amp;#39; Submit the updates for the current row.
				wsSubmit.Execute()
			End If
			&amp;#39; If the Delete field is set to &amp;quot;true&amp;quot; for the current
			&amp;#39; row, in the Batch fragment set the ID for the row
			&amp;#39; and set the Cmd attribute to &amp;quot;Delete&amp;quot;.
			If xiContacts.Current.SelectSingleNode(&amp;quot;@Delete&amp;quot;, ns).Value = &amp;quot;true&amp;quot; Then
				xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/Field[@Name=&amp;#39;ID&amp;#39;]&amp;quot;, ns).SetValue(xiContacts.Current.SelectSingleNode(&amp;quot;@ID&amp;quot;).Value)
				xnCAML.SelectSingleNode(&amp;quot;/Batch/Method/@Cmd&amp;quot;, ns).SetValue(&amp;quot;Delete&amp;quot;)

				&amp;#39; Submit the delete operation for the current row.
				wsSubmit.Execute()
			End If
		End While
	End If

	&amp;#39; Create a DataConnection object for the MyContacts 
	&amp;#39; data connection.
	Dim dcContacts As DataConnection = Me.DataConnections(&amp;quot;MyContacts&amp;quot;)

	&amp;#39; Execute the data connection to refresh the list of 
	&amp;#39; contacts to reflect any additions, updates, or deletions.
	dcContacts.Execute()

	&amp;#39; Clear the values in the repeating table for 
	&amp;#39; adding new contracts.
	ClearEnteredValues(xnDoc)

Catch ex As Exception
	MessageBox.Show(&amp;quot;The following error occurred: &amp;quot; + ex.Message)
	Throw
End Try


Yes, domain.  Thanks so much</description></item><item><title>Re: Please help!  Can't get simple form (msdn example) to work</title><link>https://www.infopathdev.com:443/forums/thread/68756.aspx</link><pubDate>Tue, 26 Jul 2011 22:26:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68756</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68756.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=68756</wfw:commentRss><description>&lt;p&gt;So, your instinct to change to full trust was correct, since you were getting a security exception. But I don&amp;#39;t think the code from this sample will require full trust on publication - does your machine belong to a domain? Sometimes that causes issues with domain trust in preview (if you don&amp;#39;t belong to a domain).&lt;/p&gt;
&lt;p&gt;What&amp;#39;s the code on the field bound to your checkbox? What&amp;#39;s the code on your submit button? I know, you&amp;#39;ve followed a sample, but didn&amp;#39;t quickly see the event code for the checkbox.&lt;/p&gt;
&lt;p&gt;The first error (after the security error) is most likely because a field needs to have the nil attribute added or removed. The last error - could be anything. That&amp;#39;s why it would help to see your code.&lt;/p&gt;</description></item><item><title>Please help!  Can't get simple form (msdn example) to work</title><link>https://www.infopathdev.com:443/forums/thread/68720.aspx</link><pubDate>Tue, 26 Jul 2011 14:28:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68720</guid><dc:creator>kfosmoen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68720.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=68720</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am trying to get this example to work first, so I can create a production form.&amp;nbsp; I followed these MSDN instructions to a T.&amp;nbsp; http://msdn.microsoft.com/en-us/library/cc162745%28v=office.12%29.aspx#ip2007SubmitDataSPList_AddingFieldsandControlsforSubmittingNewItemstotheList&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;First time, I got the following errors on the Checkbox when checking it:&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;System.Security.SecurityException&lt;br /&gt;Request failed.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.MsxmlNavigator.IsValidNode(MsxmlNode test)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.MsxmlNavigator.MoveToFirstChild()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.XPathChildIterator.MoveNext()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.ChildrenQuery.Advance()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.ChildrenQuery.Advance()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.XPathSelectionIterator.MoveNext()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XPath.XPathNavigator.SelectSingleNode(XPathExpression expression)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XPath.XPathNavigator.SelectSingleNode(String xpath, IXmlNamespaceResolver resolver)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Template1.FormCode.AddItem_Changed(Object sender, XmlEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.XmlEventHost.GenericProxy(Object genericDelegate, DataDOMEvent dataDOMEvent, InfoPathEvents type)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.XmlEventHost.ChangedProxy(DataDOMEvent dataDOMEvent)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._DataDOMEventSink_SinkHelper.OnAfterChange(DataDOMEvent pDataDOMEvent)&lt;br /&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So, I changed the Security to Full Trust, then get the following errors:&lt;/p&gt;&lt;p&gt;When I check the Add Contacts checkbox:&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;p&gt;System.InvalidOperationException&lt;br /&gt;Schema validation found non-data type errors.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.MsoOffice.InfoPath.MsxmlInterop.MsxmlDocument.ThrowExceptionFromMsxmlInteropError(MsxmlInteropError eError)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.MsoOffice.InfoPath.MsxmlInterop.MsxmlDocument.ThrowExceptionFromHresult(Int32 hrError)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.MsoOffice.InfoPath.MsxmlInterop.MsxmlNodeImpl.AppendChild(String strXml)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.MsxmlWriter.Close()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlWellFormedWriter.Close()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XPath.XPathNavigator.AppendChild(XmlReader newChild)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XPath.XPathNavigator.AppendChild(String newChild)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Template5.FormCode.AddContacts_Changed(Object sender, XmlEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.XmlEventHost.GenericProxy(Object genericDelegate, DataDOMEvent dataDOMEvent, InfoPathEvents type)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.XmlEventHost.ChangedProxy(DataDOMEvent dataDOMEvent)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._DataDOME &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;And after pressing OK on the error above, I type in a new contact and press the Submit button and get the following error:&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&amp;nbsp;System.NullReferenceException&lt;br /&gt;Object reference not set to an instance of an object.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Template5.FormCode.btnSendChanges_Clicked(Object sender, ClickedEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;br /&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>