未找到端点 [英] Endpoint not found

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

问题描述

我创建了一个新的 WCF RIA 服务,其中公开了 OData.我想测试一下.

I have created a new WCF RIA service with OData exposed. I wanted to test it out.

我的项目名称是 ChinookSample,命名空间是 ChinookSample.Web.Services

My project name was ChinookSample and the namespace was ChinookSample.Web.Services

当我尝试浏览时...

When I try to browse...

http://localhost:52878/Services/ChinookSample-Web-services-dsAlbumAndArtist.svc

我得到了服务页面,但是我去的那一刻......

I get the service page, but the moment I go for...

http://localhost:52878/Services/ChinookSample-Web-services-dsAlbumAndArtist.svc/OData

我得到 EndPoint not found.我已经检查了我的 Web.Config 并定义了 OData.

I get EndPoint not found. I have checked my Web.Config and that has the OData defined.

解决此问题的正确方法是什么?

What is the correct way to troubleshoot this?

此外,<domainServices> 标签有一个波浪线说... System.ServiceModel has invalid Child element domainServices.

Also, <domainServices> tag has a squiggly saying ... System.ServiceModel has invalid Child element domainServices.

非常感谢任何帮助!

推荐答案

问题终于解决了.我错过了 URL 中的尾随/...

Finally got the issue resolved. I missed the trailing / in the URL ...

http://localhost:52878/Services/ChinookSample-网络服务-dsAlbumAndArtist.svc/OData/

这篇关于未找到端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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