简体   繁体   中英

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 catalog 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM