WPF App Fails With System.MissingMethodException

别来无恙 提交于 2019-12-24 11:44:05

问题


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).

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?

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.

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.

I made this using .Net 3.5.

Any ideas?


回答1:


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.

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

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




回答2:


Did you use SP1? Is SP1 installed on the target machine?

Getting a full stack trace would allow you to diagnose this further.



来源:https://stackoverflow.com/questions/713384/wpf-app-fails-with-system-missingmethodexception

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!