I use this blog to post ideas and experiences about software development with the goal to help all the technology communities around the world.

6/21/11

This error indicates that there is no base address handling the request on that particular scheme (http/https) and base address (url). For example, your WCF web service based address in the web.config may be this:

http://mysite.com/myservice.svc (WCF allows a single based address per scheme http/https)

If you try to load the url http://www.mysite.com/myservice.svc IIS resolves the address, but the WCF setting is in conflict, and an error is shown. Using the web.config, we can add a setting to filter the IIS base address that does not mapped to the WCF based address (add the setting in the system.serviceModel node).

This should eliminate the conflict, and the request should go to base address defined by the web.config. In addition, a common mistake is that the baseAddressPrefixFilters may be set to the same base address of the WCF service. This filters out the base address and causes the “Could not find base address error”. Following our previous scenario, if you add the setting below, the error will be recreated.