在Windows XP上运行WPF应用程序 [英] Running a WPF application on Windows XP

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

问题描述

我最近使用WPF构建了一个新的应用程序,以便我可以学习新的技术。现在我正在尝试部署应用程序,看起来好像在Vista系统上运行正常,但是在带有.Net fx 3.5SP1的Windows XP SP2机器上,它无法加载PresentationFramework.dll文件。 / p>

我对此进行了进一步的调查,发现我的xp测试机器上的PresentationFramework.dll文件与我的Vista开发机器上有什么区别



我很好奇的是,如果其他人也遇到这个问题,以及他们做了什么来纠正这种情况,以便他们可以在Windows Vista上开发,但将开发的应用程序部署到Vista和XP客户端。



谢谢。



我需要添加这有点...在vista机器和客户端机器上,我有.Net Fx 3.5 SP1。我做了一些挖掘,发现PresentationFramework.dll文件是一样的,除了最后一组版本号。



有没有人找到体面的工作对于这个问题?

解决方案

对不起,我离开了这个停滞,但我想出了我遇到的问题。原来在我用作测试台的Windows XP框中有腐败。



我正在Stackoverflow和另一个论坛之间工作,我正在编写Add - 为...当我知道答案时,这是我发布的,以防将来遇到问题。


我以为我' d发布在这里,所以
,我会参考,还
,以防其他人需要
参考它将来...我是
工作另一个Dinerware附件
使用WPF,虽然它在我的开发机器上运行
罚款,每个
时间我会去测试
机器(一个机器鬼像像在客户的
位置的现场是
),我不断得到奇怪的
处理错误。



我做了几小时在线搜索,只有
空手而归,直到本文运行



http://social.msdn.microsoft.com/Forums/en -US / WPF /螺纹/ 6e5de3d8-fc02-4504-b00f-7a2192d24a48 /



其中给出了下载
WIC(Windows Imaging Components)的链接,
位于此处:



http: //www.microsoft.com/downloads/details.aspx?FamilyID=8e011506-6307-445b-b950-215def45ddd8&displaylang=en



对于某些原因,发生了什么
是Windows映像组件
已经破坏了我的
应用程序正在寻找什么。要修复
的问题,您必须:



1)导航到
%windir%\ $ NtUninstallWIC $ \spuninst\
并在
中运行spuninst.exe文件。这将删除Windows
映像组件。 2)在
完全删除组件后,您将
然后使用上面的
第二个链接重新安装。



到目前为止,我还没有遇到任何进一步的
问题。




是一个什么疯狂的事情?



希望如果有人遇到这个问题,我可以帮助他们快速的把它放在那里。 >

正如我在论坛上所说的,希望这有助于其他人在将来遇到这个问题。


I recently built a new application using WPF, so that I can learn the new technology. Now that I am trying to deploy the application, it appears as if it is running fine on a Vista system, but on a Windows XP SP2 machine with the .Net fx 3.5SP1, it's not able to load the PresentationFramework.dll file.

I did some further investigation into this and discovered that there is a slight build difference between the PresentationFramework.dll files on my xp test machines vs. what is on my Vista development machine.

What I'm curious about is if anyone else has run into this issue as well, and what they did to remedy the situation so that they could develop on Windows Vista, but deploy the developed application to both Vista and XP clients.

Thanks.

I need to add to this a bit... on the vista machine and on the client machine, I've got .Net Fx 3.5 SP1. I had done a bit of digging, and found out that the PresentationFramework.dll file is the same, except the last set of versioning numbers.

Has anyone found a decent work around for this issue?

解决方案

Sorry that I left this stagnant, but I figured out the issue I was running into. Turned out that there was corruption in the Windows XP box I was using as a test bed.

I was working between stackoverflow and another forum for the package I was writing the Add-in for. When I learned of the answer, this is what I posted, in case I ran into issue in the future.

I thought that I'd post this here, so that I would have reference, and also in case anyone else would need reference to it for the future... I'm working on another Dinerware Add-on using WPF, and although it was running fine on my development machine, every time I'd go to run it on a test machine (a machine ghosted like it was in the field at a customer's location), I kept getting weird processing errors.

I did hours of searching online, only to come up empty handed until I ran across this article:

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/6e5de3d8-fc02-4504-b00f-7a2192d24a48/

which gives a link to the download of the WIC (Windows Imaging Components), located here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=8e011506-6307-445b-b950-215def45ddd8&displaylang=en

For some reason, what is/was happening is that the Windows Imaging components have become corrupt against what my application is looking for. TO fix the issue, you have to:

1) navigate to %windir%\$NtUninstallWIC$\spuninst\ and run the spuninst.exe file in there. That will remove the Windows imaging components. 2) after you have completely removed the components, you will then re-install them using the second link from above.

So far, I've not run into any further issues.

What a crazy thing that was?!?!?!?!?!?!!

Hopefully, if someone else runs into this issue, I may be able to help them out quick by >putting this out there.

As I said on that forum... hopefully this helps someone else out that runs into this issue in the future.

这篇关于在Windows XP上运行WPF应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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