Winform发布很好,但安装程序生成的.exe并不起作用。

编程入门 行业动态 更新时间:2024-10-27 01:25:36
本文介绍了Winform发布很好,但安装程序生成的.exe并不起作用。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在阅读错误代码半天后,我终于为我的桌面应用程序安装了一个正常工作的安装程序。但是在运行安装程序后,我的程序打开并显示一条错误消息:

After half a day of reading error codes I finally got a working installer made for my desktop application. However after running the installer my program opens with an error message saying:

" WindowsFormsApplication1已停止工作

"WindowsFormsApplication1 has stopped working

Windows可以在线检查解决方案问题。

Windows can check online for a solution to the problem.

>在线查看解决方案并关闭程序

> Check online for a solution and close the program

>关闭该计划

>调试程序"

并在"查看问题详细信息"中所有它给我的是:

and in "view problem details" all it gives me is:

"

问题签名: 问题事件名称: CLR20r3 问题签名01: csharpsimpleserver.exe 问题签名02: 1.0.0.0 问题签名03: 5824de62 问题签名04: System.Windows.Forms 问题签名05: 2.0.0.0 问题签名06: 54d468f6 问题签名07: 199a 问题签名08: 2 问题签名09: PSZQOADHX1U5ZAHBHOHGHLDGIY4QIXHX 操作系统版本: 6.3.9600.2.0.0.256.4 区域设置ID: 1033 在线阅读我们的隐私声明: go.microsoft/fwlink/?linkid=280262 如果没有在线隐私声明,请离线阅读我们的隐私声明: C:\ Windows \system32 \\\-US \ _erofflps.txt"

Problem signature: Problem Event Name: CLR20r3 Problem Signature 01: csharpsimpleserver.exe Problem Signature 02: 1.0.0.0 Problem Signature 03: 5824de62 Problem Signature 04: System.Windows.Forms Problem Signature 05: 2.0.0.0 Problem Signature 06: 54d468f6 Problem Signature 07: 199a Problem Signature 08: 2 Problem Signature 09: PSZQOADHX1U5ZAHBHOHGHLDGIY4QIXHX OS Version: 6.3.9600.2.0.0.256.4 Locale ID: 1033 Read our privacy statement online: go.microsoft/fwlink/?linkid=280262 If the online privacy statement is not available, please read our privacy statement offline: C:\Windows\system32\en-US\erofflps.txt"

对我来说什么都没告诉我。我可以在.NET Framwokr 4.6.2上确认我正在尝试安装桌面应用程序的机器。我的程序要求3.5,但这不应该是一个问题吗?通常这些东西是向后兼容的?

Which to me tells me nothing. I can confirm the machine I'm trying to install my desktop application on has .NET Framwokr 4.6.2. My program asks 3.5 but this shouldn't be a problem correct? Usually these things are backwards compatible?

推荐答案

您好,

欢迎来到MSDN论坛。

Welcome to the MSDN Forum.

正如我们所知,应用程序在具有高兼容性的.NET Framework版本上运行,.NET Framework尝试最大化向后兼容性。通常,为特定版本的平台开发的应用程序将在该平台的后期版本上运行。应用程序可以控制运行它的.NET Framework版本,但组件不能。由于这种限制,兼容性保证对组件尤为重要。从.NET Framework 4开始,您可以指定组件在多个版本中保持兼容的程度。但在实践中,这种兼容性可以通过.NET Framework中看似无关紧要的更改和编程技术的变化来打破。

As we know an application runs on the version of the .NET Framework with high compatibility, the .NET Framework tries to maximize backward compatibility. In general, an application that was developed for a particular version of a platform will run on later versions of that platform An application can control the version of the .NET Framework on which it runs, but a component cannot. Because of this restriction, compatibility guarantees are especially important for components. Starting with the .NET Framework 4, you can specify the degree to which a component is expected to remain compatible across multiple versions. But in practice, this compatibility can be broken by seemingly inconsequential changes in the .NET Framework and changes in programming techniques.

高兼容性并不意味着应用程序构建在低版本中运行 ;也可以在高版本的.NET Framework中运行。它无法保证应用程序可以在.NET Framework的更高版本上完全运行。 所以微软支持 并排执行,这是运行的能力同一台计算机上的多个版本的应用程序或组件。您可以在同一台计算机上同时拥有多个版本的公共语言运行库,以及使用运行时版本的多个版本的应用程序和组件。

High compatibility does not mean an application buildrun in low versioncan also run in thehigh version of the .NET Framework .Itcan't guarantee an application can be run completelyon later versions of the .NET Framework. SoMicrosoft support thatSide-by-side execution whichis the ability to run multiple versions of an application or component on the same computer. You can have multiple versions of the common language runtime, and multiple versions of applications and components that use a version of the runtime, on the same computer at the same time.

由于.NET Framework 4.6.2仅向后兼容.NET Framework 4.0或稍后,如果需要,您应该安装.NET Framework 3.5(包括2.0)。

Since.NET Framework 4.6.2 onlybackward-compatible with .NET Framework 4.0orlater, you should install .NET Framework 3.5(including 2.0)if you need.

请参阅链接: 版本.NET Framework中的兼容性

最好问候,

BestRegards,

Bob

更多推荐

Winform发布很好,但安装程序生成的.exe并不起作用。

本文发布于:2023-11-13 12:19:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1584342.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:很好   安装程序   Winform   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!