Completed
Last Updated: 24 Mar 2020 16:37 by ADMIN
Anton
Created on: 21 Feb 2020 10:12
Type: Bug Report
0
JustMock->Enable Profiler causes a standard MS rdlc report not to render.

Hi

When enabling JUSTMOCK Profiler it stops a MS rdlc report to render.

I have attached a simple sample demonstrating the error.

The error that the render gives back is the following.

The definition of this report is not valid or supported by this version of Reporting Services. The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporting Services schemas. Details: Deserialization failed: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) Line 2, position 2.

I have tried to different target version of the .NET framework 4.5.2; 4.6.2, different platform targets "ANY,x86,x64", different VS IDE "2012, 2015", different Microsoft.ReportViewer.WinForm  ver. 11,12,14

Attached Files:
1 comment
ADMIN
Mihail
Posted on: 24 Mar 2020 16:37

Hi,

    

It turns out that the underlying issue is related to mocking the constructor of a class that inherits generic class and that constructor accepts a parameter that is another generic class. Something like the following:

public sealed class DerivedIntFromGeneric : IBaseGenericImpl<int>
{
	public DerivedIntFromGeneric(GenericValue<int> value)
		: base(value)
	{

	}
}


The fix is available with R1 2020 SP2 - version 2020.1.319.1

 

Regards,
Mihail
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.