运行网站时出错 [英] Error when Run website

查看:82
本文介绍了运行网站时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,先生,
我正在使用Visual Studio2010开发ASP.NET报告.
当我将报告远程发送并在现场运行时,出现错误:
配置错误"

Hi sir,
I am devleoping ASP.NET report using visual studio2010.
When up my report in remote and run in site at the time i got the error :
" Configuration Error"

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The element 'buildProviders' cannot be defined below the application level.

Source Error:





Line 25:                <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 26:       </assemblies>
Line 27:        <buildProviders>
Line 28:         <!--<add extension=".rpt" type="CrystalDecisions.Web.Compilation.RptBuildProvider, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>-->
Line 29:         <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=ne





我正在使用IIS7 ...

请回复我在该配置中遇到的错误...
谢谢与问候,
L.jayapriya.





I am using IIS7 ...

Please reply what error i made in that config...
Thanks&Regards,
L.jayapriya.

推荐答案

如果您定义buildProviders,则您的web.config 必须放置在根应用程序文件夹中.因此,将webcondig放在您在IIS中定义Web应用程序正在使用的文件夹中,而不是子文件夹中.
Your web.config must be place in the root application folder, if you define buildProviders. So place the webcondig in the very folder you''ve defined the web application is using in the IIS and not a subfolder.


请确保以下其中一项:

1)web.config位于您网站的根文件夹中,而不位于任何子文件夹中



2)尝试将该子文件夹转换为IIS中的应用程序.

Google"
Please make sure one of the following:

1) web.config is in the root folder of your website and not in any subfolder

OR

2) Try converting that subfolder into an application in IIS.

Google "
The element 'buildProviders' cannot be defined below the application level.

",您将获得所有指向我上面提到的可能解决方案的链接.

希望这对您有帮助...
干杯

" and you will come up with links that all point to the possible solutions I have mentioned above.

hope this helps...
Cheers


嘿.
尝试这种方式..

hey.
try it this way..

<compilation debug="true">
            <assemblies>
                <add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                <add assembly="CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                <add assembly="CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                <add assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                <add assembly="CrystalDecisions.Enterprise.Framework, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
                <add assembly="CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                <add assembly="CrystalDecisions.Data.AdoDotNetInterop, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      </assemblies>
            <buildProviders>
                <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
            </buildProviders>
        </compilation>



希望对您有帮助.



hope this help u..


这篇关于运行网站时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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