asp.net - Is there a way to run wcf3.5 rest api in an integrated app pool -


is there possibly way run wcf 3.5 rest api in iis integrated app pool?

here's message in event viewer:

a request mapped aspnet_isapi.dll made within application pool running in integrated .net mode. aspnet_isapi.dll can used when running in classic .net mode. please either specify precondition="isapimode" on handler mapping make run in application pools running in classic .net mode, or move application application pool running in classic .net mode in order use handler mapping.

and here's handler entry in web.config under system.webserver > handlers:

<add name="svc-isapi-2.0_64" path="*.svc" verb="*" modules="isapimodule" scriptprocessor="c:\windows\microsoft.net\framework64\v2.0.50727\aspnet_isapi.dll" resourcetype="unspecified" precondition="" /> 

you try change handler registration 1 of these:

<add name="svc-integrated" path="*.svc" verb="*"  type="system.servicemodel.activation.httphandler, system.servicemodel, version=3.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089"  precondition="integratedmode,runtimeversionv2.0" />  <add name="svc-integrated-4.0" path="*.svc" verb="*"  type="system.servicemodel.activation.servicehttphandlerfactory, system.servicemodel.activation, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"  precondition="integratedmode,runtimeversionv4.0" /> 

which ono use depends on .net framework version set on application pool. based on existing handler registration, first 1 should correct.


Comments