简体   繁体   English

使用System.ServiceModel时出现System.TypeLoadException

[英]System.TypeLoadException when using System.ServiceModel

I'm using a Core project to provide all datas to my Android project and my IOS project. 我正在使用Core项目向Android项目和IOS项目提供所有数据。

So in the Core Project I'm using a WSHttpBinding binding. 因此,在核心项目中,我正在使用WSHttpBinding绑定。 It request the using of " System.ServiceModel ". 它要求使用“ System.ServiceModel ”。

The line " using System.ServiceModel " give me the " System.TypeLoadException " when the app is executing the " using System.ServiceModel ". 当应用程序执行“ using System.ServiceModel ”时,“ using System.ServiceModel ”行为我提供了“ System.TypeLoadException ”。

Thanks in advance ! 提前致谢 !

It's not fully implemented yet. 尚未完全实施。 You can check Mono System.ServiceModel class status here which is the difference between Mono and .Net.There are some WSHttpBinding hackings on Mono's page though. 您可以在此处检查Mono System.ServiceModel类的状态,这是Mono和.Net之间的区别。尽管在Mono的页面上有一些WSHttpBinding黑客。

Also, there is a similar question to this, and the accepted answer says : 另外,有一个与此类似的问题,被接受的答案

Mono does not currently support WSHttpBinding, it is a work in progress, and the support is very spotty. Mono当前不支持WSHttpBinding,这是一个正在进行的工作,并且支持非常不稳定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM