问题
I added the service reference in my project and it has created all required wsdl files. But when I looked at the reference.cs file, I found it blank.
-Anil
回答1:
you can rightclick in the service reference created and click the
Configure service reference...
option.
in the DataType section UnCheck Reuse types in referenced assemblies
回答2:
This happens if the add service references fails.
We have seen this fail with very large contracts where the size of the response is greater than the configured size in WCF.
来源:https://stackoverflow.com/questions/5988260/wcf-error-reference-cs-is-blank-empty