cancel
Showing results for 
Search instead for 
Did you mean: 

Visual Studio 2012 Crystal Report Assembly not found

Former Member
0 Kudos

Hello,

I hope I am in the right section now, and I hope I did not post this before here today, if so I am sorry. This is urgend and I just cant remember if I completed rewriting this thread in a new post. But as I do not see it apear anywhere after some hours --

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)

0 Kudos

Hi Sonia,

Both versions are listed because one is 32 bit and the other is 64 bit and both 32 and 64 bit MSI's were installed, possibly.

I suggest you try setting your app to x64 and build/Deploy it as a test. If that works then it's MSIExec confusing the installer on which flavor to use.

Try searching MS's MSDN on how to use the BootStrapper method also, may resolve this issue.

Don

Former Member
0 Kudos

My solution consists of several projects which I can not easily switch the whole solution to 64 Bit so

I switched the one project that uses Crystal keeping the solution on mixed setting but I keep getting the same error.

I also use the same project on windows 7 64 Bit and there are no problems with that.

I searched the MSDN for the BootStrapper, but as far as I understand, this is for Deployment.

I don't want to deploy it I want it to run on this machine in Visual Studio Debug Mode.

Maybe if I remove the ones that are wrong version it would work?

I've attached a screenshot of my assembly folder. There exists only 1 Engine and 1 Design Module but dozens resources and double ClientDoc, ObjectFactory etc Modules

Former Member
0 Kudos

I also figured out, that actually there exists only 1 CrystalDecisions.ReportAppServer.ClientDoc.dll

although on the assembly I have 2 entries. Is there a way to figure out which assembly entry belongs to the existing dll?

0 Kudos

Hello,

In debug mode and because VS IDE is a 32 bit application you only add/need the 32 bit version. When compiled for 64 bit then CR will pick up that version.

Set the project to x86 or x64 then run it, should work. If not then make sure you installed the integrated exe and not jsut the runtime redist package on your DEV PC.

Don

Answers (0)