WCF 3.5和4.0一起 [英] WCF with 3.5 and 4.0 together

查看:109
本文介绍了WCF 3.5和4.0一起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人成功地在.NET 4中已经安装了2.0 IIS7集成模式下运行WCF成功?

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

我发现,在安装.NET 4中卸下的2.0处理程序SVC和.NET 4的版本(这导致了404.17的错误在我的v3.5版本的网站)取代了它们,我设法让我的3.5的网站再次合作运行ServiceModelReg.exe /我从V3.0文件夹(Windows及通讯基础),但去掉了4.0映射,所以,他们似乎是相互排斥的?

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?

如何在同一IIS7服务器上运行4.0和3.5 WCF网站任何意见?

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

编辑 其中,有因4的应用程序池,以.NET 4中,经典和集成2.0和4.0。该网站仍在使用integrrated 2.0应用程序池。这是一个事实,即SVC的映射是指向4.0 ISAPI DLL,我增加了2.0回(这ammended web.config中给本地映射),但它没有任何效果。

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.

推荐答案

我不想回答我的问题,但..

I hate to answer my own question but..

我跑了ServiceModelReg.exe(这里)修复previous安装,这给我留下了两个映射我预计SVC(指向V2.0和V4.0 isapimodule)。不知道这只是一个问题的4.0安装我做或一般问题3.5安装后4.0。

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.

这篇关于WCF 3.5和4.0一起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆