Subscribe to Subscribers
Talk to Webmaster Tony John


Forums » .NET » WCF »

Update Service Reference


Posted Date: 18 Jun 2012      Posted By:: Murugan     Member Level: Bronze    Member Rank: 3389     Points: 5   Responses: 2



Hi All,

I am stuck in a very strange problem. I am consuming a wcf service in asp.net project using VS. 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 file and create new file with different name. I got the updated service with different file name because of these I am not able to check in the code.Even delete and add of service reference give the same.

Looking forward any guidance to solve this problem.

Thanks in advance




Responses

#676162    Author: Ravindra Gaurana      Member Level: Gold      Member Rank: 179     Date: 19/Jun/2012   Rating: 2 out of 52 out of 5     Points: 4

Hi

please refer this link

http://connect.microsoft.com/VisualStudio/feedback/details/534667/update-service-references-removes-all-content-from-reference-cs-file

hope this will help you in case not please give some more details about your service and hosting environment.

one workaround is try to delete it and create a separate solution with the same name and add the project with same name of your client project and try to add new service reference and then try same is happening or not.

Regards,
Ravindra

Thanks & Regards
Ravindra Gaurana
Dotnetravindera@gmail.com
Catch Me dotnetspider



 
#676340    Author: Murugan      Member Level: Bronze      Member Rank: 3389     Date: 19/Jun/2012   Rating: 2 out of 52 out of 5     Points: 1

Thanks for your kind replay.

Step:1 - I have a Service with IIS hosting.
Step:2 - I have an web application,where I am consuming the wcf service.
Step:3 - Default files(wsdl,xsd,reference) gets generated while consume the service.
Step:4 - If I update the Service and took a update service reference in the web application will cause a problem.
Problem 1:Delete the old files(wsdl,xsd) and create a new set of file with different file name.But I have updated in the wsdl and refrence file.Creation of new file instead of updating in the previous files(wsdl,xsd).

Kindly assist me to solve the above issue.

Thanks in advance.

Will I miss any setting or I have to change any value in the web config file?



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : What do you meant by Contracts in WCF?
Previous : Using wcf how to upload a image
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.