简体   繁体   English

如何正确地将VB.NET Windows Appliction导出为EXE?

[英]How to properly export a VB.NET Windows Appliction as EXE?

I would like to export a .NET Windows application as exe . 我想将.NET Windows应用程序导出为exe I would normally pick up the EXE file from the bin\\Debug folder and run directly in the development machine. 我通常会从bin\\Debug文件夹中提取EXE文件,然后直接在开发计算机中运行。 In this case, the application doesn't show any error. 在这种情况下,应用程序不会显示任何错误。

But when I copy the same .exe to another machine and try to run the application, I get the following error. 但是,当我将相同的.exe复制到另一台计算机并尝试运行该应用程序时,出现以下错误。 Can somebody help me to identify what I'm missing here? 有人可以帮助我确定我在这里缺少什么吗?

错误

I'm very new to .NET Windows applications. 我是.NET Windows应用程序的新手。

It looks like your application has dependencies on third party assemblies that have not been deployed to the target machine. 看来您的应用程序依赖于尚未部署到目标计算机的第三方程序集。 You must make sure that you deploy those third party dependencies on any machine that runs your program. 您必须确保将这些第三方依赖项部署在运行程序的任何计算机上。 Your program works on your development machine because you have, presumably, installed the necessary assemblies when you installed the dev tools for the third party product. 您的程序可在开发计算机上运行,​​因为在安装第三方产品的开发工具时,大概已经安装了必要的程序集。

The error message indicates that you application has a dependency on Crystal Reports. 该错误消息表明您的应用程序对Crystal Reports具有依赖性。 So you probably need to deploy the Crystal Reports redistributable package. 因此,您可能需要部署Crystal Reports可再发行程序包。 Once you've cleared that up, there may be other dependencies to resolve. 清除问题后,可能还有其他依赖项需要解决。

wrap a try .... catch around the problematic code, and run through it , find out why its throwing the error then from there post another question / or edit yours, i believe that is the better way to go. 尝试一下....抓住有问题的代码,然后运行它,找出为什么它抛出错误,然后从那里发布另一个问题/或编辑您的问题,我相信这是更好的方法。 - it will tell you in way more detail then that error what went wrong, and most likely why. -它将以更详细的方式告诉您该错误的出处以及最可能的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM