Click here to Skip to main content
16,020,182 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,

I have written Build Providers in web Config File.I got the Error:500 internal server Error

Here is My Code:
HTML
<configuration>
  <connectionstrings>
    <remove name="LocalSqlServer" />
    <add name="LocalSqlServer" connectionstring="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;">
      providerName="System.Data.SqlClient" />
    <add name="legalprojectConnectionString" connectionstring="Data Source=SW-VERTEX54\SQLEXPRESS;Initial Catalog=legalproject;User ID=sa;Password=123">
      providerName="System.Data.SqlClient" />
    
  </add></add></add></connectionstrings>
  <system.web>
<httphandlers>
      <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />
    </httphandlers>
    <compilation debug="true" targetframework="4.0">    
<buildproviders>
        <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      </buildproviders>  
      <assemblies>
        <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
      </assemblies>
    </compilation>
    <customerrors mode="Off" />
    <httpruntime requestvalidationmode="2.0" />
    <pages controlrenderingcompatibilityversion="3.5" clientidmode="AutoID" />
 </system.web>
  <system.webserver>   
    <modules runallmanagedmodulesforallrequests="true" />
    <validation validateintegratedmodeconfiguration="false" />
        <defaultdocument>
            <files>
                <remove value="Index.php" />
                <remove value="Default.aspx" />
                <remove value="Default.asp" />
                <remove value="Default.htm" />
                <remove value="Index.aspx" />
                <remove value="Index.asp" />
                <remove value="Index.php3" />
                <remove value="Index.stm" />
                <remove value="Index.shtm" />
                <remove value="Index.shtml" />
                <remove value="Index.cfm" />
                <remove value="Index.htm" />
                <remove value="Index.html" />
                <add value="index.php" />
            </files>
        </defaultdocument>
  </system.webserver>
  <system.net>
   
  </system.net>
</configuration>
Posted
Updated 10-Feb-12 20:38pm
v4
Comments
Michel [mjbohn] 11-Feb-12 2:38am    
pre tag added

1 solution

Please check if any older version of reporting version is attached in the project or any reference of that.

By the way which report version do you use?

Or Else chk this link

http://stackoverflow.com/questions/2149492/microsoft-reporting-v-10-load-problem[^]

There are other links inside the above link which will solve your problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900