VietNetwork.Vn

Forum => Web => Tác giả chủ đề:: admin+ vào T.Ba 28, 2011, 05:22:01 CHIỀU

Tiêu đề: This collection already contains an address with scheme http
Gửi bởi: admin+ vào T.Ba 28, 2011, 05:22:01 CHIỀU
Mã nguồn [Chọn]
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
(https://image.vietnetwork.vn/uploads/VietNetwork.Vn35231.png)

Giải pháp cho .ASP 4.0

Add dòng này vào trong web.config trong thẻ <system.serviceModel> .............</system.serviceModel>

Mã nguồn [Chọn]
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />