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

Class library and Web Project telerik.reporting.dll version issue

5 Answers 94 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Irfan
Top achievements
Rank 1
Irfan asked on 07 Jun 2017, 07:38 AM

Hi Guys,

I have created a class library for reporting only and used telerik.reporting version 10.2.16.914 in my Class library(myReportingDLL). I referenced my Class Library (myReportingDLL) to a Web Project and Web project have telerik.reporting version 10.1.16.504.

Previously, Web project not giving any error and report runs but now it is giving an error; 

"could not load file or assembly 'telerik.reporting, version=10.2.16.914, culture=neutral, publickeytoken=a9d7983dfcc261be' or one of its dependencies. the located assembly's manifest definition does not match the assembly reference. (exception from hresult: 0x80131040)"

Please advise.

5 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 07 Jun 2017, 04:05 PM
Hello Irfan,

You need to use the same Telerik Reporting version in all projects. Please check Upgrading Telerik Reporting Projects in order to update the projects.

Regards,
Stef
Progress 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
Irfan
Top achievements
Rank 1
answered on 08 Jun 2017, 04:46 AM

Hey Stef,

Thanks for you kind reply. I want to tell you that on my local development project it is working with different version as mentioned above and on my development project my class library has 10.2.16.914 and i referred class library to my web project it runs as expected. 

Considering your suggestion when i downgrade my telerik.reporting version in Class Library from 10.2.16.914 to 10.1.16.504, my form designer goes off and not loaded properly. Can you please help me out?

Thanks & Regards,

Irfan

0
Stef
Telerik team
answered on 08 Jun 2017, 12:02 PM
Hello Irfan,

If there are no significant API changes, reports built with an older version may be loaded correctly if there are binding redirects for Telerik reporting assemblies.
Yet it is not recommended to keep projects with different version as it may lead to report processing errors and assembly references problems.

Please up/down-grade to use the same Telerik Reporting version in all projects. The restart Visual Studio to open reports properly in the VS report Designer.

Regards,
Stef
Progress 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
Irfan
Top achievements
Rank 1
answered on 09 Jun 2017, 06:27 AM

Hi Stef,

I have downgraded my Class library from 10.2.16.914 to 10.1.16.504 and restarted VS, but I am still not able to open report designer it is given an error below;

at System.ComponentModel.TypeDescriptor.AddAttributes(Object instance,
Attribute[] attributes)
at
Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent
component, Boolean rootDesigner)
at
System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent
component, String name, IContainer containerToAddTo)
at
System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component,
String name)
at
System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type
componentType, String name)
at
System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type
type, ICollection arguments, String name, Boolean addToContainer)
at
System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type
type, ICollection arguments, String name, Boolean addToContainer)
at
System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager
manager, CodeTypeDeclaration declaration)
at
System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager
manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager
serializationManager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32
fReload)

 

Your reply would be helpful.

 

Thanks & Regards,

Irfan

0
Stef
Telerik team
answered on 12 Jun 2017, 02:51 PM
Hi Irfan,

In case reports cannot be opened in the VS Report Designer after running the Upgrade Wizard, please check if the project targets .NET4+ Full profile framework, and if you use a supported Visual Studio. Please note that the VS Report Designer does not work in the context of WebSite projects.

In order to investigate further, we will need the problematic project locally.

Regards,
Stef
Progress 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
Irfan
Top achievements
Rank 1
Answers by
Stef
Telerik team
Irfan
Top achievements
Rank 1
Share this question
or