Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WCF Synchronize WM5
In my application i am using wcf sync service to sync my local database in windows mobile with server. when i am using my localhost where both client and server are in same computer it works fine, now i hosted my wcf on server, now when i am trying to sync the databses it is giving me Target Invocation Exception The remote name could not be resolved No such host is known these exceptions can any one please help me to figure it out to solve my problem
 
Many Thanks
Posted 28-Aug-12 7:38am
Comments
Kenneth Haugland at 28-Aug-12 13:44pm
   
You cant find the SVC file on your server, would be my guess. PErhaps you forgot tro make it available?
SREEKAN2 at 29-Aug-12 6:23am
   
No I made one svc file and even can access it from my mobile device
SREEKAN2 at 29-Aug-12 6:48am
   
Actually I built my WCF using this msdn.microsoft.com/en-us/library/cc488004(v=vs.90).aspx

1 solution

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

Solution 1

One of two things has gone wrong.
1) Your service reference is still pointing at a non-existent version of the service on your local machine.
- In this case check the properties in your service reference or connection depending on how you are calling the service and make sure that the path to the service is valid.
2) Your service on the server is not installed or configured correctly. Basically it isn't working correctly.
- If the service isn't deployed correctly then you'll have to figure out why and that is a whole other question that you'll have to ask about.
  Permalink  
Comments
SREEKAN2 at 29-Aug-12 6:26am
   
I deleted the old web reference and added the new one pointing to my sever, I think the service is working because i can access it from my browser and even from my device
SREEKAN2 at 29-Aug-12 6:49am
   
Actually I built my WCF using this msdn.microsoft.com/en-us/library/cc488004(v=vs.90).aspx

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



Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 28 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid