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

Web Deploy Error

12 Answers 348 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Graham O'Riley
Top achievements
Rank 1
Graham O'Riley asked on 24 Jul 2008, 10:52 AM
Hi,
 I am using vs2005, reporting Q1 2008 trial downloaded from component
source.

I have a web application running on my dev pc which works correctly. When
I deploy it to my w2k iis web server I get the following error:

<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"/>

Web App Config:
- handler above exists in the web.config as it was added automatically.


Refences in VS2005:
- Telerik.reporting, reporting.interfaces, reporting.processing and reportviewer.webforms
  set to Local.

Application structure:
- Main menu application (web.config)
   - bin folder
        - Telerik sub application (web.config this file contains the handler)
            - bin folder
        - Delivery note sub application
            - bin folder

All dll's are copied to the top bin folder as it is necessary to get the app to work.
The handler is is in the sub application.

Web Server:
- W2k3 IIS with the latest patches etc.
- Using windows authentication (basic).

Any ideas why I get this error on the server but not local pc?

Regards,

Graham O'Riley
Netdocs Plc

12 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 Jul 2008, 11:34 AM
Hello Graham,

It seems like you've omitted to paste the exact error that you receive. All we see after you mention the error is the httphandler for the ReportViewer. Have you tried placing the Telerik.ReportViewer.WebForms.dll in the nested bin folder?

Greetings,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Graham O'Riley
Top achievements
Rank 1
answered on 24 Jul 2008, 02:00 PM
Sorry forgot to post the error in full:

The web.config in the nested application has this entry:

<

httpHandlers>

<

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"/>

</

httpHandlers>

The root bin folder and the nested folder contain the dll's:

Telerik.Reporting.Interfaces.dll
Telerik.Reporting.dll
Telerik.Reporting.Processing.dll
Telerik.ReportViewer.WebForms.dll

Regards,

Graham O'Riley
Netdocs Plc

Server Error in '/' Application.

The http handler needed by the Report Viewer has not been registered in the application's web.config file.  Add <add verb="*" path="Telerik.ReportViewer.axd" type = "Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=2.5.8.519, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> to the system.web/httpHandlers section of the configuration file.

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: Telerik.ReportViewer.WebForms.ReportViewerHandlerNotRegisteredException: The http handler needed by the Report Viewer has not been registered in the application's web.config file.  Add <add verb="*" path="Telerik.ReportViewer.axd" type = "Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=2.5.8.519, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> to the system.web/httpHandlers section of the configuration file.
0
Accepted
Steve
Telerik team
answered on 24 Jul 2008, 02:39 PM
Hi Graham O'Riley,

How do you run the application locally - do you use Cassini (the built-in webserver) or IIS? If the first, can you try running it under IIS and see how it behaves? Also does entering the handler in the main web.config file help? By default the ReportViewer will search for the web.config in the root of the current app.

Regards,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Graham O'Riley
Top achievements
Rank 1
answered on 24 Jul 2008, 03:15 PM
Hi,

I put the handler into the root folder as suggested and that has solved the
problem.

Many thanks for the speedy responses.

Regards,

Graham.
0
tony
Top achievements
Rank 1
answered on 16 Sep 2008, 06:58 AM
Hi,

   I face exact same problem as yours. And I like to
know 'How to put the handler into the root folder 
that has solved the problem ?'

   I can not running reporting on Web server , which
generate same error as yours. I guess the only difference
is that i use 2008 Q2 SP1 Reporting.(This is my first time
using Reporting)  
0
Steve
Telerik team
answered on 16 Sep 2008, 08:18 AM
Hi Tony,

What Graham means by his last post is that he added the ReportViewer http handler in the web.config that is in the root of his app.

Regards,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
tony
Top achievements
Rank 1
answered on 16 Sep 2008, 08:36 AM

Hi,
    I get this error on the web server but not local pc
and it begin after i add on reporting program.
( I test again if go back without reporting then
  there is no error for Radcontrol )

   I also had httphandler in my web.config.
   I also had Reporting... 4 .dll in my \bin
   I also had myreportlibrary.dll
                   myreportlibrary.pdp in my \bin
   
   Please advice what can be wrong in my deploy to server?

   My error as below:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'Telerik.ReportViewer.WebForms, Version=2.8.8.828, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)

Source Error:

Line 13:         -->
Line 14:     <httpHandlers>
Line 15: <add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=2.8.8.828, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" validate="true" />Line 16:     </httpHandlers>
Line 17:         <compilation debug="false">
   
Thanks for your kindly response!!

   
0
Steve
Telerik team
answered on 16 Sep 2008, 08:43 AM
Hi Tony,

It seems that you're trying to run our Reporting product on a server which does not grant Full trust level for our assemblies, which is required as specified in the Reporting system requirements page. If you're the server administrator, please make sure that Full trust level is set in your app config. If you're on a shared hosting, you would not be able to run reporting, as they're setup in medium trust environment.

Sincerely yours,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
tony
Top achievements
Rank 1
answered on 16 Sep 2008, 09:23 AM
Hi,

   Amazing guess!! I am using 'SharedHosting' from hosting company.
Except change from medium trust into full trust, Do i have other
choice to make it working on sharing web server? 

   Alougth It's bad news to me. But I really appreciate your fast
response, I try so many way but thougth may be i made mistake
somewhere which because of i am newly using reporting. (was using radcontrol without problem) 
0
Steve
Telerik team
answered on 16 Sep 2008, 10:37 AM
Hello Tony,

I am afraid that for the time being Telerik Reporting cannot operate in a restricted environment. The reason is that the current implementation relies extensively on things that the Medium Trust security level prohibits. This means that we have to trade some functionality for the Medium Trust which is not acceptable at this stage of the product evolvement.

This does not mean that we will ban our product from working in Medium Trust, but our current goal is to cover all reporting functionality that other products offer, which seems to be much more important for our customers.
 
If we are able to fulfil our plans for 2008, we may be to look into Medium Trust in 2009. We're sorry for not being able to be more specific at this time.


Regards,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
tony
Top achievements
Rank 1
answered on 16 Sep 2008, 10:47 AM
Hi,

   Thanks for reply. It seems that there is no solution for me currently,
But at least I know that i did not doing something wrong with web.config
which create a error and can not running on web server. Your
answer solved my one weeks trial & error & search. Really
appreciate your immediate response.
0
Steve
Telerik team
answered on 16 Sep 2008, 11:04 AM
Hello Tony,

You're more than welcome. To save you probably more time to research other reporting vendors, we've already made some tests on our major competitors and they have the same limitation.

All the best,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Graham O'Riley
Top achievements
Rank 1
Answers by
Steve
Telerik team
Graham O'Riley
Top achievements
Rank 1
tony
Top achievements
Rank 1
Share this question
or