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

Error when rendering report

4 Answers 213 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kenneth
Top achievements
Rank 2
Iron
Kenneth asked on 08 Jul 2015, 02:07 PM

Silverlight project. This report has worked for many months so I'm not sure what has changed. I am re-doing the program so I have made changes but not so much in the report module.  There are many other reports (using different designers and data classes) in the same project that still work, so I do not believe it is a simple reference problem.

 When I run the report I hit the break-point at renderbegin, and my data class is initialized and performs its query with no errors.  The error must be occurring after the data is retrieved, which in this case is an empty list of objects so the report really has little to do data-wise.

 Here is the immediate window dump:

*** ReportProcessor.ProcessReport STARTED ***

*** ProcessReport #0 STARTED ***
An exception has occurred while processing 'ItemReport' item:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'
   at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
   at System.Signature..ctor(IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
   at System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()
   at System.Reflection.RuntimeMethodInfo.GetParametersNoCopy()
   at System.Reflection.RuntimePropertyInfo.GetIndexParametersNoCopy()
   at System.Reflection.RuntimePropertyInfo.GetIndexParameters()
   at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetProperties(Type type)
   at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetProperties()
   at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties()
   at System.ComponentModel.TypeDescriptor.GetProperties(Type componentType)
   at Telerik.Reporting.Processing.Data.ObjectDataDescriptorFactory.CreateDataDescriptor(IObjectDataProvider provider, IEnumerable enumerable)
   at Telerik.Reporting.Processing.Data.ObjectDataEnumerable.<EnumDataObjects>d__0.MoveNext()
   at Telerik.Reporting.Processing.Data.ResultSetAdapter.Fill(ResultSet resultSet, IEnumerable`1 data)
   at Telerik.Reporting.Processing.Data.SimpleDataProvider`1.Execute(MultidimensionalQuery query)
   at Telerik.Reporting.Processing.Report.ResolveData()
   at Telerik.Reporting.Processing.Report.ProcessItemCore()
   at Telerik.Reporting.Processing.Report.ProcessItem()
   at Telerik.Reporting.Processing.ReportItemBase.ProcessElement()
   at Telerik.Reporting.Processing.Report.ProcessElement()
   at Telerik.Reporting.Processing.ProcessingElement.Process(IDataMember dataContext)

=== Pre-bind state information ===
LOG: User = CPU-KEN\Ken
LOG: DisplayName = System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
 (Fully-specified)
LOG: Appbase = file:///C:/Documents and Settings/Ken/My Documents/Visual Studio 2010/Projects/MyProject/Project.Web/
LOG: Initial PrivatePath = C:\Documents and Settings\Ken\My Documents\Visual Studio 2010\Projects\MyProject\Project.Web\bin
Calling assembly : CCiRaterClassLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Documents and Settings\Ken\My Documents\Visual Studio 2010\Projects\MyProject\Project.Web\web.config
LOG: Using host configuration file: 
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
LOG: The same bind was seen before, and was failed with hr = 0x80070002.

*** ProcessReport #0 DONE in 00:00:00.0934990 ***

*** ReportProcessor.ProcessReport DONE in 00:00:00.0956129 ***


*** RenderReport #0 STARTED ***
*** RenderReport #0 DONE in 00:00:00.0014451 ***

 Attached is screen shot showing the error:

4 Answers, 1 is accepted

Sort by
0
Kenneth
Top achievements
Rank 2
Iron
answered on 08 Jul 2015, 02:46 PM

RESOLVED

Apparently I had added a reference to System.Windows.Visibility.Visible and Collapsed in the data class; this is a reference to a silverlight class which is not available during report rendering.  I replaced the references with the literal byte values of 0 and 1 and this resolved the problem.

 

0
Kenneth
Top achievements
Rank 2
Iron
answered on 03 Sep 2015, 04:17 PM

On machine that fails there is a butteroverflow error when ReportServices.svc is attempted to be read.

I'll research this further but anyone know what causes this?

0
Kenneth
Top achievements
Rank 2
Iron
answered on 03 Sep 2015, 04:18 PM
Probably obvious, but Top pane works, bottom pane fails after several attempts.
0
Stef
Telerik team
answered on 08 Sep 2015, 03:22 PM
Hello Kenneth,

Please test browsing the Reporting WCF service by address in browser to verify it is working. Then test if the issue occurs with each report or or specific reports, and/or data and amount of data.

Test using custom bindings for the Reporting WCF service's endpoints and encrease the message and buffer sizes, including the timeouts at both server and client:
In addition, more details about errors can be found in the server's Event Viewer.


I hope this information helps you.

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
Kenneth
Top achievements
Rank 2
Iron
Answers by
Kenneth
Top achievements
Rank 2
Iron
Stef
Telerik team
Share this question
or