Visual Studio 2010 SP1 – SharePoint

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

This entry was posted in SharePoint, Visual Studio. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s