WCF service reference stopped generating code for one project
Posted
by
Mike Pateras
on Stack Overflow
See other posts from Stack Overflow
or by Mike Pateras
Published on 2011-01-01T18:38:54Z
Indexed on
2011/01/01
20:53 UTC
Read the original article
Hit count: 243
I have references to two different WCF services in a project. I updated the reference for one of the services, and now no code is generated for it. The references.cs file just has the "this is genrated code" comment at the top. Updating that same service in other projects and updating the other service both work fine. It's only that one service reference in this one project that's causing the problem, and I'm getting no information from Visual Studio (it just says it failed to generate code and I should look at the other errors, which provide no information).
If I uncheck the "reuse types in referenced assemblies", code is generated, but I don't want to have this one project be different from the others. I'd like to solve the problem. Re-checking the reuse type option produces an empty references.cs file, again. The collection type doesn't seem to matter, either.
How can I diagnose and solve this problem?
© Stack Overflow or respective owner