snakile
snakile

Reputation: 54521

Renaming a WCF service hosted on IIS

I have renamed a WCF service and everything works just fine on my test/development environment. However, the service is not accessible on my production environment, which is IIS. When trying to access the service the client receives roughly the following error:

The request failed with the error: The type Old_Service_Name.Some_Type could not be found.

In other words, IIS should be informed about the renaming of the service. How do I tell IIS, preferably using IIS Manager, that the service has a new name?

Upvotes: 3

Views: 545

Answers (1)

snakile
snakile

Reputation: 54521

In the service.svc file, change the Service attribute of the ServiceHost tag so that it suits your new service name. Namely, replace Old_Service_Name.Some_Type with New_Service_Name.Some_Type.

Upvotes: 2

Related Questions