【发布时间】:2013-12-28 22:54:16
【问题描述】:
好的,我花了一天时间查看这个错误和所有帖子,但我似乎仍然无法找到我哪里出错了。我可以与来自外部 Web 服务客户端的 Web 服务查找进行通信,但我无法从 VS 或 IIS 中浏览 .svc 文件。我正在发布到 IIS 6 服务器 .NET 4.0 上的映射驱动器。
任何帮助将不胜感激。
Web.config
<services>
<service name="BiteSizeLearningWS.TranscriptService">
<endpoint address=""
binding="wsHttpBinding"
contract="BiteSizeLearningWS.iServiceInterface" />
</service>
</services>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true">
</serviceHostingEnvironment>
<standardEndpoints>
<webHttpEndpoint>
<standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="false" defaultOutgoingResponseFormat="Json" faultExceptionEnabled="false"></standardEndpoint>
</webHttpEndpoint>
</standardEndpoints>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
Service.svc
<%@ ServiceHost Service="BiteSizeLearningWS.TranscriptService" %>
IserviceInterface.cs
namespace BiteSizeLearningWS
{
[ServiceContract]
public interface iServiceInterface
...
【问题讨论】:
-
你尝试将地址属性放在端点元素中?