首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Apache上访问.net wcf服务(单声道)

无法在Apache上访问.net wcf服务(单声道)
EN

Stack Overflow用户
提问于 2017-06-22 01:42:10
回答 1查看 127关注 0票数 0

我有一个简单的Apache服务,在.net和mod-mono上工作。如果我访问像https://localhost/Myservice.svc这样的服务,它可以正常工作,但是如果我像https://my.server.net/Myservice.svc一样访问(即使是从同一台计算机),即使我试图从服务请求wsdl,我也会看到异常。

应用程序异常

代码语言:javascript
复制
System.InvalidOperationException
HttpListenerContext does not match any of the registered channels

Description: HTTP 500.Error processing request.

Details: Non-web exception. Exception origin (name of application or object): System.ServiceModel.
Exception stack trace: at 
System.ServiceModel.Channels.Http.HttpListenerManager.ProcessNewContext (System.ServiceModel.Channels.Http.HttpContextInfo ctxi) [0x0000e] in <e281f37e433a4b9291b04f8a9c25b68f>:0 at System.ServiceModel.Channels.SvcHttpHandler.ProcessRequest (System.Web.HttpContext context) [0x00060] in <e281f37e433a4b9291b04f8a9c25b68f>:0 at System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext () [0x00dd7] in <d3ba84a338d241e2ab5397407351c9cd>:0 at System.Web.HttpApplication.Tick () [0x00000] in <d3ba84a338d241e2ab5397407351c9cd>:0 Version Information: 4.6.1 (tarball Fri Oct 21 13:04:27 CEST 2016); ASP.NET Version: 4.0.30319.42000 Powered by Mono
EN

回答 1

Stack Overflow用户

发布于 2017-06-23 19:53:49

Web.config中的更改

代码语言:javascript
复制
<serviceHostingEnvironment multipleSiteBindingsEnabled="false" />

代码语言:javascript
复制
<endpoint address="http://server.com/"
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44682820

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档