我使用使用水晶报表的 Visual Studio 2010 创建了 c# windows 应用程序。现在,当我在 Google 上搜索了很多以在我的安装程序设置中嵌入水晶报告包时,在将水晶报告包添加到设置中也提到了这一点。但我决定在客户端机器上安装我的 windows 应用程序后手动安装水晶报表包。
这样做会在安装时出现错误
could not load one or more assembly
然后我首先安装了水晶报告包,然后我尝试安装我的应用程序,但这样做给了我错误:
Stream Cannot be null
日志如下所示..
*** Assembly Binder Log Entry (8/31/2012 @ 1:14:42 AM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Windows\system32\MsiExec.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = mayu-PC\mayu
LOG: DisplayName = BusinessObjects.Licensing.KeycodeDecoder, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
(Fully-specified)
LOG: Appbase = file:///C:/Windows/system32/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = MsiExec.exe
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file: C:\Users\mayu\AppData\Local\Temp\CFGA0C6.tmp
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Windows/system32/BusinessObjects.Licensing.KeycodeDecoder.DLL.
LOG: Attempting download of new URL file:///C:/Windows/system32/BusinessObjects.Licensing.KeycodeDecoder/BusinessObjects.Licensing.KeycodeDecoder.DLL.
LOG: Attempting download of new URL file:///C:/Windows/system32/BusinessObjects.Licensing.KeycodeDecoder.EXE.
LOG: Attempting download of new URL file:///C:/Windows/system32/BusinessObjects.Licensing.KeycodeDecoder/BusinessObjects.Licensing.KeycodeDecoder.EXE.
LOG: All probing URLs attempted and failed.
现在我不知道可能是因为没有设置水晶报告包或任何其他原因。
那么我应该在我的安装项目中包含水晶报表的最佳方法是什么,因为我可以在客户端机器上手动安装水晶报表包?