.NET Framework 3.5 and Infopath compatibility issue.
Posted
Friday, April 18, 2008 10:02 PM
by
Itay Shakury
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:
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:
- Have an InfoPath 2007 form, that includes some code in it.
- Start with a computer that has InfoPath 2007 installed with Programmability Support and .NET Framework 2.0. The form works as expected.
- Install .NET Framework 3.0. The form works as expected.
- 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.
Solution:
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)