使用报表查看器控件进行构建时出错-2005 [英] Error while taking build with the report viewer control.-2005

查看:83
本文介绍了使用报表查看器控件进行构建时出错-2005的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有项目示例.

当我运行应用程序时,它运行良好.
部署它时,出现以下错误..

报告定义无效.详细信息:根级别的数据无效.第1行,位置1.

可能是什么问题……

I have project sample.

It is working well when I run the application.
When I deploy it I get the following error..

The report definition is not valid. Details: Data at the root level is invalid. Line 1, position 1.

what could be the problem......

推荐答案

当您取消选中允许此预编译站点可更新"时,您将始终必须部署整个应用程序到您的服务器.即使您修改了组件之一,也必须将整个站点更新到服务器中.这是由于ASP.NET提供的预编译功能.

当您选中允许此预编译站点更新"选项时,您可以对预编译站点进行部分更新.


有关预编译的快速信息:
当您对应用程序进行预编译时,所有设计内容(.aspx文件)都将转换为程序集.预编译器将使用一些逻辑来选择文件来构建DLL.它将文件从一个或多个文件夹合并到一个程序集中.因此,我们在选择需要的PreCompiler选项时必须非常小心.

当您选择预编译器的不可更新"选项时,即使您在Web应用程序的任一ASPX中进行了少量修改,也必须始终部署完整站点,因为我们无法选择要作为程序集生成的文件. .
When you uncheck "Allow this precompiled site to be updatable", You will have to alway deploy the entire application to your server. Even when you modify one of the component, entire site has to be updated into server. This is because of the Precompilation feature provided by ASP.NET.

When you check "Allow this precomile site to be updatble" option allows to you do partial update to the precompiled site.


Quick info on Precompilation:
When you precompile your application all the Design content (.aspx file) will be converted into an Assembly. Precompiler will use some logic to choose files to build the DLL. It will merge files from one or more folders into an Assembly. So we have to be very careful in choosing the PreCompiler option that is requried.

When you choose Non updatable option of precompiler, you have to deploy full site always even if you have a small modification done in any one of the ASPX of your webapplication as we will not have any control on choosing the files to be build as an Assembly.


这篇关于使用报表查看器控件进行构建时出错-2005的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆