如何创建.Net窗口应用程序设置项目有水晶报告?

时间:2012-08-31 05:44:11

标签: c# .net visual-studio-2010 crystal-reports-2010

我使用Visual Studio 2010创建了c#windows应用程序,它使用水晶报表。现在我用google搜索了我的安装程序设置中嵌入的crytal报告包,Adding crystal report package to setup中也提到了这一点。但我决定在客户端计算机上安装我的Windows应用程序后手动安装crystal report包。

这样做会在安装时给出错误

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.

现在我不知道可能是因为没有设置或任何其他原因的水晶报告包。

那么最好的方法是在我的安装项目中包含水晶报告,因为我可以在客户端计算机上手动安装Crystal报表包吗?

0 个答案:

没有答案