Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi All,

I am stuck in a very strange problem. I am consuming a wcf service in asp.net project using VS2010. Everything was fine before, but suddenly wcf service updation started behaving strangly. As soon as i update the service reference by right clicking on the service and selecting Update Service Reference, it deletes all the end points from web.config and clears the Referece.cs file. But it doesn't rewrite anything in both files. That means its not updating properly. Even delete and add of service reference dint work.

But the same reference works fine when i add it into any other project. Looking forward any guidance to solve this problem.

Thanks in advance
Posted

Hi... Finally i have found the reason behind this issue...it's because of some common assemblies referred in WCF service project and Consuming project. I removed those assemblies from consuming project and everything started working fine... :)
Thanks Wannes for your help ....
 
Share this answer
 
I had the same problem once with my WCF Service. The problem occurs when I used unknown types to transfer between the service and the client.

try the microsoft test client to connect to your service and maybe this tool will give you some clue to which method is wrong. more info: see http://msdn.microsoft.com/en-us/library/bb552364.aspx[^]

Otherwise you can also comment all the Operationcontracts one by one and try to update your service reference each time. So you can discover which is the incorrect OperationContract
 
Share this answer
 
Comments
Vicky2Galaxy 17-May-11 6:13am    
Hi wannes.. thanks for the reply.. i tried the tool but couldn't figure out the problem.. infact service should behave similar in all consuming projects if this is the reason. But its creating problem only in one project...
Wannes Geysen 17-May-11 6:16am    
And you didn't change something at the service contract recently?
If I understand correct: if you update the service reference at another client project, there is no problem?
Vicky2Galaxy 17-May-11 6:20am    
yes .. you are right.. :)
Wannes Geysen 17-May-11 6:24am    
strange :)
Wannes Geysen 17-May-11 6:28am    
Can you post your service interface class here with the servicecontract?

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