VB设置项目未运行 [英] VB set up project is not running

查看:91
本文介绍了VB设置项目未运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在另一个系统(系统没有Visual Studio,Crystal Report 2008)中安装VB.NET项目设置时,显示模块1的类型初始化器抛出异常" 错误.

在模块1中,我声明:

When I install my VB.NET project setup in another system (system has no Visual Studio, Crystal Report 2008) shows "type initializer for module 1 threw an exception" error.

In module 1, I declared:

Public cryRpt As New ReportDocument,  Public crtableLogoninfos As New TableLogOnInfos, Public crtableLogoninfos As New TableLogOnInfos,  Public crtableLogoninfos As New TableLogOnInfos,  Public crtableLogoninfo As New TableLogOnInfo,   Public crConnectionInfo As New ConnectionInfo,Public CrTables As Tables, Public reportpath As String = Application.StartupPath.ToString, Public str As String,   Public CrystalReportViewerObject As Object,  Public ReportName As String , Public rptp As String = "",   Public Reportformula As String)



有人可以帮我吗.

我的项目是一个VB.NET Windows应用程序.在Visual Studio 2008中,报表在Crystal Report 2008中.在我的PC上运行相同的设置,但未显示错误.

:〜



Can anybody help me, please.

My project is a VB.NET Windows application. In Visual Studio 2008, reports are in Crystal report 2008. The same setup is running on my PC without showing the error.

:~

推荐答案

搜索Crystal Reports合并模块.
它们的名称应等于或类似于" CRRuntime_12_0.msm ".

您将不得不四处搜寻,但它们都在某个地方.我找到它们一次,但记得花了我很长时间才找到它.

然后将它们添加到您的安装项目中.
右键单击安装项目->添加->合并模块
选择您需要的. (通常是2个文件(一种语言是完整的一种))
重建设置,然后重试.

在另一台PC上但未在另一台PC上收到此错误的原因是,您很可能在PC上安装了Crystal Reports设计器,因此还需要运行Crystal Reports所需的所有DLL.另一台PC没有这些DLL,因此会引发此错误.
Search for the Crystal Reports Merge modules.
They should have a name equal or similar to ''CRRuntime_12_0.msm''.

You will have to search far and wide, but they are out there somewhere. I found them once, but remember it took me a long time to do so.

Then add those to your setup project.
Right click on setup project --> Add --> merge modules
Select the ones you need. (Typically 2 files (a language one and the full one))
Rebuild the setup and try again.

The reason you get this error on another PC but not yours is that you most likely have the Crystal reports designer installed on your PC and hence also all the needed DLLs to run the Crystal reports. The other PC doesn''t have those DLLs, so it''s throwing this error.


这篇关于VB设置项目未运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆