Consume WCF on localhost on VS2008 (Windows CE)

Asked

Viewed 45 times

0

I am trying to consume a WCF (localhost) in a Windows CE application on VS2008. If I try to do the same thing on VS2010, everything works since it automatically creates the proxy (app.config).

When I run the test line:

 var t = WebServiceConnection.webservice.Teste("v1.0.0.1");

I get the following exception:

{System.Net.WebException: WebException
   at System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke(String methodName, Object[] parameters, WebClientAsyncResult asyncResult)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at GPAColetor.ServicePicking.ColetaService.Teste(String parametro)
   at GPAColetor.VIEW.FrmLogin..ctor()
   at GPAColetor.Program.Main()
}

Any tips on how to solve this?

  • See if you can get help: http://www.techbubbles.com/net-framework/wcf-sample-in-visual-studio-2008/

  • Thank you my dear Paul, but the example shows the creation of a wcf. My WCF is stable, ta problem at the time of consuming even. When I consume it in vs2010, whether it’s hosted on the machine’s IIS or VS2010’s IIS Express, it works well, I can even debug. When it arrives at VS2008 it is that the supplication begins.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.