Problem
You’re developing SharePoint workflows in Visual Studio 2005 or Visual Studio 2008 and then all of a sudden you get these errors when you attempt to compile your solution. I’ve noticed that this happens most often when you rename on of your forms and/or you rename the xsd myschema.xsd /c file you’ve created.
- Could not find schema information for the element http://schemas.microsoft.com/sharepoint/:StatusPageUrl
- Could not find schema information for the element http://schemas.microsoft.com/sharepoint/:Association_FormURN
- Could not find schema information for the element ‘http://schemas.microsoft.com/sharepoint/:Instantiation_FormURN‘
Solution
I am aware of several solutions, take care to read all of these because they are the most common pitfalls.
1) Are your Initiation and Association forms using the same schema? They must be the same in workflow.xml
2) If you are using InfoPath sure that when you publish your InfoPath form with a blank access path as this breaks the URN if you don’t clear it.
3) Make sure you have the proper URN from your published InfoPath form entered into the feature.xml file, to locate this select file -> Properties while in InfoPath’s design mode.
Warning: Make sure you read this from your most recently published form!
4) Try to close and re-open Visual Studio, I’ve noticed that it will sometimes cache the URN information
5) Verify you have the “register forms” switch activated in your feature.xml file, this will allow SharePoint to open the form using a forms services web part.
6) Take care not to rename the form schema in the generated myschema.cs file you generated using xsd myschema.xsd /” command
Note - the screenshot below shows InfoPath’s data source window (right), the visual studio command prompt (bottom middle) used to compile the xsd to the .cs file shown in Visual Studio 2008 (top left).
a WordPress rating system
a WordPress rating system
Popularity: 7% [?]
Thanks for the post. I also would like to add a weird behavior that can cause this error. I spent two crazy days to realize it.
When I build my project with the workflow.xml file open in visual studio, I got this error. Test this with VS2008-create new SP sequential project-build it. No error. Now open the workflow.xml file and then build, you get the message
Could not find schema information for the element http://schemas.microsoft.com/sharepoint/:StatusPageUrl.
I hope it helps someone. It screwed my deadline badly
a WordPress rating system
a WordPress rating system