Search code examples
asp.netwcfiiswcf-binding

Configure WCF in Production IIS 8.5


I'm trying to expose my WCF service as part of my main site URL on a server. I have it working on the server (Windows Server 2012 R2 Standard) on IIS 8.5, but can only reach it locally with localhost, or using the machine name, as follows:

http://localhost/TeeSvc/Service1.svc

http://<<machinename>>.mysite.net/TeeSvc/Service1.svc

I have an existing site set up as follows:

http://mystaging.mysite.net

I need to be able to reach the service using:

http://mystaging.mysite.net/TeeSvc/Service1.svc

I saw an article here dealing with this but it relates to an earlier version of IIS and I cannot get the cscript.exe console window to remain open long enough to issue any commands.

How can I go about this?

enter image description here


Solution

  • I was able to get this working by following the same approach in how to construct things in IIS, as outlined here:

    Configure URL in IIS

    My situation was further complicated by the fact that this was a migration of an older DNN site to version 9.2. There were a lot of unnecessary entries in the DNN web.config file; after I removed the httpHandlers and httpModules sections, I finally got it to work.