Some time ago an InfoPath form was build in InfoPath 2010 with two Web Services in its code behind. In order to edit the form with InfoPath 2013, a fresh project was made and the necessary components were moved from the existing project to the new one. When testing the form, everything worked fine. However, after closing and opening the form, when trying to open the Code Editor, the following message was returned: "The system cannot find the path specified."
After some investigating I was able to reproduce the error on two distinct machines as follows:
- Create a new InfoPath 2010 Filler Form
- Create a Code Project with target version: InfoPath 2010
Note that if you now save the form, then close and open it again, everything is still fine. - Add a Web Reference
I added <SharePoint 2010>/_vti_bin/lists.asmx - Now save and close the project, save and close the form, open the form and open the Code Editor
- Observe the error message :'(
Note that you can still open (and fix) the project with VS2012. You will have to delete both the web service AND the Web References folder to be able to open the project in InfoPath again.
If you are able to reproduce this problem, please leave a comment. If you have a solution, even better.
- Edited by Ruud Drummen Tuesday, May 28, 2013 10:04 AM