calling WCF Service from Windows store app via Surface fails, but...
-
Hi@all :) I again have some trouble with my windows store app, when it comes to calling a wcf service... :(( if i´m debugging either with the Local Machine and the simulator everything works fine; the service gets called and then updates a table in the database... if I change to Debug|ARM & Remote Machine (namely the Surface) my app starts as expected but when it comes to the update process in my wcf service I get the following err message: Message: There was no endpoint listening at http://localhost:8733/Design\_Time\_Addresses/Survey\_Service/Service1/ that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. Inner Exception: Unable to connect to remote server, no connection could be made because the target machine actively refused it Source:System.ServiceModel.Internals I checked my firewall settings, turned it off, set filter to allow the port 8733. nothing helped... earlier this morning I got a similar error message, because I tried to pass an XDocument to the service. lessons learned, that error occurred simply because an XDocument is not serializable... but now I completely ran out of ideas... :sigh: any help is highly appreciated... thanks in advance & kind regards, clodetta edit: WCF Test Client.exe loads the service flawlessly... edit 2: maybe it´s a network-related problem?´ the tablet is connected via WiFi, all I know is that in order to use a remote machine for debugging purposes it is essentially necessary that both the surface and the dev pc must reside in the same subnet... maybe the router is blocking requests? Any experiences with that? kind regards
-
Hi@all :) I again have some trouble with my windows store app, when it comes to calling a wcf service... :(( if i´m debugging either with the Local Machine and the simulator everything works fine; the service gets called and then updates a table in the database... if I change to Debug|ARM & Remote Machine (namely the Surface) my app starts as expected but when it comes to the update process in my wcf service I get the following err message: Message: There was no endpoint listening at http://localhost:8733/Design\_Time\_Addresses/Survey\_Service/Service1/ that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. Inner Exception: Unable to connect to remote server, no connection could be made because the target machine actively refused it Source:System.ServiceModel.Internals I checked my firewall settings, turned it off, set filter to allow the port 8733. nothing helped... earlier this morning I got a similar error message, because I tried to pass an XDocument to the service. lessons learned, that error occurred simply because an XDocument is not serializable... but now I completely ran out of ideas... :sigh: any help is highly appreciated... thanks in advance & kind regards, clodetta edit: WCF Test Client.exe loads the service flawlessly... edit 2: maybe it´s a network-related problem?´ the tablet is connected via WiFi, all I know is that in order to use a remote machine for debugging purposes it is essentially necessary that both the surface and the dev pc must reside in the same subnet... maybe the router is blocking requests? Any experiences with that? kind regards
When you run on the local machine it is localhost. When on a different device it is no longer localhost Hope this helps.
Frazzle the name say's it all
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
John F. Woods