locked
infopath 2007 with codebehind - there is no web named "/xyz" and dataadpter exception RRS feed

  • Question

  • We have a infopath 2007 form with code behind. Recently digital certifcate for the infopath form has expired and we tried to attach a new digital certificate. Everything seems to be smooth from publishing form to the activating form in the central admin. Now when we try to open the form from a form library in sharepoint 2007, we are getting below exception

    There is no Web named "/sites/capreqtest".

    System.IO.FileNotFoundException: There is no Web named "/sites/capreqtest".

    at Microsoft.SharePoint.Library.SPRequestInternalClass.OpenWeb(String bstrUrl, String& pbstrServerRelativeUrl, String& pbstrTitle, String& pbstrDescription, Guid& pguidID, String& pbstrRequestAccessEmail, UInt32&...

    Further digging in to the sharepoint logs give the following details,

    08/15/2012 13:32:48.26 w3wp.exe (0x0D6C)                                       0x0518  Forms Server                     Forms Services Data Objects                   7tfk        Medium               Data adapter failed during OnLoad: Cannot openfile:///C:/SharePoint/Projects/workflow/FQT/CapitalProjectRequest-%20New/New%20Folder/Context.xml: XML file connections to UNC or local paths are not allowed.          99dcd454-ea66-4b25-84fc-608903972774

    08/15/2012 13:32:48.26 w3wp.exe (0x0D6C)                                       0x0518  Forms Server                     Forms Services Runtime - Data C   82fy       Warning               The following query failed: Context (User: FIRSTQ\carln, Form Name: capitalrequest31, IP: , Request:http://kpsps745/_layouts/FormServer.aspx?XsnLocation=http://kpsps745/sites/capreqtest/FormServerTemplates/capitalrequest31.xsn&SaveLocation=http://kpsps745/sites/capreqtest/Requests&Source=http://kpsps745/sites/capreqtest/Requests/Forms/AllItems.aspx&DefaultItemOpen=1, Form ID: urn:schemas-microsoft-com:office:infopath:capitalrequest31:-myXSD-2010-03-25T13-01-29, Type: DataAdapterException, Exception Message: Cannot openfile:///C:/SharePoint/Projects/workflow/FQT/CapitalProjectRequest-%20New/New%20Folder/Context.xml: XML file connections to UNC or local paths are not allowed.)        99dcd454-ea66-4b25-84fc-608903972774

    08/15/2012 13:32:48.27 w3wp.exe (0x0D6C)                                       0x0518  Windows SharePoint Services   General                                       8kh7      High       There is no Web named "/capreqtest".

    08/15/2012 13:32:48.27 w3wp.exe (0x0D6C)                                       0x0518  Windows SharePoint Services   General                                       8e2r       Medium               Possible mismatch between the reported error with code = 0x81070504 and message: "There is no Web named "/capreqtest"." and the returned error with code 0x80070002.             

    Any help or directions will be greatly appriciated


    ganesh

    Thursday, August 16, 2012 2:37 AM

All replies

  • Hi,

    Are you using a contact selector in your form?

    The error talk about a file called "Context.xml" which is usually used with the people picker field. Maybe in the file, the URL of the SharePoint site is not correct...


    Visit my blog : http://rmatayron.blogspot.com/

    Wednesday, August 22, 2012 8:26 AM