问题与我的C#APP [英] PROBLEM WITH MY C# APP

查看:85
本文介绍了问题与我的C#APP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用有问题;当我在Visual Studio中进行正常调试时它很顺利,当我构建解决方案时它也运行良好,现在,问题是,当我构建安装文件时,我将它安装在我自己的计算机上,当我运行它时第一次它和调试模式一样,但是在没有打开它的20分钟或更长时间后,它说:C:/ Users / myusername / Documents / Visual Studio 2013 / Projects / myProjectname / project_SETUP / debug / myApp_SETUP.exe不是一个有效的win32应用程序。



我整整一周试图解决这个问题,直到今天都没有发生。



附加信息:



在Visual Studio 2013中使用C#,.NET Framework 4.5,在任何CPU中调试(也尝试过for x86)

我的电脑是32位操作系统(x86),安装了NET Frw 4.5,4.0,3.5,3.0。



请帮助!!!!!!



提前致谢...



[解决方案]



嗯,谢谢你们帮助我解决这个问题的人,虽然我最终只是在另一台计算机的Program Files文件夹中复制并粘贴我的Project的Release文件夹而结束了它并且运行得很好!

解决方案

尝试在您控制的干净系统上安装应用程序 - 您是否有用于测试的虚拟机基础架构?从所有的评论和你的解释看来,你的系统本身似乎是一种错误的行为 - 我会通过安装(如果这没有帮助)将其作为下一步的规则来构建新鲜的参考系统。你有可以使用的构建服务器(或同事PC)吗?


ChrisCreateBoss写道:



但是我有一个更有效的想法,我将从我的解决方案中删除安装项目,现在,给我关于如何使用WiX安装程序的说明。

使用Wix很多比Visual Studio安装项目模板更好的想法。我试着用我过去的答案解释它:

自定义安装项目 [ ^ ],

如何根据处理器架构类型(32位或64位)有条件地安装组件? [< a href =http://www.codeproject.com/Answers/610166/Howplustoplusconditionallyplusinstallpluscomponent#answer2target =_ blanktitle =New Window> ^ ],

< a href =http://www.codeproject.com/Answers/665435/installshield-and-Visual-Studio-2012#answer1> installshield和Visual Studio 2012 [ ^ ]。



-SA

I have a problem with my app; When I make the normal debug inside Visual Studio it goes well, when I build the solution it also works well too, now, the problem is, when I build the setup file, I install it on my own computer, when I run it for first time it goes as well as debug mode, but after 20 minutes or more time without opening it, then it says: "C:/Users/myusername/Documents/Visual Studio 2013/Projects/myProjectname/project_SETUP/debug/myApp_SETUP.exe is not a valid win32 application".

I've been one whole week trying to solve this problem and nothing happens 'til today.

Additional Info.:

Made with C# in Visual Studio 2013, .NET Framework 4.5, Debug in Any CPU(also tryed just for x86)
My computer is a 32-bit OS (x86) with NET Frw 4.5, 4.0, 3.5, 3.0 installed.

PLEASE HELP ME!!!!!!

Thanks in advance...

[SOLUTION]

Well, thanks for all the people that helped me with this problem, though I finally ended with the conclusion of just copying and pasting my Project's Release Folder in the Program Files folder of another computer and it worked nicely and properly!!

解决方案

Try to install your application on a "clean" system you control - do you have a vm-infrastructure for testing? From all that comments and your explainations it seems your system itself is somehow missbehaving - I would rule that out as a next step by doing the install (and if that doesn't help) also the build on a "fresh" reference system. Do you have a build-server (or a coworkers pc) you could use?


ChrisCreateBoss wrote:


But I have a more efficient idea, I will delete the setup project from my solution, now, give me the instruction on how to make an installer with WiX.

Using Wix is much better idea than Visual Studio Setup project template. I tried to explain it in my past answers:
Custom setup project[^],
How to conditionally install components based on processor architecture type (32-bit or 64-bit)?[^],
installshield and Visual Studio 2012[^].

—SA


这篇关于问题与我的C#APP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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