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.0Thêm dòng này vào trong
web.config trong thẻ
<system.serviceModel> .............</system.serviceModel><serviceHostingEnvironment aspNetCompatibilityEnabled="true" />