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: