Click here to Skip to main content
12,503,679 members (31,512 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: WCF service WinCE
hi experts,

I have one WCF Service deployed in Windows 7 computer.

It is working fine.

I have a Desktop Application of compact framework 3.5 in WinCE 5.0 Device which is connecting above service at every 30 second.

It is some time working fine. but some time it is giving below error on device.

There was no endpoint listening at http://MyIPAddress:port/service1.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
9/14/2012 2:55:54 PM URL http://MyIPAddress:port/service1.svc


how it is possible, i can not understand.

Please provide solution if you have.

Thanks in advance
Posted 14-Sep-12 1:35am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Use it in your code where you intialize your Service object

var binding = new BasicHttpBinding();
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm;
binding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;
binding.MaxReceivedMessageSize = Int32.MaxValue;
binding.ReaderQuotas.MaxBytesPerRead = Int32.MaxValue;
binding.ReaderQuotas.MaxArrayLength = Int32.MaxValue;
binding.ReaderQuotas.MaxDepth = Int32.MaxValue;
binding.ReaderQuotas.MaxNameTableCharCount = Int32.MaxValue;
binding.ReaderQuotas.MaxStringContentLength = Int32.MaxValue;
binding.ReceiveTimeout = new TimeSpan(24, 0, 0);
 
EndpointAddress ep = new EndpointAddress("yourEndPoint");
YourService m_MyService = new YourService.SomeService(binding, ep);
  Permalink  
v2
Comments
Mr. Mahesh Patel 14-Sep-12 9:51am
   
I am developing application for winCE device
your code is not supported in WinCE based device in compact framework 3.5

My application in VB.net Compact framework 3.5 with WinCE 5.0
Kuthuparakkal 14-Sep-12 9:53am
   
Then you should tag your question in that way. Use Improve Question Widget
Mr. Mahesh Patel 14-Sep-12 9:57am
   
dear, it is already tagged as WinCe

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160919.1 | Last Updated 14 Sep 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100