Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
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 :

XML
SessionChannel sessionchnl = SessionChannel.Create(m_Configuration, endpointDescription, clientCertificate);

Thes error occour
XML
<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'


Anyone please help me to solve this error.

I understand tha the System.ServiceModel assembly is required.
please help me to download this assembly.
Posted

 
Share this answer
 
Comments
Tanumay99 3-Mar-13 23:55pm    
Thank you for this solution
First I add reference System.Service and then System.ServiceModel .

I used System.ServiceModel in the code and the error is solve.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900