In the WCF application, I have two different solutions for client and service. Service reference was already added. But after modifying Service contracts and methods, I tried to Update Service Reference
(Service was running without Debug mode).
Service reference gets updated but the namespace name is populated for all the methods in the Reference.cs file as NamsSpaceName.ReferenceName.ServiceMethod
, whereas it is supposed to be ReferenceName.ServiceMethod
.
How can I fix this issue? I do not need the NamespaceName to be populated before RefrenceName.
CodePudding user response:
You can try the following method:select Service References directory, open Properties window and check if its Namespace Provider property is set to false.
CodePudding user response:
There was no other option working. So, I had to manually edit the Reference.cs. Usually it is not recommended to manually edit the Reference.cs file as it is Auto-Generated
. I had to carefully edit the populated Namespace and finally it worked.