Tech Off Thread

2 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Issue with WCF method in client app

Back to Forum: Tech Off
  • User profile image
    qwert231

    I have a Web Project called secure that I would like to use a WCF service on the server. In the Solution, I have another project, WebFuncs, that is some common code, and includes the Service Reference to my WCF Service. Because secure imports WebFuncs I was able to use this code:

    Private proxy As New OrderCompletion.OrderCompletionProxy
    ...
    Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click
     ...
     OrderNum = proxy.CreateOrder(Me.CartID, Me.tbComments.Text)
     ...
    End Sub

    However, in use I get this error:
    System.MissingMethodException: Method not found: '!0 System.ServiceModel.ClientBase`1.get_InnerProxy()'.
    at secure.OrderReview.btnSend_Click(Object sender, EventArgs e)


    Intellisense says that proxy.CreateOrder() exists... I'm guessing it's my connection. Any way to dig deeper into this?

  • User profile image
    qwert231

    My service uses Named Pipes. The address being
    net.pip://localhost/OrderCompletion

    Could there be a conflict because this service is running on the web server? I did this as a service, because why have a web service, if only apps on the same machine will be using it?

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.