cancel
Showing results for 
Search instead for 
Did you mean: 

Silverlight error with CrystalReport

Former Member
0 Kudos

I know CRVS2010 is not tested on Silverlight but i'm trying somehow to get CR working with SL. I followed this example : [Silverlight and Crystalreport|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/20795] [original link is broken] [original link is broken] [original link is broken];

My web server is a Window Server 2008 R2 x64bit.

When i compile at 32bit and deploy the application i get this error when try to access the app : [Error on serve|http://www.mediafire.com/?bjxy0e2tdhxuc70]r

if i try to compile at 64bit(or Any CPU) i get the following error at compile time :

Error	11	The "CreateRiaClientFilesTask" task failed unexpectedly.
System.Web.HttpException (0x80004005): Could not load file or assembly 'InfoCopy.GesPro.Web' or one of its dependencies. Tentativo di caricare un programma con un formato non corretto. ---> System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'InfoCopy.GesPro.Web' or one of its dependencies. Tentativo di caricare un programma con un formato non corretto. ---> System.BadImageFormatException: Could not load file or assembly 'InfoCopy.GesPro.Web' or one of its dependencies. Tentativo di caricare un programma con un formato non corretto.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   --- End of inner exception stack trace ---
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
   at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   at System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
   at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
   at System.Web.Compilation.ClientBuildManager.EnsureHostCreated()
   at System.Web.Compilation.ClientBuildManager.CreateObject(Type type, Boolean failIfExists)
   at Microsoft.ServiceModel.DomainServices.Tools.CreateRiaClientFilesTask.GenerateClientProxies()
   at Microsoft.ServiceModel.DomainServices.Tools.CreateRiaClientFilesTask.ExecuteInternal()
   at Microsoft.ServiceModel.DomainServices.Tools.RiaClientFilesTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)	InfoCopy.GesPro

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

The 64 bit app is complaining about 'InfoCopy.GesPro.Web' and the 32 bit app is complaining about 'InfoCopy.SuiteSolutions.Web'.

Neither is a Crystal Reports file. But it looks to me like your app is either referencing those files or has a dependency on those files. You'll have to figure out where they come from and how to deploy them. But at this time, my take is that this is not a CR problem...

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Former Member
0 Kudos

Sorry it's a mistake.As i'm working on these 2 projects with Crystal Report, I copied error delpoing one and compiling the other.

Here is the error that i get compiling the project that i deploied.(if possible, please, correct also my first post)

Error	4	The "CreateRiaClientFilesTask" task failed unexpectedly.
System.Web.HttpException (0x80004005): Could not load file or assembly 'InfoCopy.SuiteSolution.Web' or one of its dependencies. Tentativo di caricare un programma con un formato non corretto. ---> System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'InfoCopy.SuiteSolution.Web' or one of its dependencies. Tentativo di caricare un programma con un formato non corretto. ---> System.BadImageFormatException: Could not load file or assembly 'InfoCopy.SuiteSolution.Web' or one of its dependencies. Tentativo di caricare un programma con un formato non corretto.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   --- End of inner exception stack trace ---
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
   at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   at System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
   at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
   at System.Web.Compilation.ClientBuildManager.EnsureHostCreated()
   at System.Web.Compilation.ClientBuildManager.CreateObject(Type type, Boolean failIfExists)
   at Microsoft.ServiceModel.DomainServices.Tools.CreateRiaClientFilesTask.GenerateClientProxies()
   at Microsoft.ServiceModel.DomainServices.Tools.CreateRiaClientFilesTask.ExecuteInternal()
   at Microsoft.ServiceModel.DomainServices.Tools.RiaClientFilesTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)	InfoCopy.SuiteSolution

0 Kudos

See this sample for more info: http://aspalliance.com/1991

Thank you

Don

former_member183750
Active Contributor
0 Kudos

Hmm. I still see:

System.Web.HttpException (0x80004005): Could not load file or assembly 'InfoCopy.SuiteSolution.Web' or one of its dependencies. Tentativo di caricare un programma con un formato non corretto. ---> System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'InfoCopy.SuiteSolution.Web' or one of its dependencies. Tentativo di caricare un programma con un formato non corretto. ---> System.BadImageFormatException: Could not load file or assembly 'InfoCopy.SuiteSolution.Web' or one of its dependencies. Tentativo di caricare un programma con un formato non corretto.

????

- Ludek

Former Member
0 Kudos

Hi Don

thanks for the link..but didn't find something helpful.

thanks

Edited by: dchamba on May 5, 2011 5:49 PM

Former Member
0 Kudos

"Tentativo di caricare un programma con un formato non corretto "

means

"Attempt to load a program with an incorrect format."

former_member183750
Active Contributor
0 Kudos

'InfoCopy.SuiteSolution.Web' means; nothing to do with Crystal Reports...

- Ludek

Former Member
0 Kudos

This was the error i got with log4net...when i copied my to project to another computer added the .aspx page and the .rtp files.

Error	5	The "CreateRiaClientFilesTask" task failed unexpectedly.
System.Web.HttpException (0x80004005): Could not load file or assembly 'log4net' or one of its dependencies. Tentativo di caricare un programma con un formato non corretto. ---> System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'log4net' or one of its dependencies. Tentativo di caricare un programma con un formato non corretto. ---> System.BadImageFormatException: Could not load file or assembly 'log4net' or one of its dependencies. Tentativo di caricare un programma con un formato non corretto.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   --- End of inner exception stack trace ---
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
   at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   at System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
   at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
   at System.Web.Compilation.ClientBuildManager.EnsureHostCreated()
   at System.Web.Compilation.ClientBuildManager.CreateObject(Type type, Boolean failIfExists)
   at Microsoft.ServiceModel.DomainServices.Tools.CreateRiaClientFilesTask.GenerateClientProxies()
   at Microsoft.ServiceModel.DomainServices.Tools.CreateRiaClientFilesTask.ExecuteInternal()
   at Microsoft.ServiceModel.DomainServices.Tools.RiaClientFilesTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)	InfoCopy.SuiteSolution

Former Member
0 Kudos

"InfoCopy.SuiteSolution.Web" is the namespace of my web project.

as in silverlight there are 2 project : InfoCopy.SuiteSolution (client-side) and InfoCopy.SuiteSolution.Web (srever -side)

former_member183750
Active Contributor
0 Kudos

log4net - see the very first sticky post on this forum. Lots of info there. Also, don't forget to use the search box in the top right corner of this web page. It will return a number of KBases, blogs, etc...

Searching these forums is also not a bad idea.

- Ludek

Former Member
0 Kudos

Thanks for the answer Ludek.

But what do you think could the error/mistake be????

thanks ludek

former_member183750
Active Contributor
0 Kudos

Which one?

Could not load file or assembly 'InfoCopy.SuiteSolution.Web' or one of its dependencies

or

log4net?

- Ludek

Former Member
0 Kudos

load file or assembly 'InfoCopy.SuiteSolution.Web' or one of its dependencies ???

former_member183750
Active Contributor
0 Kudos

Permissions? Dependencies? Try [Process Monito|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] it may give you some clues.

- Ludek

Answers (0)