Hi,
I have tried all the steps illustrated in this blog. I am using web based browser forms and publishing on SharePoint 2007:
http://blogs.msdn.com/b/infopath/archive/2007/02/28/using-the-contact-selector-control.aspx?PageIndex=1#comments
I have tried it in InfoPath 2007. I started from scratch and have nothing else but the contact selector as the only data source in my template.
When I try to preview the form with the ContactSelector in the View I get.
"InfoPath cannot open the selected form" error message. But when I remove it from the view and preview it again, I get no no error message.
Also I believe the ContactSelector control is meant to have a text box with a "To..." button to the left. But in my case theres just a small square with a red dot inside of it (looks like a place holder for an image)
I have also tried this in InfoPath Designer 2010 (but saved as 2007 template). Here I get no error message when I preview it but again the contol is just an image place holder. Then if I publish it to SharePoint server and opening a new form, I get this error:
Object reference not set to an instance of an object. at Microsoft.Office.InfoPath.Server.Controls.ContactPicker.RenderClientViewDataLeafContent(XPathNavigator context, IRenderContext renderContext, ControlViewData controlViewData, ScriptWriter writer)
at Microsoft.Office.InfoPath.Server.Controls.LeafControl.RenderClientViewDataContent(XPathNavigator context, IRenderContext renderContext, ScriptWriter writer)
at Microsoft.Office.InfoPath.Server.Controls.BaseControl.RenderClientViewData(XPathNavigator context, IRenderContext renderContext, ScriptWriter writer)
at Microsoft.Office.InfoPath.Server.Controls.ContainerControl.RenderClientViewDataContent(XPathNavigator context, IRenderContext renderContext, ScriptWriter writer)
at Microsoft.Office.InfoPath.Server.Controls.BaseControl.RenderClientViewData(XPathNavigator context, IRenderContext renderContext, ScriptWriter writer)
at Microsoft.Office.InfoPath.Server.Controls.CollectionControl.RenderClientViewDataContent(XPathNavigator context, IRenderContext renderContext, ScriptWriter writer)
at Microsoft.Office.InfoPath.Server.Controls.BaseControl.RenderClientViewData(XPathNavigator context, IRenderContext renderContext, ScriptWriter writer)
at Microsoft.Office.InfoPath.Server.DocumentLifetime.Document.RenderResult(TextWriter writer, String viewState)
at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.RenderView(HtmlTextWriter writer, String viewState)
at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.RenderInline(HtmlTextWriter writer, String viewState)
at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.RenderForm(HtmlTextWriter writer)
at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at Microsoft.Office.InfoPath.Server.Controls.XmlFormView.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Please can you tell me where I have gone wrong? Spent so much time on this, would be grateful for some help.
Many thanks!