Error 240 Custom tool error: Failed to generate code for the service reference 'FooService'. Please check other error and warning messages for details. C:\Development\SolutionName\ProjectName\Service References\FooService\Reference.svcmap
- Try "Update Service Reference"
- Try "Configure Service Reference" and unchecking "Reuse types in referenced assemblies"
- Try searching through the generated files (.disco, .wsdl, .xsd) for path references that differ from the address set in the step above.
- Try dropping the entire service reference and adding it again.
Nothing of the above worked
ReplyDeleteUnchecking the re-use types worked fine for me, thanks a lot!
ReplyDeleteunchecking "Reuse types in referenced assemblies" worked for me , thanks
ReplyDeletehttp://uliasz.com/2011/06/wcf-custom-tool-error-failed-to-generate-code-for-the-service-reference/#comment-1647
ReplyDeleteThanks to the article above.
In my case, i have this issue with my WPF project in VS.Net 2008. After going through this article, i was realizing that the assembly used in the web service is different version of assembly used on client.
It works just fine after update assembly on the client.
Thanks a lot
ReplyDeleteFrom
Prashant
Unchecking the re-use types worked fine for me, thanks a lot!
ReplyDeleteTry to update the service reference after unchecking the reuse types checkbox. Once done, you can recheck the option and update your service reference again. this should solve the problem.
ReplyDeleteUnfortunately the above didn't work for me either.
DeleteTrying to update an old VS2010 --> VS2013 solution (Silverlight 4 using RIA ) that has some service references - tried removing, adding back , unchecking (which made it worse) , updating, nothing I did seemed to get it fixed up!