WPF应用程序失败,System.MissingMethodException [英] WPF App Fails With System.MissingMethodException

查看:173
本文介绍了WPF应用程序失败,System.MissingMethodException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个WPF应用程序使用Web服务。这是所有计算机上的失败,除了开发机的消息 - System.MissingMethodException。我想在这里失败的一点就是它试图访问远程Web服务(网站)的地步。

I made a WPF app that uses Web Services. It is failing on all computers except the dev machine with the message -- System.MissingMethodException. I guess the point where it fails is the point where it tried to access the Remote webservice (website).

有没有人曾与WPF和web服务的经验吗?我应该花2天多将它移植到.NET的WinForms,还是应该我一直试图使它运行?

Has anyone had any experience with WPF and webservices? Should I spend 2 more days porting it to .Net Winforms, or should I keep trying to make it run?

现在的问题是,在Vista中我看到的是此应用程序经历了一个错误,将关闭,并在XP中我只是一个系统错误对话框,我无法指出错误所在。

The problem is, in Vista all I see is 'This application has experienced an error and will shut down' and in XP I just a system error dialog and I can't point out where the error is.

我的猜测是有一些DLL这是对我的电脑,而不是其他人的电脑里面有缺少方法导致错误。

My guess is that there is some DLL which is on my PC and not on other people's PC which has the missing method causing the error.

我提出这个使用。NET 3.5。

I made this using .Net 3.5.

任何想法?

推荐答案

事实上,你已经确定你的问题的最可能的原因:你的开发计算机上已安装的库和督促机器之间的不匹配

Indeed, you have identified the most probable cause of your problem: a mismatch between the installed libraries on your dev machine and the prod machines.

您可以使用fuslogvw.exe,使融合登录绑定错误。

You can use the fuslogvw.exe to enable Fusion to log binding errors.

另外,请检查您是否已经安装了.NET框架到处(SP1?)

Also check whether you have installed the same (versions of) .NET framework everywhere (SP1?)

这篇关于WPF应用程序失败,System.MissingMethodException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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