Windows XP上带有WCF的C#Windows窗体应用程序 [英] C# Windows Form Application with WCF on Windows XP

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

问题描述

大家好,

只是一个简单的问题-

我有一个Windows窗体(C#),带有在VS 2008,Windows 7上构建的WCF参考.
一切正常.表单连接到服务,获取我需要的数据,并将其输出到表单.

一旦将应用程序部署/移动到Windows XP Pro计算机上,将无济于事!

我安装了所有更新的3.5、3.0和2.0框架.

以前有没有人遇到过类似的问题?还是知道可能出了什么问题?也许我需要发布所有内置参考的应用程序?

感谢您的帮助!

Xav.

Hi guys,

Just a quick question -

I have a Windows Form (C#) with a WCF reference built on VS 2008, Windows 7.
Everything works ok. The form connects to the service, gets the data I need, and outputs it to the form.

Once I deploy/move the application to a Windows XP Pro machine - nothing works!

I have 3.5, 3.0 and 2.0 frameworks installed with all the updates.

Has anyone had a similar issue before? Or knows what could be going wrong? Perhaps I need to release the app with all references inbuilt?

Thanks for your help!

Xav.

推荐答案

我遇到了这个问题,这是问题所在的第三方DLL(在这种情况下,我认为是.Net MySQL库). br/>
但是,是的,如果您已经安装了所有框架并对其进行了修补,那么您可能正在寻找参考.检查您要获取/记录的错误,如果这是组装问题,则应该可以很快发现它.您可以烘烤它,也可以将DLL复制到目标计算机以使其打勾.

干杯.
I ran into this and it was a third party DLL that was the problem (I think in that case it was the .Net MySQL library).

But, yes, if you''ve got all the frameworks in and patched, you''re likely looking for a reference. Check the error you''re getting/logging and if it''s an assembly problem you should be able to spot it very quickly. You can either bake it in or just copy the DLL to the target machine to make it tick.

Cheers.


前一天我碰到了类似的东西,结果发现有一个异常被抛出,只是被吞下而不是崩溃了.

将所有WCF方法调用包装在try/catch中,并显示/记录异常,这揭示了我的特定问题,因此很容易解决. (无论如何,我应该从一开始就这样做!:doh:)
I ran into something similar the other night and it turned out there was an exception being thrown that was just being swallowed rather than crashing the app.

Wrapping all the WCF method calls in try/catch and displaying/logging the exception revealed my particular issue which was then easy to solve. (I should have done this from the beginning of course anyway! :doh: )


您是否正在使用WAS托管?如果是这样,我猜它在XP中不支持
Are you using WAS hosting? If so i guess it''s not supported in XP


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

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