Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
Kenneth Haugland 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 29-Aug-12 6:23am    
No I made one svc file and even can access it from my mobile device
SREEKAN2 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

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.
 
Share this answer
 
Comments
SREEKAN2 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 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)



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