[英]Crystal report not working after setup installed where .net is not installed
[英]Crystal report not working after setup installed
我知道已经有一些与我的问题相关的主题,但是我没有从中获得任何帮助。 我已经使用c#创建了一个Windows应用程序。 我创建了该项目的安装文件并安装在客户端系统中。 除水晶报表外,其他一切正常。 请在下面查看我的错误并在创建setupfile时出现问题时指导我。
Error::System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.Windows.Forms, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
at LpuDeExam.SeatingPlan.InitializeComponent()
at LpuDeExam.SeatingPlan..ctor()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at LpuDeExam.MainMenu.listView1_Click(Object sender, EventArgs e)
---------------------------
OK
-----------------------------------------------------------------------------------------------
看来您应该在运行应用程序的计算机上下载并安装正确的(我认为13.0.2000.0)“ Crystal Reports Runtime”版本。
如果您的应用程序是基于32位体系结构构建的,请从以下位置下载: http : //downloads.businessobjects.com/akdlm/crnetruntime/clickonce/CRRuntime_32bit_13_0_3.msi否则(64位)请使用以下链接: http: //downloads.businessobjects.com/akdlm/crnetruntime/clickonce/CRRuntime_64bit_13_0_3.msi
链接来自此讨论: http : //scn.sap.com/thread/3172181
我希望它将有助于解决您的问题。
对不起,您对主题的了解不够深-我认为所提供的链接可能不合适。
如果可以,并且您的应用程序是基于.NET Framework 4构建的,请从以下链接下载redist运行时程序包:
微星32位
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0.zip
(摘自网站: http : //scn.sap.com/thread/1903613 )
在开发应用程序的计算机上,请卸载先前下载的CR,重新启动计算机,然后尝试安装(如果有管理员权限)从上述链接获得的文件。
希望对您有所帮助。
关于安装文件的问题,据我在使用CR for VS 2010 .NET 4.0的应用程序的经历中所记得,我必须先下载正确的redist程序包,将其单独安装在客户端计算机上,然后再安装并使用应用程序,尽管我在构建安装设置包方面没有太多经验:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.