Hi,.
I have a InfoPath 2010 form which was published to SharePoint 2010. I migrated the content db to SQL Server 2012 and I have converted the Sharepoint 2010 (windows based) to the SharePoint 2013 claims based site. I have not fully upgraded the site to
2013 version (Version upgrade to SP 2013) is not done..
In the InfoPath 2010 form, which is available in SP 2013. I have a button and on click of it, i have the below code:
XPathNavigator domNav = MainDataSource.CreateNavigator();
XPathNavigator fldUserurl = domNav.SelectSingleNode("/my:myFields/my:TaskUrl", this.NamespaceManager);
if (!string.IsNullOrEmpty(fldUserurl.Value))
{
string urlToDecode = HttpUtility.UrlDecode(fldUserurl .Value);
HttpContext.Current.Response.Write("<script type='text/javascript'>window.open('" + urlToDecode + "','_self','left=20,top=20,width=500,height=500,toolbar=1,resizable=0');</script>");
HttpContext.Current.Response.Flush();
HttpContext.Current.Response.End();
}
The above code works fine in SharePoint 2010, however after moving the Site to SP 2013 Claims mode, I am getting the error as
"var g_objCurrentFormData_Error = [[[12,"There has been an error while processing the form.","","","guid"]],[],0,"","",1033,"","",["0","","","","","",0,0,"",0,false],"","0",false,"",0,"","http:\u002f\u002ftest-t1.com\u002fs\u002fTestApplication","ltr","http:\u002f\u002ftest-t1.com\u002fs\u002fTestApplication",6.35202885373882E+17"
In the SP Logs, i found the below:
Unhandled exception processing request for PostbackPage Microsoft.Office.InfoPath.Server.Util.InfoPathFatalException: Exception of type 'Microsoft.Office.InfoPath.Server.Util.InfoPathFatalException' was thrown.
at Microsoft.Office.InfoPath.Server.Util.GlobalStorage.get_CurrentFormId()
at Microsoft.Office.InfoPath.Server.Util.GlobalStorage.get_CurrentContext()
How to fix this?
Thanks