Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

1 solution

Use it in your code where you intialize your Service object

C#
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);
 
Share this answer
 
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)



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