OPC UA错误:我如何解决“ System.ServiceModel 3.0.0.0"引用错误? [英] OPC UA Error : How I solve " System.ServiceModel 3.0.0.0" referenced error?
本文介绍了OPC UA错误:我如何解决“ System.ServiceModel 3.0.0.0"引用错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想检索 Simatic.Net servaer信息。我能够与服务器连接。但是当我在连接服务器后尝试使用以下代码获取服务器信息时:
I want to retrieve the Simatic.Net servaer information. I am able to connect with the server. But when i am trying to get server Information using the following code after connect with server :
SessionChannel sessionchnl = SessionChannel.Create(m_Configuration, endpointDescription, clientCertificate);
Thes错误发生
Thes error occour
<pre lang="xml">
Error 1 The type 'System.ServiceModel.ClientBase`1<T0>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
任何人请帮我解决这个错误。
我理解需要 System.ServiceModel 程序集。
请帮我下载这个程序集。
Anyone please help me to solve this error.
I understand tha the System.ServiceModel assembly is required.
please help me to download this assembly.
推荐答案
阅读以下内容: http://stackoverflow.com/questions/5647291/system-servicemodel-missing [ ^ ]
Read the following : http://stackoverflow.com/questions/5647291/system-servicemodel-missing[^]
首先我添加引用 System.Service 然后 System.ServiceModel 。
我在代码中使用了System.ServiceModel,错误就解决了。
First I add reference System.Service and then System.ServiceModel .
I used System.ServiceModel in the code and the error is solve.
这篇关于OPC UA错误:我如何解决“ System.ServiceModel 3.0.0.0"引用错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文