cancel
Showing results for 
Search instead for 
Did you mean: 

Visual Studio 2012 Crystal Report Assembly not found

Former Member
0 Kudos

Hello,

I am having some trouble with my project which I created on Windows 7 64Bit , Visual Studio 2012.

All works fine there.

I have 2 Versions. One is runing on Windows 7 and the other one on a Windows Server 2008 R2 Webserver 64Bit.

I created a Crystal Plugin inside my Project locally and now copied it into the version of our Webserver.

I also installed the CR-Developer Version from here:

http://scn.sap.com/docs/DOC-35074

The Setup went through without a failure.

The project is compiled on "Any CPU" Setting. It is set to target .Net Framework 4.5

But now when I run my project I get following error:

File or Assembly "CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" or a dependency was not found. It has been tried to load the file in the wrong format.

=== Zustandsinformationen vor Bindung ===

LOG: Where-ref-Bindung. Speicherort = C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/5432a3e6/2990af86/CrystalDecisions.ReportAppServer.ClientDoc.dll

LOG: Appbase = file:///D:/Sourcen/NopCommerce_2.80/Presentation/Nop.Web/

LOG: Ursprünglicher PrivatePath = D:\Sourcen\NopCommerce_2.80\Presentation\Nop.Web\bin

Aufruf von Assembly : (Unknown).

===

LOG: Diese Bindung startet im LoadFrom-Load-Kontext.

WRN: Das systemeigene Image wird nicht im LoadFrom-Kontext durchsucht. Das systemeigene Image wird nur im Standard-Load-Kontext durchsucht, z. B. Assembly.Load().

LOG: Die Anwendungskonfigurationsdatei wird verwendet: D:\Sourcen\NopCommerce_2.80\Presentation\Nop.Web\web.config

LOG: Die Hostkonfigurationsdatei wird verwendet:

LOG: Die Computerkonfigurationsdatei von C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config wird verwendet.

LOG: Download von neuem URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/5432a3e6/2990af86/CrystalDecisions.ReportAppServer.ClientDoc.dll.

ERR: Das Setup der Assembly konnte nicht abgeschlossen werden (hr = 0x8007000b). Die Suche wurde beendet.

Stapelüberwachung:

[BadImageFormatException: Die Datei oder Assembly "CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" oder eine Abhängigkeit davon wurde nicht gefunden. Es wurde versucht, eine Datei mit einem falschen Format zu laden.]

   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0

   System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +34

   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152

   System.Reflection.Assembly.Load(AssemblyName assemblyRef) +36

   Nop.Core.Plugins.PluginManager.PerformFileDeploy(FileInfo plug) in d:\Sourcen\NopCommerce_2.80\Libraries\Nop.Core\Plugins\PluginManager.cs:349

   Nop.Core.Plugins.PluginManager.Initialize() in d:\Sourcen\NopCommerce_2.80\Libraries\Nop.Core\Plugins\PluginManager.cs:144

[Exception: Die Datei oder Assembly "CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" oder eine Abhängigkeit davon wurde nicht gefunden. Es wurde versucht, eine Datei mit einem falschen Format zu laden.

]

   Nop.Core.Plugins.PluginManager.Initialize() in d:\Sourcen\NopCommerce_2.80\Libraries\Nop.Core\Plugins\PluginManager.cs:180

[InvalidOperationException: Von der Methode "Initialize" des Typs "Nop.Core.Plugins.PluginManager" für die Initialisierung vor dem Anwendungsstart wurde eine Ausnahme mit folgender Fehlermeldung ausgelöst: Die Datei oder Assembly "CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" oder eine Abhängigkeit davon wurde nicht gefunden. Es wurde versucht, eine Datei mit einem falschen Format zu laden.

.]

   System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +550

   System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +132

   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath) +90

   System.Web.Compilation.BuildManager.ExecutePreAppStart() +135

   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +516

[HttpException (0x80004005): Von der Methode "Initialize" des Typs "Nop.Core.Plugins.PluginManager" für die Initialisierung vor dem Anwendungsstart wurde eine Ausnahme mit folgender Fehlermeldung ausgelöst: Die Datei oder Assembly "CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" oder eine Abhängigkeit davon wurde nicht gefunden. Es wurde versucht, eine Datei mit einem falschen Format zu laden.

.]

   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9873784

   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101

   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +456

I have looked into the assembly path. The requested Assembly is existing twice.  Version 13.0.5.891 with MSIL as CPU and

one with AMD Version.

Both aparently with same signature

I have read through some threads mentioning that - besides other possibilities -

this could be an issue of 64Bit Lib referencing to the wrong version 32Bit

I have no idea how to change that.

I have wasted 2 Days now trying to solve this problem. I reinstalled the package several times.

Any help would be highly appreciated.

greetings

Sonia

Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Sonja,

Please try posting to the CR for Visual Studio space here:

http://scn.sap.com/community/crystal-reports-for-visual-studio

-Abhilash

Answers (1)

Answers (1)

former_member183750
Active Contributor
0 Kudos

Hello Sonja

See if compiling to frm 4.0 helps

Check to see that the correct CR runtime is being deployed:

http://scn.sap.com/docs/DOC-7824

- Ludek

Senior Support Engineer AGS Primary Support, Global Support Center Canada

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Share Your Knowledge in SCN Topic Spaces