WinForms应用程序不向外Visual Studio中运行 [英] WinForms App Doesn't Run Outside Visual Studio

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

问题描述

我在使用Visual Studio 2013,C#中,Windows与Windows 7旗舰版新的笔记本电脑窗体应用程序。

I'm using Visual Studio 2013, C#, Windows Forms application on a new laptop with Windows 7 Ultimate.

从内VS,如果我编译和运行我的应用程序,它会打开罚款(没有错误或警告)。如果进入调试文件夹,双击exe文件,应用程序不会打开。它出现在任务管理器,但我不能杀死它。我没有得到任何错误消息。因为它的运行,我再也不能生成或运行从VS项目作为文件正在使用中。

From within VS, if I Build and run my app, it opens fine (no errors or warnings). If go into the debug folder and double click the exe file, the app doesn't open. It appears in task manager, but I can't kill it. I get no error messages. Because it's running, I can no longer Build or run the project from VS as the file is in use.

我试图建立释放并得到了同样的问题。

I tried Building to Release and got the same problem.

您可以通过任务管理器摆脱的唯一方法是重新启动笔记本电脑。

The only way to get rid from the task manager is to restart the laptop.

这不是一个问题,在我的旧电脑 - 这也有Win7旗舰版和VS2013

This wasn't a problem on my old PC - which also had Win7 Ultimate and VS2013.

你知道为什么我的exe文件没有运行,为什么我不能在任务管理器杀呢?任何帮助,将不胜感激。

Do you know why my exe isn't running and why I can't kill it in Task Manager? Any help would be appreciated.

推荐答案

我有完全相同的问题。我有VS快递2015年Windows桌面。最近建立的应用程序只能从Visual Studio的工作,老构建做工精细。经过一番研究,我发现,问题的探析是我的Avast杀毒软件2015年,导致无法运行新的应用程序。
所以我建议,如果你有杀毒软件的运行,暂停了一段时间,看看会发生什么。如果这确实是有人对你的问题的原因,配置防病毒,这样就不会加载时,请检查您的应用程序。
在Avast的:设置 - >主动保护 - >文件系统保护
(不知道这是excatly如此,因为我在其他语言非英语已经停住)
希望的作品

I had exactly the same problem. I have VS Express 2015 for Windows Desktop. Recently build app worked only from Visual Studio, old builds work fine. After some research I found that the promblem was my Avast Antivirus 2015, which prevented the new apps from running. So I suggest, if you have Antivirus running, pause it for a while and see what happens. If indeed that is was the cause for your problems, the configure Antivirus so that it will not check your app when loading. In Avast: Settings->Active protection->File system protection (Not sure if that is excatly so, because I have Avast in other language than english) Hope that works!

这篇关于WinForms应用程序不向外Visual Studio中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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