Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF with 3.5 and 4.0 together

Has anyone managed to run wcf successfully in 2.0 integrated mode on IIS7 when .net 4 has been installed?

I found that installing .net 4 removed the 2.0 handlers for svc and replaced them with .net 4 versions (this led to a 404.17 error in my v3.5 site), I managed to get my 3.5 site working again by running ServiceModelReg.exe /i from the v3.0 folder (Windows Commuication Foundation) but that removed the 4.0 mappings so they seem to be mutually exclusive?

any advise on how to run a 4.0 and 3.5 WCF site on the same IIS7 server?

edit There where 4 app pools due to .net 4, classic and integrated 2.0 and 4.0. The site was still using the integrrated 2.0 app pool. It was the fact that the svc mapping was pointing to the 4.0 isapi dll, I added the 2.0 back in (which ammended the web.config to give a local mapping) but it had no effect.

like image 885
Pharabus Avatar asked Apr 20 '10 13:04

Pharabus


2 Answers

I hate to answer my own question but..

I ran the ServiceModelReg.exe (here) to repair the previous install, this left me with both the mappings i expected for svc (pointing to v2.0 and v4.0 isapimodule). Not sure if it was just an issue with the 4.0 install i did or a general issue with installing 4.0 after 3.5.

like image 78
Pharabus Avatar answered Oct 14 '22 08:10

Pharabus


I was getting the 404.17 error in a new Win2008 R2 test machine.

Solution I found at this blog post worked fine, i.e. enabling the WCF Activation feature in the ".NET Framework 3.5.1 Features"

like image 35
SteveC Avatar answered Oct 14 '22 08:10

SteveC