Follow us on Twitter
Follow us in Facebook
Office Dev Content
SharePoint Dev Content
Blogs for Office developers > SharePoint dev blog
If you are using the Visual Studio 2010 SharePoint Power Tools and you are adding many controls to your ASCX file, you may see the following error message.
Warning 19 The custom tool 'SharePointWebPartCodeGenerator' failed. There was an error deserializing the object of type Microsoft.VisualStudio.SharePoint.Commands.CommandParameter. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 197, position 21. <MyASCXPath> <MyProjectName>
The guidance is to reduce the size of the ASCX file by completing these steps.
Or, you can install the Visual Studio 2010 Service Pack 1 to remove this error.