The service cannot be activated because it does not support ASP.NET compatibility


WCFの導入中にこのようなエラーが発生しました.
"The service cannot be activated because it does not supportASP.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'." 
長い列を見ていると怖いですが、そのヒントに従って操作すればいいのです.最初の「Turnoff ASP.NET compatibility mode in the web.config」は、webプロファイルで「serviceHostingEnvironment」を検索し、デフォルトの構成はこうです
 <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
 
 


true false , , system.serviceModel 。 , , , Allowed Required. 。