Answered by:
Internal server error-ASP.NE

Question
-
User518155359 posted
Hi
i am Delveloped a report using report viewer i upload in remote server using iis and run the website
I got the following error:
500 - Internal server error
But its run in local machine...
Error occur in that line Coding:
<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 targetFramework="4.0" debug="true">
<buildProviders>
<!--<add extension=".rpt" type="CrystalDecisions.Web.Compilation.RptBuildProvider, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>-->
<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>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web>Please reply what error i made in that coding....
Thanks & Regards,
Jayapriya
Friday, October 14, 2011 3:28 AM
Answers
-
User1918766559 posted
Please check out the following link : http://support.microsoft.com/kb/942055
Let 's know if it helps or not !!
Thanks,
Anindita
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, October 14, 2011 8:54 AM
All replies
-
User1918766559 posted
First of all , what's the OS environment of your local system & remote server?
Modify web.config:
<compilation debug="true">
<assemblies>
</assemblies>
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</buildProviders><httpHandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
</httpHandlers>If you are running under IIS 7 it is worth checking the handler also has permission to execute.
500 - Internal server error means various types of issues. Paste the exact exception which helps to troubleshoot properly.
if you are getting exception like this:
Could not load type 'Microsoft.Reporting.Microsoft.Reporting.WebForms.HttpHandler' from assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.TypeLoadException: Could not load type 'Microsoft.Reporting.Microsoft.Reporting.WebForms.HttpHandler' from assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Then the solution is :
Note the assembly being referenced in the error:
Microsoft.Reporting.Microsoft.Reporting.WebForms.HttpHandler
It should just be
Microsoft.Reporting.WebForms.HttpHandler
- may have something to do with manually creating the handler in IIS and letting IIS write the handler key to the app's web.config .moving to IIS7, bear in mind that the handler mapping now lives in
<system.webServer> <handlers>
and not<system.web> <httpHandlers>
as it was in earlier versions. IIS7 will ignore the oldhttpHandlers
section but you may be checking the settings there out of habit and getting frustrated that your settings aren't taking effect.Thanks,
Anindita
http://anindita9.wordpress.com
Friday, October 14, 2011 5:43 AM -
User518155359 posted
Hi Sir,
Your answer i was seen sir,but i got the error is:
" HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid."
The Source code is:
</connectionStrings>
<system.web>
<compilation targetFramework="4.0" debug="true">
<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>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</handlers>
</system.webServer>
</configuration>I was put a web config in root application not in sub folder ..
i was got this error
please reply what error i made in that
Thanks&Regards,
L.jayapriya
<fieldset><legend>Error Summary</legend>HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
</fieldset>Friday, October 14, 2011 6:52 AM -
User1918766559 posted
Please check out the following link : http://support.microsoft.com/kb/942055
Let 's know if it helps or not !!
Thanks,
Anindita
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, October 14, 2011 8:54 AM -
User-8475372 posted
The server in which you have deployed your application, check for the report viewer version.( Check in the gac (windows/assembly) folder )
If the version is not 10.0, pls download it from http://www.microsoft.com/download/en/details.aspx?id=6442
let me know if that didnt solve your issue.
Friday, October 14, 2011 9:44 AM