部署.net 4.0 wpf应用程序问题
我一直在开发一个计划分发的应用程序。由于某种原因,我无法将其安装在其他计算机上。首先让我向您展示我的部署设置,也许我在那里做错了什么(我保留了所有默认值)。
部署设置:
我得到以下文件:
到目前为止,一切看起来都很棒!让我向您展示当我尝试在多台计算机上安装此应用程序时会发生什么:
。
计算机 1:(运行带有 Service Pack 1 的 Windows 7)
应用程序只需几秒钟即可安装,并且运行良好。 我可以将其卸载为:
该应用程序运行良好!
。
计算机 2:(运行带服务包的 Windows Vista)
它未安装:
当我单击安装时收到以下错误:
如您所见,我无法将其安装在那台计算机上。我尝试卸载它然后再次安装,但遇到了同样的问题。
。
。
计算机 3:(运行带 Service Pack 2 的 Windows XP)
当我运行 setup.exe 文件时,需要一段时间才能下载并安装所需的任何要求。安装我认为的内容花了 1 个小时:
当该部分最后完成时,我得到了错误提示:“您没有足够的磁盘空间”,而我的 C 驱动器上有 50GB 的可用磁盘空间。
所以它不适用于该计算机以太网。
。
。
计算机 4:(带有 Service Pack 2 的 Windows XP)
我收到以下错误:
。 。 。 。 。
。
为什么部署应用程序如此困难?该应用程序在所有安装了 Visual Studio 的计算机上运行良好。我应该尝试降级到 .Net 3.0 还是 .Net 2.0?
编辑
这是否是因为我可能无法发布应用程序?我免费获得了 Visual Studio,因为我的大学给了我它。我知道有学生版本可以尝试,而且它们每六个月就会过期。我使用 Visual Studio Ultimate Edition 大约一年了,每次启动 Visual Studio 时,它都不会像在我的笔记本电脑上那样说仅用于评估目的。我的启动画面实际上显示为:
I been working on a application that I am planing on distributing. For some reason I am not able to install it on other computers. first let me show you my deployment settings maybe I am doing something wrong in there (I left all the defaults).
Deployment settings:
after doing that I get the following files:
So far everything looks great! Let me show you what happens when I try installing this app on several computers:
.
Computer 1: (Running windows 7 with Service Pack 1)
application installs in a matter of seconds and it works fine.
I am able to uninstall it as:
THE APPLICATION WORKS GREAT!
.
Computer 2: (Running windows vista with service pack)
IT DOES NOT INSTALL:
when I click on install I get the following error:
so as you can see I was not able to install it on that machine. I tried uninstalling it then installing it again and I get the same problem.
.
.
computer 3: (running windows xp with service pack 2)
when I ran the setup.exe file it took a while to download and install whatever requirements it needed. It took 1 hour to install what I believe was the:
and when that part finished at the end I got an error saying: "you do not have enough disk space" and I have 50GB of free disk space on my c drive.
SO IT DID NOT WORK WITH THIS COMPUTER EATHER.
.
.
Computer 4: (windows xp with service pack 2)
I get the following error:
.
.
.
.
.
.
why is it so difficult to deploy an application. this application works great in all the computers that have visual studio installed. Should I try to downgrade to .Net 3.0 or maybe .Net 2.0?
Edit
Could this be because I might not be able to publish applications? I got visual studio for free because my university gave it to me. I know there are student versions where you can try and also that they expire every six months. I been using visual studio ultimate edition for about 1 year know and every time I launch visual studio it does NOT say for evaluation purposes only like on my laptop. My splash screen actually comes out as:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在先决条件中选择了“Microsoft .NET Framework 4 Client Profile”,但这就是您的应用程序的目标吗?检查您的应用程序属性 ->应用程序选项卡。通常,WPF 应用程序将以完整的 .Net 框架为目标。
You selected in your prerequisites the "Microsoft .NET Framework 4 Client Profile", but is that what your application is targeting? Check your application properties -> Application tab. Usually a WPF application will target the full .Net framework.