Request Failed Infopath Form - InfoPath Dev
in

InfoPath Dev

Now you can find InfoPathDev on YouTube and Twitter!

Request Failed Infopath Form

Last post 05-08-2009 12:41 PM by hamfong. 13 replies.
Page 1 of 1 (14 items)
Sort Posts: Previous Next
  • 03-31-2008 10:49 AM

    Request Failed Infopath Form

    I have several infopath forms that uses Web Services-Upadate List Items 
    Service top submit data to several sharepoint lists. Until yesterday all of 
    those forms were working without problem. I am thinking that one update 
    affect infopath and i started to get this error.
    
    Everytime when i try to submit data i get this error.
    ''''''''''''''''''''''''''''''''''''''''''''
    Request failed.
       at Microsoft.Office.InfoPath.MsxmlNavigator.IsValidNode(MsxmlNode test)
       at Microsoft.Office.InfoPath.MsxmlNavigator.MoveToFirstChild()
       at MS.Internal.Xml.XPath.XPathChildIterator.MoveNext()
       at MS.Internal.Xml.XPath.ChildrenQuery.Advance()
       at MS.Internal.Xml.XPath.ChildrenQuery.Advance()
       at MS.Internal.Xml.XPath.XPathSelectionIterator.MoveNext()
       at System.Xml.XPath.XPathNavigator.SelectSingleNode(XPathExpression 
    expression)
       at System.Xml.XPath.XPathNavigator.SelectSingleNode(String xpath, 
    IXmlNamespaceResolver resolver)
       at ProjectTimeSheetSubmitForm.FormCode.CTRL29_5_Clicked(Object sender, 
    ClickedEventArgs e)
       at 
    Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)
       at 
    Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)
    ''''''''''''''''''''''''''''''''''''''''''''''
    
    When i try to sumbit data in debugging mode of infopath;
    It gives the error for this code line:
    '''''''''''''''''''''''''''''''''''''''
                confirm = 
    MessageBox.Show(root.SelectSingleNode("my:myFields/my:eName", 
    NamespaceManager).Value.ToString() + ": The form will be sumbitted to the 
    sharepoint, are you sure?", "Please confirm...", MessageBoxButtons.YesNo);
    ''''''''''''''''''''''''''''''''''''''''
    
    And the actual error is:
    ''''''''''''''''''''''''''''''''''''''''''''''''''
    System.Security.SecurityException was unhandled by user code
      Message="Request failed."
      Source="Microsoft.Office.InfoPath.Client.Internal.Host"
      StackTrace:
           at Microsoft.Office.InfoPath.MsxmlNavigator.IsValidNode(MsxmlNode test)
           at Microsoft.Office.InfoPath.MsxmlNavigator.MoveToFirstChild()
           at MS.Internal.Xml.XPath.XPathChildIterator.MoveNext()
           at MS.Internal.Xml.XPath.ChildrenQuery.Advance()
           at MS.Internal.Xml.XPath.ChildrenQuery.Advance()
           at MS.Internal.Xml.XPath.XPathSelectionIterator.MoveNext()
           at System.Xml.XPath.XPathNavigator.SelectSingleNode(XPathExpression 
    expression)
           at System.Xml.XPath.XPathNavigator.SelectSingleNode(String xpath, 
    IXmlNamespaceResolver resolver)
           at ProjectTimeSheetSubmitForm.FormCode.CTRL29_5_Clicked(Object 
    sender, ClickedEventArgs e)
           at 
    Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)
           at 
    Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)
    '''''''''''''''''''''''''''''''''''''''''''''''''''''
    
     As i told there is nothing wrong with the code, because these forms worked 
    perfectly for several months and suddenly something happened and they stop 
    working. I didnt change a thing. i do not understand. i need the fix this 
    forms asap. Any suggestions.
  • 03-31-2008 03:50 PM In reply to

    Re: Request Failed Infopath Form

    The failure is coming from: root.SelectSingleNode("my:myFields/my:eName", NamespaceManager).Value.ToString()

    The failure is that the node is invalid. Are you sure that it is "eName" and not just "Name"?

    Otherwise, I suggest looking at an XML dump of the form causing the issue to see if the field is actually there.

    If the field is there, then make sure NamespaceManager handles the "my" namespace for "root" (which ti should if "root" is the main data source).

  • 04-01-2008 10:09 AM In reply to

    Re: Request Failed Infopath Form

    Ok, in order to see what is going on i just create a new form with only one text box named tbox and one button.

    The code for the button is below;

    XPathNavigator eray = MainDataSource.CreateNavigator();

    string asd;

    asd = eray.SelectSingleNode("my:myFields/my:tbox", NamespaceManager).Value.ToString();

    MessageBox.Show(asd);

     

    Ok, it should simply show the letters or numbers which i entered the text box. However i get exactly same problem. I remember now this happened before to me after i installed visual studio 2008 express on my computer and i was suspecting to .NET 3.5. Even if i uninstall .net 3.5 , it did not solve the problem and i reformat the machine and it went back to normal. I just figure out that last week all the computers installed .net 3.5 from mic update. I already tried to uninstall .net 3.5 from one computer but i have same problem. So i do not know it is a bug or something. Any ideas?

  • 04-01-2008 10:20 AM In reply to

    Re: Request Failed Infopath Form

    Ok it is a definitely a .net 3.5 issue because i just use a laptop computer which has no .net 3.5 but has 3.0 and all my forms work fine. Uninstalling .net 3.5 does not solve that problem. Anu suggestions or seen anything like that before?

  • 04-01-2008 01:47 PM In reply to

    Re: Request Failed Infopath Form

    I have not seen such an issue personally. There could be some other conflict involved.

    To revert back without needed to reformat, use System Restore (a feature of Windows Vista and XP).

  • 04-03-2008 07:41 AM In reply to

    Re: Request Failed Infopath Form

    ok i tried to uninstall .net 3.5 and i also tried to system restore both of them dont work. i really do not know what to do. i just cant reformat 60 computers. right now there is only one computer in the office which is able to run the forms :(

  • 04-03-2008 10:24 AM In reply to

    Re: Request Failed Infopath Form

    System restore should have done it for you (provided you have a restore point before .NET 3.5 was installed). You cannot just accept the default restore point (which was the last one created). You must choose a different one--go through the list of available ones and locate one that was BEFORE .NET 3.5 was installed.

    Assuming you already did this, and didn't just accept the default (previous) restore point, then I don't personally know of another option--though you should definitely ask around before attempting to rebuild your computers. You might also want to contact Microsoft Support directly to see if this is a known limitation or whether there's just some setting you can change or something.

  • 04-08-2009 07:42 PM In reply to

    Re: Request Failed Infopath Form

    hi,

    I am having the same problem, while running the code given below

                string xpath = "/my:myFields/my:group8/my:Name";
                XPathNavigator field = MainDataSource.CreateNavigator().SelectSingleNode(xpath, NamespaceManager);
                field.SetValue("Ram");

    I get the following error

    Request failed.
       at Microsoft.Office.InfoPath.MsxmlNavigator.IsValidNode(MsxmlNode test)

    i have checked the name in the xml file also. everything is correct.

    Can any one help to solve this issue

     

    Thanks,

  • 04-08-2009 08:10 PM In reply to

    Re: Request Failed Infopath Form

    Could you tell us what version of the .NET framework you have installed?

    Jimmy Rishe / Software Developer
    Qdabra Software
  • 04-08-2009 08:27 PM In reply to

    Re: Request Failed Infopath Form

    .Net Framework 3.5 SP1

  • 04-08-2009 11:01 PM In reply to

    Re: Request Failed Infopath Form

    As the posts above yours indicate, this is an issue when using InfoPath with .NET 3.5 and the only known workarounds at the moment are to downgrade to .NET 2.0 or make the form full trust.

    Jimmy Rishe / Software Developer
    Qdabra Software
  • 05-07-2009 09:00 AM In reply to

    Re: Request Failed Infopath Form

    Hi,

    Please excuse my stupid question.

    How would I "make the form full trust"? 

    What are the implications of this?

    Thanks in advance.

    HF

    Filed under:
  • 05-07-2009 05:35 PM In reply to

    Re: Request Failed Infopath Form

    Open the form in the Infopath Designer and choose Tools->Form Options and click Security. Change from default setting (Domain Trust) to Full Trust.You'll have to provide a digital certificate (or create an MSI). The implication is that deployment costs will be greater since you'll have to tell people to accept your digital certificate (or install the MSI) and the security will be less - the form can do anything (which isn't a big deal if you're the sole author of the form). In general, Full Trust is a bad idea. 99% of all forms do not need to be full trust. Too bad about the Microsoft .NET bug. We'll send them an e-mail complaining again.

  • 05-08-2009 12:41 PM In reply to

    Re: Request Failed Infopath Form

     

    Hi Patrick,

    Thanks for your great response.

    I've been playing with Wong-A-Ton's code "How to loop through items in a repeating table...".

    I tried it on a box with .net framework 3.5 and infopath;  got the "Request failed" security error. 

    I stuck the code into a visual studio project.  At first got another error ("Microsoft Office InfoPath does not recognize some or all of the

    command line options.").  Unbelievable! 

    I had to remove sp1 for Office 2007 from the box and finally got the code working.

    Hoops galore!

    (sorry about the rant)

Page 1 of 1 (14 items)
Copyright © 2003-2010 Qdabra Software. All rights reserved.
View our Terms of Use.