WCF web service error: The service cannot be activated because it does not support ASP.NET compatibility

后端 未结 4 1877
無奈伤痛
無奈伤痛 2021-02-01 12:28

I am trying to create a restful wcf web service. When I try to connect to the service through the client I get the following error:

4条回答
  •  死守一世寂寞
    2021-02-01 13:05

    On your main service you could mark your service as:

    [AspNetCompatibilityRequirements(
            RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    

    From http://forums.silverlight.net/t/21944.aspx

提交回复
热议问题