VietNetwork.Vn

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

Tiêu đề: The service cannot be activated because it requires ASP.NET compatibility
Gửi bởi: admin+ vào T.Ba 28, 2011, 05:21:10 CHIỀU
Mã nguồn [Chọn]
The service cannot be activated because it requires ASP.NET compatibility. ASP.NET compatibility is not enabled for this application. Either enable ASP.NET compatibility in web.config or set the AspNetCompatibilityRequirementsAttribute.AspNetCompatibilityRequirementsMode property to a value other than Required.
(https://image.vietnetwork.vn/uploads/VietNetwork.Vn35231.png)

Giải pháp cho 4.0

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

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