IIS6中托管的WCF服务在生产中获得404 [英] WCF Service hosted in IIS6 gets 404 in Production

查看:73
本文介绍了IIS6中托管的WCF服务在生产中获得404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个简单的WCF服务并将其部署到IIS6,并且我注意到它可以在我的Dev和Staging环境中使用,但不能在Production中使用.每次我尝试点击服务元数据链接时,都会得到一个404页面.

I have built a simple WCF Service and deployed it to IIS6, and I'm noticing that it works in my Dev and Staging environments, but not Production. Every time I try to hit the service metadata link, I get a 404 page.

我已经在所有可以想到的地方检查了IIS配置,并且它们是相同的,所以我可以想到的唯一区别是生产环境是负载平衡的.

I've checked IIS config everywhere I can think of and they're identical, so the only difference I can think of is that the Production environment is load balanced.

有人知道在负载均衡器后面运行WCF服务有任何问题吗,我该如何解决?我走错了路吗,我应该研究另一个常见的问题吗?

Does anyone know of any issues with running a WCF service behind a load balancer, and how can I get around that? Am I on the wrong track, is there another common problem I should look into?

推荐答案

您需要在IIS6上设置通配符映射.该链接看起来像一个很好的分步指南.

You need to setup wild card mapping on IIS6. This link seems like a good step by step guide.

尝试阅读IIS7上集成管道与经典管道之间的区别

Try reading up on the differences between the integrated pipeline vs classic pipeline on IIS7

这篇关于IIS6中托管的WCF服务在生产中获得404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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