.NET Framework 3.5 and Infopath compatibility issue.

18 באפריל 2008

תגיות: , , ,
9 תגובות

Bottom line: Be very careful installing Microsoft .NET Framework 3.5 on a machine that works with custom InfoPath solutions.

One of my clients has a customized InfoPath 2007 (Not browser enabled) form, that recently went into production.
As it was exposed to a lot more users, each running a different environment configuration, we began to receive complains from people who can't use the form.

They were getting the following error message:
Infopath cannot submit the form 

Because we know the form DOES work on some computers and doesn't on others, it clearly wasn't a problem with the form itself.

We noticed that the computers how can't use the form has .NET Framework 3.5 installed. We also found some evidence in the web about this issue. I decided to prove the case:

  1. Have an InfoPath 2007 form, that includes some code in it.
  2. Start with a computer that has InfoPath 2007 installed with Programmability Support and .NET Framework 2.0. The form works as expected.
  3. Install .NET Framework 3.0. The form works as expected.
  4. Install .NET Framework 3.5. The form DOES NOT work, you get the error above.

I think that what causes problems is some kinds of XML handling methods via code.

It's not super intelligent, but it makes sense.. at least until we will get some official answers:
You'll need to reinstall .NET Framework 2.0. In order to do this, you'll have to uninstall all later versions – 3.0 and 3.5.

If you have any updates, please let me know.

Error Message text for search engines:
InfoPath cannot submit the form. TheOnSubmitRequest event handler did not work.
Microsoft.Office.InfoPath.MsxmlNAvigator.IsValidNode(MsxmlNode test)

הוסף תגובה
facebook linkedin twitter email

כתיבת תגובה

האימייל לא יוצג באתר. שדות החובה מסומנים *

9 תגובות

  1. Johnson22 באפריל 2008 ב 18:17

    To allow the form template's business logic to call this member when it is being debugged or previewed, you must set your form template's security level to Full Trust as described in the following procedure.

    Configuring a Managed Code Form Template that Requires Full Trust
    Set your form's security level to Full Trust
    If you are working in InfoPath, open the form template in design mode.

    If you are working in Visual Studio, open the InfoPath Form Template project, and then click the manifest.xsf [Design] tab to display the form designer.

    On the Tools menu, click Form Options.

    In the Category list, click Security and Trust.

    Under Security Level, clear Automatically determine security level.

    Select Full Trust, and then click OK.

  2. Kevin Brown17 ביוני 2008 ב 16:10

    Actually, if you set your form to use full trust it will only run on people's machines if you sign it with a certificate that they trust.

    Another workaround is to follow the steps at http://msdn.microsoft.com/en-us/library/aa943232.aspx under the section titled "Assigning FullTrust to Forms at a Specific URL or UNC".

    This just solved the problem for me, but note that after creating the new node, the "Microsoft .NET Framework 2.0 Configuration" tool renamed the node to "Copy of InfoPath Form Templates" for some reason, and I had to change the name back to "InfoPath Form Templates" before it would work.

    Hope that helps.

  3. Si Pham26 באוגוסט 2008 ב 10:05

    I think the original message by Itay is accurate. I have the same problem. When a form has managed code, rules, web service data connections, SharePoint data connections, etc. and Domain trust level, I see the same errors if a workstation (Windows XP SP3 or Windows Vista) has .NET 3.5 installed. A machine with .NET 3.0 or less does not have problem. Initially, I thought it has to do with administrative rights when a user logs on into a pc; but it is not the case. I logged on into my windows XP SP2 (with .NET framework 3.0) and I don't have admin rights to my pc, the form works fine with managed code and rules,etc. Another user who logs on into the machine without admin rights has problem running the form; and the difference is the .NET framework. I need to further find out whether or not it is related to MSXML version 6.0.

    FYI, when you are developing a .xsn template, you set it to Full trust; PRIOR to publishing the form to SharePoint as a content type template and not as browser-enabled form, you set security to Domain.

  4. Si Pham29 באוגוסט 2008 ב 11:35

    What we found is the form will need to be full trust and signed with a digital certificate and published to SharePoint Form library to solve the error.

    Since I can't obtain a certificate issued by a Central Authority, so I created my own certificate to sign it. When other users open the form from SharePoint, they see a prompt warning about risk opening the form. Click Open button, the form is opened and works fine.

    I think the issue is the security introduced and not the .NET 3.5.

    Another way is to create an installable template (as an MSI installation file) which is equivalent to deploying the form as a windows-based form. After installing the MSI file, you have a .xsn form template and a supporting file .exe under the installation folder. Your form, upon submit, is still posted into SharePoint because you specify how the submit is done.

  5. Ahmed12 ביוני 2012 ב 8:37

    Hi there to every body, it's my first go to see of this blog; this weblog contains amazing and really good data designed for visitors.

  6. icon portfolio18 בספטמבר 2012 ב 11:21

    I apologise, but, in my opinion, you are not right. I am assured. I suggest it to discuss.

    P.S. Please review Free Large Design Icons from martinking33

  7. icon design18 בספטמבר 2012 ב 12:00

    You are not right. Let's discuss it. Write to me in PM, we will talk.

    P.S. Please review Brilliant Menu Icons from designesticons

  8. icon designs18 בספטמבר 2012 ב 12:48

    Absolutely with you it agree. In it something is also I think, what is it good idea.

    P.S. Please review Blue Icon Library from popavidi3

  9. icon files18 בספטמבר 2012 ב 18:18

    Thanks for the help in this question, I too consider, that the easier, the better …

    P.S. Please review 16×16 Free Toolbar Icons from romavidi2