This is a migrated thread and some comments may be shown as answers.

"ReportViewer" is undefined when deploying to server

2 Answers 170 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Carla Harker
Top achievements
Rank 1
Carla Harker asked on 16 Jul 2008, 07:28 PM
When I tried to deploy my application, which has a Telerik ReportViewer in it tied to a reporting class library, I got "ReportViewer is undefined." Everything works on my development server, and the problem isn't missing .dlls as best I can tell.

I followed the steps outlined in the knowledge base for deploying a web application.
http://www.telerik.com/support/kb/article/b454K-mdk-b454T-a-b454c-a.aspx

Any suggestions?

2 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 17 Jul 2008, 11:08 AM
Hello Carla,

Is by any chance your server running IIS7? Note that when in Integrated mode, IIS7 reads the application configuration from the <system.webServer> section group in the application configuration file instead of the <system.web> section group. Since Visual Studio 2005 does not provide "native" support for IIS7, the ReportViewer registration cannot be automatically added to the system.webServer.

To solve the problem you should manually add the HttpHandler registration to the system.webServer section group, e.g.:


<system.webServer>

<handlers>

 <add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=2.5.8.519, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
 validate="true" />


</handlers>
</
system.webServer>  

If this is not your case, please send us a sample website that replicates the problem (including bin and web.config) and we would investigate what might be causing this.

All the best,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Carla Harker
Top achievements
Rank 1
answered on 17 Jul 2008, 01:39 PM
I had to make some slight changes to yours to get it to work, but that was it. Thank you!

<

add name="Telerik.ReportViewer.axd_" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=2.5.8.519, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode" />

Tags
General Discussions
Asked by
Carla Harker
Top achievements
Rank 1
Answers by
Steve
Telerik team
Carla Harker
Top achievements
Rank 1
Share this question
or