How to set the base path in IIS 7 hosting a WCF application?
Posted
by curiouscoder
on Stack Overflow
See other posts from Stack Overflow
or by curiouscoder
Published on 2010-03-08T18:46:27Z
Indexed on
2010/03/08
18:51 UTC
Read the original article
Hit count: 383
I've been fighting my way through the process of migrating a (previously self-hosted) WCF application to IIS7 (I've never used IIS before and I realise that this is a very simplistic question but I failed to google/SO the answer so far).
My service is hosted at http://xxx.xxx.xxx.xxx/SampleWebsite/Service.svc
but when I access it with ?wsdl
all the references that should read http://xxx.xxx.xxx.xxx/
are actually set to the window machine's local network name (i.e. http://localpc3/
).
I've tried using the WCF tool to add the external IP address to the base address section under the service I'm configuring as well as a number of setting inside IIS but I can't seem to track down the correct place.
Where do I set this? IIS manager, web.config, somewhere else?
© Stack Overflow or respective owner