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

Could not load file or assembly 'Telerik Reporting'.....'

2 Answers 1238 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Veysel
Top achievements
Rank 1
Veysel asked on 02 Nov 2012, 06:48 PM
Im having problem when I try to view report in a webpage...
Target FrameWork = 3.5
And here is the whole error..thanks...
Server Error in '/' Application.
 
Could not load file or assembly 'TelerikReporting' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.BadImageFormatException: Could not load file or assembly 'TelerikReporting' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Assembly Load Trace: The following information can be helpful to determine why the assembly 'TelerikReporting' could not be loaded.
 
 
=== Pre-bind state information ===
LOG: User = ***\****
LOG: DisplayName = TelerikReporting
 (Partial)
LOG: Appbase = file:///C:/Users/****/Documents/Visual Studio 2010/Projects/*********/MasterAdmin/
LOG: Initial PrivatePath = C:\Users\***\Documents\Visual Studio 2010\Projects\*********\MasterAdmin\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\****\Documents\Visual Studio 2010\Projects\*****\MasterAdmin\web.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Users/**/AppData/Local/Temp/2/Temporary ASP.NET Files/root/a44dc719/6415f44/TelerikReporting.DLL.
LOG: Attempting download of new URL file:///C:/Users/**/AppData/Local/Temp/2/Temporary ASP.NET Files/root/a44dc719/6415f44/TelerikReporting/TelerikReporting.DLL.
LOG: Attempting download of new URL file:///C:/Users/***/Documents/Visual Studio 2010/Projects/**/MasterAdmin/bin/TelerikReporting.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8013101b). Probing terminated.
 
Stack Trace:
 
 
[BadImageFormatException: Could not load file or assembly 'TelerikReporting' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]
   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
 
[ConfigurationErrorsException: Could not load file or assembly 'TelerikReporting' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54
   System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +600
   System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
   System.Web.Compilation.BuildManager.CompileCodeDirectories() +265
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +320
 
[HttpException (0x80004005): Could not load file or assembly 'TelerikReporting' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729
 
[HttpException (0x80004005): Could not load file or assembly 'TelerikReporting' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8921851
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259
 
Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456

2 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 06 Nov 2012, 01:35 PM
Hi Veysel,

This error could happen if you have projects in your solution that are targetting different version of the .NET framework e.g. if you have a .NET 4.0 class library with Telerik reports that is being called by a .NET 2.0 web project. Make sure your project target the same framework version and you should not experience such problems.

All the best,
Steve
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Developer
Top achievements
Rank 1
answered on 23 Aug 2013, 04:31 PM
Telerik controls are fantastic, but sometime it is quite hard to implement it for new developer or for less experienced developer  
Tags
General Discussions
Asked by
Veysel
Top achievements
Rank 1
Answers by
Steve
Telerik team
Developer
Top achievements
Rank 1
Share this question
or