mysql远程服务器返回错误404,远程服务器返回错误:(404)Not Found。

Hello all,

We have recently begun implementing a WCF Service to provide some marketing functionality for a client and are getting the message "The remote server returned an error: (404) Not Found." when trying to test it on a development machine. The environment is Vista with SP1 and Visual Studio 2008 FX 3.5 SP1. The service is hosted in a virtual directory in IIS7 and is being called from a Web Application project hosted in Cassini (ASP.NET dev server). The service and the consumer web app are being built and debugged in the same Visual Studio solution.

The webservice uses basicHttpBinding with TransportWithMessageCredential where the transport uses SSL and message uses UserName. We have implemented a test SSL using the steps outlined here (although we also had to make use pf the Private Key Import tool 'pvkimprt' to create an exchange file for IIS7).

The service is accessed on https://computername.company.region.local/VirtualDirectory/ServiceName.svc and when that is typed into IE or Firefox we can access the servuce just fine. It is only when the service is called from the consuming application that we get the 404 error. The stack trace is as follows:

[WebException: The remote server returned an error: (404) Not Found.]

System.Net.HttpWebRequest.GetResponse() +5314029

System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +54

[EndpointNotFoundException: There was no endpoint listening at https://xxxx.xxxx.xxxx.local/VirtualDirectory/ServiceName.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.]

System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +7596735

System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +275

CyProMarketing.CyProWebService.ICyProWebService.GetUnsubscribeRequests(DateTime lastRequest) +0

CyProMarketing.CyProWebService.CyProWebServiceClient.GetUnsubscribeRequests(DateTime lastRequest) in \\FileshareName\Directories\...\Reference.vb:64

CyProMarketing._Default.Button1_Click(Object sender, EventArgs e) in \\FileshareName\Directories\...\Default.aspx.vb:12 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111

System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13

System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565I have searched the internet high and low and cannot find any answers to this. Any ideas as to what could be going wrong here?

Regards,

Stephen

解决方案Gonna bump this as I am completely stuck on this issue and it is preventing me from progressing this application

Stephen

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值