【发布时间】:2010-10-30 02:41:20
【问题描述】:
在本地运行 Silverlight 应用程序时我没有任何问题。网站出现就好了。我们将代码部署到我们的测试环境并且我们的站点(或对我们数据的访问)停止工作。我认为我们的 svc 文件没有被识别。我倾向于端点问题。我对 wcf 和服务引用相当陌生。下面是我们的 webconfig 代码和我们的 clientconfig 代码。想知道是否有人可以就我们的问题给出一些指导。
我们的 web.config
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<customBinding>
<binding name="AlgaeTrackerDataServices.customBinding0">
<binaryMessageEncoding/>
<httpTransport/>
</binding>
</customBinding>
</bindings>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true"/>
<services>
<service name="AlgaeTrackerDataServices">
<endpoint address=""
binding="customBinding"
bindingConfiguration="AlgaeTrackerDataServices.customBinding0"
contract="AlgaeTrackerDataServices">
</endpoint>
<endpoint address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange"/>
</service>
</services>
</system.serviceModel>
我们的客户端配置
<system.serviceModel>
<bindings>
<customBinding>
<binding name="CustomBinding_AlgaeTrackerDataServices">
<binaryMessageEncoding />
<httpTransport maxReceivedMessageSize="2147483647"
maxBufferSize="2147483647" />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="http://localhost:8080/AlgaeTrackerDataServices.svc"
binding="customBinding"
bindingConfiguration="CustomBinding_AlgaeTrackerDataServices"
contract="AlgaeTrackerServices.AlgaeTrackerDataServices"
name="CustomBinding_AlgaeTrackerDataServices" />
</client>
</system.serviceModel>
本地...当我单击 svc 文件并在浏览器中查看时,它运行良好,我可以查看 wsdl。在我们的服务器上,我无法查看 svc 文件..
我收到一条错误消息,提示无法启动 asp.net develop...端口 8080 正在使用中
我们的事件日志这样说..
WebHost 未能处理请求。 发件人信息: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/31852487 异常:System.Web.HttpException (0x80004005): 服务 '/AlgaeTrackerDataServices.svc' 确实 不存在。 ---> System.ServiceModel.EndpointNotFoundException: 服务 '/AlgaeTrackerDataServices.svc' 确实 不存在。在 System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(字符串 标准化虚拟路径)在 System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(字符串 相对虚拟路径)在 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest() 在 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest() 在 System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult 结果)在 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult 结果)进程名称:w3wp进程 编号:13128
提前感谢您的帮助...
【问题讨论】:
标签: silverlight wcf