Hosting web application on windows server 2008 R2


Hi guys i have created a web application in as front end and MS-SQL as back end.I hosted this web application on windows 7 and it is working fine. I have used report viewer handler in my application to use SSRS reports this is my handler

  <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

And now my boss wants it on winodws server 2008 R2 i tried to host application there but it is giving me "HTTP Error 500.19" error with HResult code 0x80070021.The error says cannnot read handler so when i comment the handler tag in config my application runs fine but then my SSRS report gives a error. I tried adding handler through IIS then too my SSRS report gives an error. I also changed value from "Deny" to "Allow" in %windir%\system32\inetsrv\config\ applicationHost.config in

            <section name="handlers" overrideModeDefault="Deny" />

<section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Deny"/> 

But still same error comes.Does anyone knows how to slove this ?
asked on Stack Overflow Apr 16, 2014 by Hitesh

1 Answer


The error message indicates a malformed XML element or config error, and this link may help with your config settings:

Web.config Settings for ReportViewer

answered on Stack Overflow Apr 16, 2014 by Andy

User contributions licensed under CC BY-SA 3.0