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

Telerik Reporting Error After Publish

8 Answers 293 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 20 Nov 2012, 11:16 AM
Hi Everyone,
I need help on Telerik Report Error after publishing to my local web server

I have a web application and running this on local machine is perfectly fine.
XAML is 
<my:ReportViewer  x:Name="ReportViewer1" Width="1000"
              ReportServiceUri="../ReportService.svc"
              Report="ReportsLib.Report1,ReportsLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
</my:ReportViewer>

Fiddler says after report is showing .

#   Result  Protocol    Host    URL Body    Caching Content-Type    Process Comments    Custom 
162 500 HTTPS    localhost:1807  /ReportService.svc  834 private     text/xml; charset=utf-8 iexplore:5752          
163 500 HTTPS    localhost:1807  /ReportService.svc  1,116   private     text/xml; charset=utf-8 iexplore:5752          
164 500 HTTPS    localhost:1807  /ReportService.svc  1,332   private     text/xml; charset=utf-8 iexplore:5752          
165 200 HTTP    localhost:1807  /ReportService.svc/resources/getrenderstream?instanceID=c07b6ca8-bd44-48cd-8e2f-56718e3e5283&name=5a214af8d59c4e86ad6b023d69ea4307  25,661  private     image/png   iexplore:5752          


Now, after publishing this to my local web server;

Web site= https://unowos/demo
root folder on local web server is C:\WOS\WOSDEMO

this is my XAML
<my:ReportViewer  x:Name="ReportViewer1" Width="1000"
              ReportServiceUri="../ReportService.svc"
              Report="ReportsLib.Report1,ReportsLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
</my:ReportViewer>

Error is after previewing the report.

Error: System.Reflection.TargetInvocationException : An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.
   at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
   at Telerik.Reporting.Service.SilverlightClient.ListRenderingExtensionsEventArgs.get_Extensions()
   at Telerik.ReportViewer.Silverlight.ReportViewerModel.OnListRenderingExtensionsCompleted(Object sender, ListRenderingExtensionsEventArgs e)
 
------------- InnerException: -------------
 
System.ServiceModel.CommunicationException : The remote server returned an error: NotFound.
   at System.ServiceModel.Channels.Remoting.RealProxy.Invoke(Object[] args)
   at proxy_6.EndListRenderingExtensions(IAsyncResult )
   at Telerik.Reporting.Service.SilverlightClient.ReportServiceClient.OnEndListRenderingExtensions(IAsyncResult result)
   at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
 
------------- InnerException: -------------
 
System.Net.WebException : The remote server returned an error: NotFound.
   at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
   at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
 
------------- InnerException: -------------
 
System.Net.WebException : The remote server returned an error: NotFound.
   at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
   at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
   at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__0(Object sendState)

Fiddler says : on redmark

#   Result  Protocol    Host    URL Body    Caching Content-Type    Process Comments    Custom 
262 500 HTTPS    unowos  /demo/ReportService.svc  
263 500 HTTPS    unowos  /demo/ReportService.svc  
264 500 HTTPS    unowos  /demo/ReportService.svc  


Notice something different here.
The same website was published on GoDaddy servers and i notice that the ReportService.svc whether running on local machine and Goddady server is only showing /ReportService.svc. And the report is showing the preview.

What am i missing ?....Is this on IIS Server ? or in my development.

Thanks in advance.
Robert



8 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 22 Nov 2012, 03:43 AM
Anyone please ?
Thank you.
0
Robert
Top achievements
Rank 1
answered on 24 Nov 2012, 07:57 AM
Pleaseeeeeeeeeeeeeeeeeeeeeeee.........Help !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 26 Nov 2012, 12:02 PM
Robert, this is a generic error and is usually due to improper configuration of the service.. I think you figured it out yourself that the problem is with invalid path to the ReportService.svc file. The host you deploy to is irrelevant unless you/they are applying url forwarding or there is a url rewriter in place.
0
Sobiya
Top achievements
Rank 1
answered on 24 Feb 2014, 10:53 AM

I am also getting the same error, but not finding any proper solution. Actually i am getting this error only when i am selecting the All Values in report parameter or maximum number of values, otherwise it works fine, and if i deploy my code then also it works fine, only giving error at my localhost.
Can anyone suggest what is the solution of this problem or how to trace the actual reason.

Many thanks in advance, attached is the screenshot of the error.

Sobiya

0
Zak
Top achievements
Rank 1
answered on 05 Jun 2015, 06:23 AM

Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

I am getting the above error  in Telerik Reporting after publishing Application so Please provide me solution

0
Stef
Telerik team
answered on 05 Jun 2015, 08:24 AM
Hello Zak,

Telerik Reporting is built against .NET4 as of Q2 2013. If you are using assemblies built against earlier .NET version, please check this stackoverflow discussion - What 'additional configuration' is necessary to reference a .NET 2.0 mixed mode assembly in a .NET 4.0 project?

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Zak
Top achievements
Rank 1
answered on 05 Jun 2015, 09:38 AM

The below code is in My App.config file

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <connectionStrings>
    <add name="Hardware_Application.Properties.Settings.DHardwareDatabasedb" connectionString="data source=D:/Hardware_Database.db" providerName="System.Data.SQLite" />
    <add name="Hardware_Application.Properties.Settings.DebugConnectionString" connectionString="data source=&quot;D:\Hardware Application\Hardware Application\bin\Debug\Database/Hardware_Database.db&quot;" providerName="System.Data.SQLite" />
  </connectionStrings>
  <startup useLegacyV2RuntimeActivationPolicy="True">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
    <requiredRuntime version="4.0.20506" />
  </startup>
</configuration>

 At Runtime without publishing I am getting proper report but after publishing I am getting error for Reporting else Whole Program is running properly. 

 

0
Stef
Telerik team
answered on 09 Jun 2015, 01:55 PM
Hello Zak,

Telerik Reporting is built against .NET4 as of Q2 2013, where the error indicates that you are mixing assemblies built in .NET2  in  .NET4 project.


Based on your connection strings the issue most probably is due a reference to System.Data.SQLite.dll. To update the reference, please check System.Data.SQLite downloads page.

If the issue is not related to the used data provider, check the referenced assemblies information and search for assemblies built in .NET2, and rebuild them against the proper .NET framework or search for an update targeting .NET4.


Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Massimiliano Bassili
Top achievements
Rank 1
Sobiya
Top achievements
Rank 1
Zak
Top achievements
Rank 1
Stef
Telerik team
Share this question
or