Answered by:
Hosting a WCF service.

Question
-
I have a WCF service I am trying to host in IIS. I've created an Application under the default web site and the web site is working fine. However when hitting the WCF service I get this error:
This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.
I added baseAddressPrefixFilters like so (MyDomainName isn't the domain I used):
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"> <baseAddressPrefixFilters> < add prefix="http://MyDomainName.com/" /> </baseAddressPrefixFilters> </serviceHostingEnvironment>
Which gave me this error:
Could not find a base address that matches scheme http for the endpoint with binding CustomBinding. Registered base address schemes are [https].
So I made it https which gave me this error again:
This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. What settings do I need to have in order to host a WCF service?
Thanks Darick- Moved by Ken WarrenModerator Sunday, May 23, 2010 3:02 PM dev question (From:Windows Home Server Code Name "Vail" Beta)
Sunday, May 23, 2010 2:47 PM
Answers
-
Probably a good idea to start with the basics. Have you run through this? http://msdn.microsoft.com/en-us/library/ms733766(VS.90).aspx
Tentacle Blog: http://www.tentaclesoftware.com/blog/
WHS Disk Management: http://www.tentaclesoftware.com/WHSDiskManagement/- Marked as answer by Ken WarrenModerator Tuesday, September 7, 2010 8:22 PM
Sunday, May 23, 2010 6:56 PMModerator
All replies
-
Probably a good idea to start with the basics. Have you run through this? http://msdn.microsoft.com/en-us/library/ms733766(VS.90).aspx
Tentacle Blog: http://www.tentaclesoftware.com/blog/
WHS Disk Management: http://www.tentaclesoftware.com/WHSDiskManagement/- Marked as answer by Ken WarrenModerator Tuesday, September 7, 2010 8:22 PM
Sunday, May 23, 2010 6:56 PMModerator -
Have you solved this issue? How? The article posted is no help... I know how to create a wcf service, this seems to be some problem with WHS Default Website configuration. I tried creating another website on WHS (with another port) and it worked flawlessly. Just creating an Application on the Default Web Site seems to be problem. There must be some kind of configuration inherited.Friday, July 1, 2011 7:37 PM
-
Hi Bruno,
Are you working with WHS v1 or WHS 2011 here?
Development Blog: http://blog.tentaclesoftware.com/
Disk Management for WHS: http://www.tentaclesoftware.com/WHSDiskManagement/Friday, July 1, 2011 8:49 PMModerator -
WHS 2011Saturday, July 2, 2011 1:36 AM
-
Could you explain a little more about what you're trying to set up, and where you're placing your WCF configuration? The Remote Access web site has a whole lot of sub-applications.
Development Blog: http://blog.tentaclesoftware.com/
Disk Management for WHS: http://www.tentaclesoftware.com/WHSDiskManagement/Saturday, July 2, 2011 1:51 AMModerator -
Well, I've created a new application and chose the .net 4 app pool (I know it was disabled by default in the isapi and cgi restrictions, i've enabled it). Set the path to the app and that's all. It gave me the errors described above. Then I went to try on a new website just to see if it worked, i've created a new site at some port specified the path and it worked just fine, so I can assume the problem isn't my code or the web.config for my service. I need the service to run on port 80 (same as the default website) otherwise I would just leave it on the other site with a defined port.Saturday, July 2, 2011 10:09 AM