WCF with 3.5 and 4.0 together

百般思念 提交于 2019-12-05 06:40:35

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.

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"

I didn't tested this situation. But I think following should works if no bugs exists in the Microsoft implementation of designed features:

For every web site you can choose application pool (in "Advanced settings" of virtual directory configuration in IIS Manager). Some default Application Pools exists after .NET 4.0 installation: "ASP.NET v4.0", "ASP.NET v4.0 Classic", "Classic .NET AppPool" and "DefaultAppPool". You can also create more application pools. For every pool you can choose whether 4.0 or 3.5 (v2.0.50727) .NET version are used.

I hope it you'll fix you problem with the way.

Best regards

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!