As you mentioned that the service stops working after you enable the ASP.NET Compatbility mode, then what is the error you get? Since you have turned on "includeExceptionDetailInFaults" option in the service behavior, you should be able to get the detailed
error info. In addition, you can use the WCF Tracing at server-side to see if there is any further error info you can captured there:
for general troubleshooting, you can also do a simple test by creating a new WCF service(with the same configuration setings as the error one) but do not include any detailed code logic to see if it works. This could help determine if the problem is related
to your service's operation code which might has something wrong when enabling ASP.NET compattiblity mode.
Steven Cheng...
Contributor
4187 Points
547 Posts
Microsoft
Moderator
Re: WCF Service Doesnt Work When aspNetCompatibilityEnabled="true"
May 03, 2012 02:47 AM|LINK
Hi lommez,
As you mentioned that the service stops working after you enable the ASP.NET Compatbility mode, then what is the error you get? Since you have turned on "includeExceptionDetailInFaults" option in the service behavior, you should be able to get the detailed error info. In addition, you can use the WCF Tracing at server-side to see if there is any further error info you can captured there:
#Service Trace Viewer Tool (SvcTraceViewer.exe) h
ttp://msdn.microsoft.com/en-us/library/ms732023.aspx
for general troubleshooting, you can also do a simple test by creating a new WCF service(with the same configuration setings as the error one) but do not include any detailed code logic to see if it works. This could help determine if the problem is related to your service's operation code which might has something wrong when enabling ASP.NET compattiblity mode.
Feedback to us
Microsoft One Code Framework