حل مشکل خطا زیر در اجرای سرویس وب

Content Type application/soap+xml; charset=utf-8 was sent to a service expecting text/xml; charset=utf-8. The client and service bindings may be mismatched.


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


راه حل این خط کد در وب کانفیگ سرویس دهنده است
<serviceHostingEnvironmentaspNetCompatibilityEnabled="false"multipleSiteBindingsEnabled="true"/>