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

Report viewer (web) has me baffled!

4 Answers 213 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Christopher Bishop
Top achievements
Rank 2
Christopher Bishop asked on 19 Jul 2008, 04:07 PM
Ok here is the deal Windows Vista, VS 2008, Latest Download (as of this morning) of Report Objects...

Open new project drop the reportViewer on the page hit F5 and all i get is...

Server Error in '/ReportEngine' Application.  
--------------------------------------------------------------------------------  
 
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: The 'system.webServer' start tag on line 21 does not match the end tag of 'system.web'. Line 65, position 5.  
 
Source Error:   
 
 
Line 63:   
Line 64:   
Line 65:   </system.web> 
Line 66: </configuration> 
 
   
 
Source File: C:\inetpub\wwwroot\web.config    Line: 65   
 
 
--------------------------------------------------------------------------------  
Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434  

This happens with "anything" even opening up one of the examples and running it I have been over the web.config file a million times and it is formated just fine...

Here is where it gets even more mind boggling remove the 

<

telerik:ReportViewer ID="ReportViewer1" runat="server" />

from the page and everything works fine I know this is not me as even if i do it manually following the getting started guide everything works fine creating the report class file etc. works like a charm and even in winForms it works but the second i drop and/or add the tag to the page BOOOM! and yes 

<%

@ Register assembly="Telerik.ReportViewer.WebForms, Version=2.5.8.519, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerik" %>

is registered and dll files are where they should be

Any Ideas, I am about ready to just go back to reporting services and crystal as this is driving me up a wall.

And before you ask I have tried this with and without ajax, on 2.0, 3.0 and 3.5 and no matter what i do it just bombs out

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 21 Jul 2008, 11:53 AM
Hello Christopher,

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" name="Telerik.ReportViewer.axd_"  verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=2.5.8.519, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode" />
…
</handlers>
</
system.webServer>  

Hope this helps.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Christopher Bishop
Top achievements
Rank 2
answered on 21 Jul 2008, 02:01 PM
Steve,
I already tried that and just to make sure just started a new site dropped the reportViewer on the page went to web.config and added the code to the section see below:

<?xml version="1.0"?>  
<configuration> 
    <appSettings/> 
    <connectionStrings/> 
    <system.web> 
        <httpHandlers> 
            <add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=2.5.8.414, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" validate="true"/>  
        </httpHandlers> 
        <compilation debug="true" strict="false" explicit="true">  
            <assemblies> 
                <add assembly="Telerik.ReportViewer.WebForms, Version=2.5.8.414, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>  
                <add assembly="Telerik.Reporting.Processing, Version=2.5.8.414, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>  
                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>  
                <add assembly="Telerik.Reporting, Version=2.5.8.414, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>  
                <add assembly="Telerik.Reporting.Interfaces, Version=2.5.8.414, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>  
                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>  
        <pages> 
            <namespaces> 
                <clear/> 
                <add namespace="System"/>  
                <add namespace="System.Collections"/>  
                <add namespace="System.Collections.Generic"/>  
                <add namespace="System.Collections.Specialized"/>  
                <add namespace="System.Configuration"/>  
                <add namespace="System.Text"/>  
                <add namespace="System.Text.RegularExpressions"/>  
                <add namespace="System.Web"/>  
                <add namespace="System.Web.Caching"/>  
                <add namespace="System.Web.SessionState"/>  
                <add namespace="System.Web.Security"/>  
                <add namespace="System.Web.Profile"/>  
                <add namespace="System.Web.UI"/>  
                <add namespace="System.Web.UI.WebControls"/>  
                <add namespace="System.Web.UI.WebControls.WebParts"/>  
                <add namespace="System.Web.UI.HtmlControls"/>  
            </namespaces> 
        </pages> 
        <authentication mode="Windows"/>  
    </system.web> 
    <system.webServer> 
        <handlers> 
            <add path="Telerik.ReportViewer.axd" name="Telerik.ReportViewer.axd_" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=2.5.8.414, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode"/>  
        </handlers> 
    </system.webServer> 
</configuration> 
 


And still getting same error:
Parser Error Message: The 'system.webServer' start tag on line 21 does not match the end tag of 'system.web'. Line 65, position 5.

Every Telerik control works fine on my machine asp.net, winForms etc.

btw this happens with your code samples to but not your compiled code examples (only  the source code versions and only with the report viewer)...

The rest of the report viewer works fine, the report designer etc. so I am serious confused on this one, I can't really think of anything in IIS that would be causing such a problem when 90% of the stuff I do these days is .net on iis...

Any other ideas?
0
Accepted
Steve
Telerik team
answered on 22 Jul 2008, 09:44 AM
Hello Christopher,

We took your web.config file and tested in a web app under Vista Ultimate 32. We made several changes in order to get it working in integrated mode:
  • set <identity impersonate="false"/> to the system.web section
  • added <validation validateIntegratedModeConfiguration="false"></validation> to the system.webServer section
  • changed the Reporting version to latest official 2.5.8.519.
We have not been able to reproduce the error you've hit with this configuration. For your convenience I've attached the modified file - please try it on your end and let us know of the result.
Kind regards,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Christopher Bishop
Top achievements
Rank 2
answered on 22 Jul 2008, 01:52 PM
Steve,
That did the trick works like a champ now, thanks for the help figuring this one out.

Christopher
Tags
General Discussions
Asked by
Christopher Bishop
Top achievements
Rank 2
Answers by
Steve
Telerik team
Christopher Bishop
Top achievements
Rank 2
Share this question
or