Click here to Skip to main content
13,097,673 members (54,889 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
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);
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 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 |
Web01 | 2.8.170813.1 | Last Updated 14 Sep 2012
Copyright © CodeProject, 1999-2017
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