I have a WCF service that is running fine on our old IIS server. This service has both methods and Classes it exposes, all set up properly using [ServiceContract]
, [OperationContract]
, and [DataContract]
. The service works fine on the old server. The service is only visible on our local intranet.
We are trying to move to a new IIS server. Other ASP.NET web sites work on the new IIS server. Now, in the client app code, if I try to "Add Service Reference" I am able to successfully add a service reference to the new IIS server. The problem is that while the methods work, the Classes from the WCF service are not visible on the client app. If I take an existing service reference and in the app.config file if I change the url to the new server, everything works. I looked at the WSDL files and both have the Classes in them.
I have checked the "Roles and Features" on both servers and do not see any difference in the relevant items. What am I doing wrong?