I have developed a WCF service that has been working fine for several weeks. I publish this service for IIS directly from the development server. I have a dev testing application that includes this WCF service as a service reference in its own project.
My WCF class library also references another project in a Visual Studio solution, and many classes are in a project referenced by services and calling applications.
Today, after publishing some changes in the service (I did not make any changes to the project or its classes), three of the approximately 20 classes in the referenced project are no longer included in the service link of my test application, I can no longer use them in the code , and they are no longer in Reference.cs. I double-checked that the classes in question are still decorated with [DataContract], and the properties are still decorated with [DataMember] in the service solution.
Everything in Visual Studio is OK. I rebuilt and republished all the missing classes configured to compile, I tried resetting IIS, completely deleted the IIS site, and made a clean publication, but it did not help. I tried to remove the service link in the test application and get a clean proxy every time. Nothing works.
Then I tried to create a dummy class in the referenced project, and inlined it. Re-published the service, and even this dummy class does not appear in Reference.cs. I will completely lose why these classes are not included in the .dll for the reference project after its publication, since it is obvious that everything builds OK in Visual Studio.
source share