简体   繁体   English

运行c#windows应用程序时出错

[英]Error in running c# windows application

I wrote ac# windows application and I want to run it on other computer without any installation. 我写了ac #windows应用程序,我想在没有任何安装的情况下在其他计算机上运行它。

I setup the netCFSetup v35 but when I run my application this error was apeare : 我设置了netCFSetup v35但是当我运行我的应用程序时,这个错误是apeare:

the application failed to init.... 应用程序无法初始化....

can anyone help me please?... 有人可以帮我吗?...

I think you are installing wrong framework for you application. 我认为你正在为你的应用程序安装错误的框架。

Since its a windows application i suggest your install .Net Framework of Desktop. 由于它是一个Windows应用程序,我建议您安装.Net Framework of Desktop。 The one you are installing is of Compact Framework (CF in filename netCFSetup v35) which was used for Windows Mobile 6.5 or earlier. 您正在安装的是Compact Framework(文件名为netCFSetup v35中的CF),它用于Windows Mobile 6.5或更早版本。

If you created your app in .Net 3.5 version. 如果您在.Net 3.5版本中创建了应用程序。 install this version 安装此版本

http://www.microsoft.com/en-us/download/details.aspx?id=21 http://www.microsoft.com/en-us/download/details.aspx?id=21

To know in which version of .Net Framework your app is written in, go to properties section of project. 要了解您的应用程序所在的.Net Framework版本,请转到项目的属性部分。 There you will get your version number. 在那里你会得到你的版本号。

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

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