ASP.NET WCF Routing Integration Feature Requires ASP.NET Compatibility

I get this problem when trying to access my web service from my server.

The ASP.NET routing integration feature requires ASP.NET compatibility. See "Http://msdn.microsoft.com/en-us/library/ms731336.aspx" for how to do this.

I added this line to my web.config, like many articles, but I still get the same error.

<serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> 

What could be the problem?

+3
source share
1 answer

I had the same problem when I had a website without a physical path. The physical path setting for the site has been fixed.

 # (PowerShell) # Give it a physical path. mkdir C:\inetpub\wwwroot2 Set-ItemProperty "IIS:\Sites\$WebSiteName" ` -Name physicalPath -value C:\inetpub\wwwroot2 
+1
source

Source: https://habr.com/ru/post/915324/


All Articles