Problem when hosting WCF Http service on IIS 7.5

Topics: Web Api
Feb 18, 2011 at 9:22 AM

Hi,

   I'm trying to host my WCF Http service on IIS 7.5. I'm doing the usual stuff in RegisterRoutes:

routes.AddServiceRoute<GamesService>("Games", serviceConfiguration);

The problem I'm seeing is when I browse to http://[BaseAddress]/Games I get an error: "The provided URI scheme 'https' is invalid; expected 'http'.Parameter name: context.ListenUriBaseAddress".

I can host this in Cassini without any problems.

What am I doing wrong?

Feb 18, 2011 at 12:02 PM

Do you have any https bindings on your website?

HTTPS is not supported yet, and I've noticed that even if you are invoking your service using http, the presence of the https binding will cause problems.

Try deleting the https binding from the web site if it exists.

Mario

Feb 18, 2011 at 1:17 PM

Yes, I do have Https bindings on the website - so if HTTPS is not supported by WCF Http yet, then that's probably what the problem is!

I'll try it on a Website that doesn't have the Https binding.

Thanks.

Sam