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'.?

 

在web.config中设置

<system.serviceModel>

<serviceHostingEnvironment aspNetCompatibilityEnabled="false"></serviceHostingEnvironment>
 </system.serviceModel>

posted on 2014-07-10 17:13  白沙河  阅读(317)  评论(0编辑  收藏  举报