EXE在某些机器上未运行 [英] EXE is not running in some machines

查看:85
本文介绍了EXE在某些机器上未运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用C#代码创建了一些Windows控制台应用程序.在构建应用程序之后.

.exe文件在构建应用程序的计算机上成功运行,而我试图在其他计算机上运行的.exe文件则引发未处理的异常.

请任何人帮我解决此问题.

错误:无法运行此exe引用的dll中存在的某些功能.

附注:我无法在此处发布错误消息,因为它是IP病毒.

I have created some windows console application using C# code. After buidling the application.

.exe file runs successfully on machine where application is built, the same .exe file i am trying to run on some other machine it is throwing unhandled exception.

Please can any one help me to resolve this issue.

Error: Unable to run some function present in dll which is referring with this exe.

P.S: i cant post error message here as it is IP voilation.

推荐答案

有两种可能:
There''re two things possible:

  1. .NET已安装在另一台计算机上,但版本太旧.
    您可以尝试在另一台计算机上安装.NET的最新版本,或将项目文件中的目标框架设置为较旧的版本.
  2. .NET在另一台计算机上未安装.您需要在另一台计算机上安装.NET Framework.

  1. .NET is installed on the other machine, but a too old version.
    You can try to install the latest version of .NET on the other machine, or set the Target Framework in your project file to a older version.
  2. .NET isn''t installed on the other machine. You need to install the .NET Framework on the other machine.


如果您的另一台计算机运行Windows 7,则默认情况下安装.NET Framework 4.0,在Windows 2008 R2计算机上,默认情况下安装.NET 3.5,在Vista计算机和Windows 2008计算机上,.NET Framework 3.0为默认.


If your other machine runs Windows 7, the .NET Framework 4.0 is installed by default, on a Windows 2008 R2 machine, the .NET 3.5 is installed by default and on a Vista machine and a Windows 2008 machine, the .NET Framework 3.0 is installed by default.


我愿意打赌这是C#而不是C,并且您需要在目标计算机上安装.NET.请正确标记您的问题
I am willing to bet this is C# not C, and that you need to install .NET on the target machine. Please tag your questions correctly


这篇关于EXE在某些机器上未运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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