Quick Tip
On Visual Studio if you suddenly get an error when pressing “Update Service References” :
Custom tool error: Failed to generate code for the service reference ‘your service‘
Please check other error and warning messages for details
Do the following:
- Close all instances of Visual Studio
- Open the command window and type:<visual studio ide path>\devenv.exe /resetskippkgs
Example:
"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" /resetskippkgs
VoilĂ ! Your update references should work now!
i think you need
Right click on your service reference and choose Configure Service Reference
then
Then uncheck Reuse types in referenced assemblies
Click OK, clean and rebuild your solution
Works great for me. Tks!