The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the service type with RequirementsMode setting as 'Allowed' or 'Required'.

Solution 1: Add following code to your web.config File
  <system.serviceModel>
     ...
     <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
     ...
  </system.serviceModel>

Solution 2: Mark your service class with:
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class Service1 : IService1



Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (7 + 2) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 26.09.2009
Views: 848
Item date: 01.02.2009
Views: 306
Item date: 25.09.2009
Views: 1570
Item date: 12.04.2009
Views: 1393
Item date: 07.03.2009
Views: 1419
Item date: 19.07.2010
Views: 803
Item date: 21.07.2009
Views: 2046
Item date: 09.03.2009
Views: 387
Item date: 08.04.2009
Views: 506
Item date: 21.07.2009
Views: 1738