找不到运行该应用程序的运行时版本 [英] unable to find a version of the runtime to run this application

查看:702
本文介绍了找不到运行该应用程序的运行时版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

>我有一个使用Visual Studio 2005(在VB.Net中)编写的应用程序.当我在任何计算机上运行它时,无法找到运行该应用程序的运行时版本",而同一应用程序在其他一些PC上也成功运行

我已经完成了以下这些过程:
1.修复并重新安装.net framework2.0
2.我还重建了我的应用程序设置.
3.用防病毒软件扫描我的PC并安装新的更新的防病毒软件
4.更改machine.config
5.从我的项目中删除所有dll,以确保没有引用问题.
6.我格式化了我的电脑,然后重新安装了dotnet framwork2.0和我的项目.
7.我已经下载了.net框架清理工具.

>I have an application written using Visual studio 2005 (in VB.Net). When I run it on any machine I get "unable to find a version of the runtime to run this application" and this same application successfully some other PCs

And these following processes I have already done:
1. Repair and reinstall .net framework2.0
2. I also rebuild my application setup.
3. Scan my PC with antivirus and install new updated antivirus
4. Change the machine.config
5. Remove all dlls from my project so I ensure it no referential problem.
6. I have format my pc and reinstall dotnet framwork2.0 and my project.
7. I have download the .net framework clean up tools.

推荐答案

您的应用程序是否偶然使用.Net 3.0? .Net 3可以在VS2005上运行.
Is your application using .Net 3.0 by any chance? .Net 3 can run on VS2005.


我会尝试几件事

1.创建一个仅带有一个按钮的应用程序,单击该按钮时会显示一个消息框

尝试运行

如果可行,那么您很有可能会尝试引用尚未转移的某种类型的库,然后我将开始使用try catch块在各节中调试代码.

如果该块捕获到错误,则将其缩小.

2.在项目中,您可以通过进入项目属性来确定要使用的框架,然后在发布"选项卡上单击先决条件,它将使用其显示框架版本.

3.
I would try a couple of things

1. Create an app with just a button on that displays a message box on when clicked

try running that

if that works then you are more than likely trying to reference a library of some sort that you haven''t transfered across and I would then start to debug your code in sections using try catch blocks.

if the block catches an error then narrow it down.

2. in the project you can determine what framework you are using by going into the project properties and then on the publish tab click on prerequisites and it will show you the famework version its using

3. Google results


这篇关于找不到运行该应用程序的运行时版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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