Deployment issues

9 posts, 0 answers
  1. Clayton
    Clayton avatar
    38 posts
    Member since:
    Oct 2004

    Posted 20 Feb 2008 Link to this post

    I am having problems moving Telerik Reporting up to the server.  The Reporting install program says "Visual Studio 2005/2008 is not installed" and won't install.  After installing VS 2008 web developer and c# express, still get the error.  Referencing help on deploying in the manual, it does little to say how or where to copy dll's.  Tried copying the following dlls to the bin folder and get an error of "The http handler needed by the Report Viewer has not been registered in the application's web.config file"

    • Telerik.Reporting.dll
    • Telerik.Reporting.Processing.dll
    • Telerik.Reporting.Interfaces.dll
    • Telerik.ReportViewer.WebForms.dll (web site/application only)
    • Telerik.ReportViewer.WinForms.dll (desktop application only)

    The install/deployment of Reporting is horrendous.  Is this product being supported/enhanced at all?  Why would something like this be released to the public without appropriate deployment steps and instructions?

  2. Joel
    Joel avatar
    166 posts
    Member since:
    Oct 2006

    Posted 20 Feb 2008 Link to this post

    Clayton.  Try generating the reports with visual studio on a pc.  This should add the dll's to your local bin directory within the site and put the appropriate references in web config.  You should then be able to just copy the whole website project up to the server into inetpub or whereever your site it.  We don't install anything on our servers and have not had an issue with this process yet.

    Good luck.

    If you are using Q3 sp1, below are the lines visual studio would have added  to your web.config locally.  Obviously, if you have existing httphandlers or assemblies in your web.config, you would want to just integrate the telerik.report*  references.

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

    <assemblies> 
                    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                    <add assembly="Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                    <add assembly="Microsoft.VisualStudio.OLE.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                    <add assembly="VsWebSite.Interop, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                    <add assembly="Microsoft.VisualStudio.Shell.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                    <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                    <add assembly="Microsoft.VisualStudio.TextManager.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                    <add assembly="Microsoft.VisualStudio.TemplateWizardInterface, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                    <add assembly="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                    <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                    <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                    <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                    <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                    <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                    <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                    <add assembly="Telerik.Reporting.Design, Version=2.0.1.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/> 
                    <add assembly="Telerik.Reporting, Version=2.0.1.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/> 
                    <add assembly="Telerik.Reporting.Interfaces, Version=2.0.1.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/> 
                    <add assembly="Telerik.Reporting.Processing, Version=2.0.1.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/> 
                    <add assembly="Telerik.ReportViewer.WebForms, Version=2.0.1.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/> 
                    <add assembly="Telerik.ReportViewer.WinForms, Version=2.0.1.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/> 
    </assemblies> 
  3. DevCraft banner
  4. Clayton
    Clayton avatar
    38 posts
    Member since:
    Oct 2004

    Posted 20 Feb 2008 Link to this post

    With exception of 2 assembly lines that reference winForms and Design, everything is there.

    <add assembly="Telerik.Reporting, Version=2.0.1.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
    <
    add assembly="Telerik.Reporting.Processing, Version=2.0.1.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
    <
    add assembly="Telerik.ReportViewer.WebForms, Version=2.0.1.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
    <
    add assembly="Telerik.Reporting.Interfaces, Version=2.0.1.0, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>

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


    And Yes, I am using Q3 sp1.
    As far as generating the reports, I am doing that in a dll (AxReportingLib.dll).  The bin folder of that project contains ONLY that dll.  That dll is referenced and added to the webpage.  From the localhost/dev machine, I have no problems.  But production is what I am having problems with.
  5. Joel
    Joel avatar
    166 posts
    Member since:
    Oct 2006

    Posted 20 Feb 2008 Link to this post

    OK, you shouldn't need those two lines then.  VS usually add's the associated dll's to the bin, i guess it depends how you do it within vs.  Since it did not, you can go to the installed path on your pc (default is C:\Program Files\telerik\Reporting Q3 2007\bin ) and copy the referenced files in the we.config into your bin folder for the project.  If you already copied your project up to the server, you can just copy these files to the bin of your site on the server as well.
  6. Clayton
    Clayton avatar
    38 posts
    Member since:
    Oct 2004

    Posted 20 Feb 2008 Link to this post

    Already had tried copying the dll's as noted in first post.  Get the error as indicated.
  7. Joel
    Joel avatar
    166 posts
    Member since:
    Oct 2006

    Posted 20 Feb 2008 Link to this post

    And the httphandlers  section I posted is in the web.config on the server??  The error message you get should tell you exactly what to do.  Mine is in there like this:

     
           <httpHandlers> 
                <add verb="*" path="Telerik.ReportViewer.axd" type = "Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=2.0.1.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> 
            </httpHandlers> 
      
            <compilation debug="true" strict="false" explicit="true"

  8. Svetoslav
    Admin
    Svetoslav avatar
    649 posts

    Posted 21 Feb 2008 Link to this post

    Hi Clayton,

    Thank you for contacting Telerik Support.

    Telerik Reporting does not work in the Express versions of Visual Studio. For more information please check out the System Requirements.

    Deploying a web application that utilizes Telerik Reporting on a production server is straightforward and you do not need to install Telerik Reporting - just xcopy the referenced assemblies and all the other files it includes. For more information regarding the file structure of Telerik Reporting please see Deploying Telerik Reporting on a Server.

    The product comes with a pair of sample solutions in both C# and VB.NET which illustrates how to use Telerik Reporting in both Windows Forms and Web Application. I encourage you to browse them and especially the web.config where you will find how to configure the HTTP Handler required by the Web Report Viewer. Please note that there are two sections related to the handlers - one for IIS7 (system.webServer/handlers) and the other for the previous versions of IIS (system.web/httpHandlers):

    <configuration> 
        <system.web> 
            <httpHandlers> 
                <add path="Telerik.ReportViewer.axd"  
               verb="*"  
               type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=2.0.1.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/> 
            </httpHandlers> 
            ...  
      </system.web> 
      <system.webServer> 
        <handlers> 
          <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=2.0.1.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode,runtimeVersionv2.0" /> 
        </handlers> 
        <validation validateIntegratedModeConfiguration="false" /> 
      </system.webServer> 
    </configuration> 

    If you are still experiencing problems, do not hesitate to drop us a line.

    Sincerely yours,
    Svetoslav
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  9. Clayton
    Clayton avatar
    38 posts
    Member since:
    Oct 2004

    Posted 21 Feb 2008 Link to this post

    > If you are still experiencing problems, do not hesitate to drop us a line

    I thought that was what I was doing, asking for help!


    We are running IIS 6 on the server (windows 2003 server).  As I stated in first posting, I tried following Deploying Telerik Reporting on a Server but found it obscure on where to copy the files.


  10. Svetoslav
    Admin
    Svetoslav avatar
    649 posts

    Posted 22 Feb 2008 Link to this post

    Hello Clayton,

    You have a point. The mentioned help topic just describes the file structure of Telerik Reporting as they are installed on a computer. We will prepare a new set of detailed instructions on how to deploy Telerik Reporting and will add these in the help for the next version of the product.

    Deployment of applications that utilize Telerik Reporting on a production server requires copying all referenced Telerik Reporting assemblies to the application's bin folder + taking care of the HTTP handler (either by copying the web.config file or registering the HTTP handler manually). 

    That's it. You do not need to install the product itself on the server - as you know, the installation needs Visual Studio 2005 or 2008 to be installed on the machine, which is not the case for production servers.

    Back to your first post:

    Tried copying the following dlls to the bin folder and get an error of "The http handler needed by the Report Viewer has not been registered in the application's web.config file"

    It seems that you have copied the Telerik Reporting assemblies but not the web.config file or at least it lacks the mentioned HTTP handler registration section. The web.config is usually automatically updated when one drops the Web ReportViewer control from the VS Toolbox on a web page in design time. If you create the config file on the server by hand, please verify that it contains the two handlers sections as described in my previous post. I suppose you have your application running on the development server, so please compare the two config files.
     
    If these instructions do not help, please give us more details on the type of project you are running (Web Application or Web Site). You can also find some information on publishing web applications here.


    All the best,
    Svetoslav
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
DevCraft banner