CENÁRIO:
Desenvolvendo uma WebPart em Sandbox solution com o Visual Power Tools. Ele dá um erro no ASPX quando você tem muitos controles na tela.
ERRO:
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>
SOLUÇÃO:
Instalar o SP 1 do Visual Studio 2010.
Detalhe da correção:
Visual Studio Tools for SharePoint
- Visual Web Part code generation that is sandboxed fails if the ASCX file exceeds a certain length.
REFERÊNCIA:
http://support.microsoft.com/kb/983509