3
Vote

[PublishTask::PublishReport]: The report definition is not valid

description

I am getting an exception trying to deploy reports using version 1.1.2:
 
[PublishTask::PublishReport]: The report definition is not valid. Details: Data at the root level is invalid. Line 1, position 1.
 
The fix is actually available as a "patch" off the source code tab above, but it has not been included in a release yet, or even been added to the SVN repository yet:
http://rsbuild.codeplex.com/Project/Download/FileDownload.aspx?DownloadId=97481
 
I've opened this issue ticket to document the issue, and to hopefully help point other users in the right direction because it was not clear to me that this patch fixed the exception above. And as is, the current release, 1.1.2, is unusable.

file attachments

comments

binki wrote Aug 22, 2013 at 7:08 AM

To clarify, the problem is that XmlDocument inherits its ToString() member definition from Object which outputs some internal .net garbage instead of the actual document itself. The “patch” replaces this .ToString() call with a reference to XmlDocument.OuterXml. See attached patch which shows the delta (much more useful than already-patched file ;-)).

Based on r99885 trunk.