0

, следуя шагам от Lesson 5: Publish the Report Definition to the Report Server for SQL Server 2012, у меня есть следующее сообщение об ошибке:Ошибка: «отсутствует обязательный дочерний элемент»

The definition of this report is not valid or supported by this version of Reporting Services. The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporting Services schemas. Details: The report definition element 'Report' is empty at line 1878, position 3. It is missing a mandatory child element of type 'ReportSections'.

Когда я дошел до последней строки:

_reportService.SetItemDefinition(reportPath, bytes, null); 

Этот вопрос связан с мой предыдущий вопрос: Error < Report xmlns='NonEmpty' > was not expected.

Я пропустил шаг, Lesson 4: Update the Report Definition Programmatically, чтобы быть уверенным, что я ничего не модифицировал для успешного десериализованного объекта.

В этом уроке 5 я успешно сериализую назад нетронутый объект в поток памяти, но не смог записать его обратно в Сервер отчетов. Пожалуйста помоги.

ответ

0

Я решил это, заменив XSD на Lesson 2: Generate Classes from the RDL Schema using the xsd Tool.

От:

http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition/ReportDefinition.xsd 

To:

http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition/ReportDefinition.xsd 
+0

Похоже, вы не SQL 2012, как ваш SSRS сервер. –

+0

Дело в том, что у меня установлен сервер SQL SSRS SQL Server, и RDL развернут в него. –

Смежные вопросы