Properly configuration of IIS6 and WCF
I have windows server 2003 with iss 6 and installed framework NET 4.0. Then with this article http://msdn.microsoft.com/en-gb/library/aa751792.aspx I configured IIS (run ServiceModelReg.exe /i /x and have positive result) Now I trying to run WCF Service consists of Service1.svc, Web.Config and bin/anyname.dll (generated by default project in VS2010) When I run it from the browser i catch this error:
Server Error in '/ppgswcfrequests' Application.
This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'.
Parameter name: item
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'.
Parameter name: item
Maybe my virtual cat开发者_StackOverflowalog on IIS configured wrong?
That error looks like you have more than 1 HTTP binding set up for the website, I had a similar issue about 4 weeks ago. My solution was to get rid of any erroneous bindings I had set up in IIS for my web-site.
精彩评论