Note that there are some explanatory texts on larger screens.

plurals
  1. POWeb Service - No endpoint listening
    primarykey
    data
    text
    <p>I can't get this to run properly. Exception being thrown (EndPointNotFound) and error message w/ stack trace I am receiving is below.</p> <p>I have done all the obvious stuff (I think!) checked that endpoint URI's match, that the service is actually running and that I can hit it from my machine.</p> <p>Happy to post code if you let me know what you need to help!</p> <p>Any help is very much appreciated!</p> <blockquote> <p>"There was no endpoint listening at URL/Service.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."</p> <p>The remote server returned an error: (407) Proxy Authentication Required. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.</p> <p>Exception Details: System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.</p> <p>Source Error:</p> <p>Line 1140:<br> Line 1141: Public Function GetMember(ByVal ArdbegMember1 As ArdbegWeb.ArdbegMember) As ArdbegWeb.ArdbegMember Implements IArdbegWeb.GetMember Line 1142: Return MyBase.Channel.GetMember(ArdbegMember1) Line 1143: End Function Line 1144: </p> <p>Source File: C:\Documents and Settings\amayberry\My Documents\Visual Studio 2008\Projects\xpertformstest\ardbeg\ardbeg\ArdbegWeb.vb Line: 1142</p> <p>Stack Trace:</p> <p>[WebException: The remote server returned an error: (407) Proxy Authentication Required.] System.Net.HttpWebRequest.GetRequestStream(TransportContext&amp; context) +1868309 System.Net.HttpWebRequest.GetRequestStream() +13 System.ServiceModel.Channels.WebRequestHttpOutput.GetOutputStream() +68</p> <p>[EndpointNotFoundException: There was no endpoint listening at <a href="https://www.URL/service.svc" rel="nofollow">https://www.URL/service.svc</a> 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&amp; msgData, Int32 type) +275 ardbeg.IArdbegWeb.GetMember(ArdbegMember ArdbegMember1) +0 ardbeg.ArdbegWebClient.GetMember(ArdbegMember ArdbegMember1) in C:\Documents and Settings\amayberry\My Documents\Visual Studio 2008\Projects\xpertformstest\ardbeg\ardbeg\ArdbegWeb.vb:1142 ardbeg._Default.Button1_Click1(Object sender, EventArgs e) in C:\Documents and Settings\amayberry\My Documents\Visual Studio 2008\Projects\xpertformstest\ardbeg\ardbeg\Default.aspx.vb:40 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) +1565</p> </blockquote> <p><strong>Edit</strong></p> <p>I think this has to be a problem with how my app actually hits the web service - although my browser can access the webservice (I have to use a non-default proxy to do this because of access restrictions across the business), I don't think my compiled app is automatically using this. Is there any obvious way to check, and how would I force it to use this if that is the problem?</p> <p><strong>Edit</strong></p> <p>Code from behind my main page:</p> <pre><code>Dim myBinding As New WSHttpBinding() myBinding.Security.Mode = SecurityMode.Transport myBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate Dim ea As New EndpointAddress("https://URL/service.svc") Dim cc As New ArdbegWebClient(myBinding, ea) cc.ClientCredentials.ClientCertificate.SetCertificate( _ StoreLocation.CurrentUser, StoreName.My, X509FindType.FindBySubjectName, "CERTIFICATE") Dim abMem As New ArdbegMember Dim retMem As New ArdbegMember abMem.MemberID = TextBox1.Text Try cc.Open() retMem = cc.GetMember(abMem) MesgBox(retMem.Surname) cc.Close() Catch cex As CommunicationException MesgBox("CommEX - " &amp; cex.Message) cc.Abort() Catch tex As TimeoutException MesgBox("TimeEX - " &amp; tex.Message) cc.Abort() Finally MesgBox("Closed the Client") End Try </code></pre> <p>All I am trying to do at the moment is enter a client id number and have their surname returned via the webservice - just so that I know it is working.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload