Application not found when adding service reference in WCF

Source: Internet
Author: User

Navigation:(1) The journey to WCF

(2) Solution to the Problem of WCF port number

(3) applications cannot be found when WCF adds service references.

(4) source of service reference in WCF

 

The enthusiasm for learning WCF is high. Haha, this is a good thing! This is not a problem. I read higel. Blog, learning and doing, learning fast!

Of course, there are also some points in this process that you do not understand, such as "http: // localhost: 4567/demoservice/metadata". What is the metadata purpose here?ProgramRun.

Today, another problem occurs: the service reference is released from the server. When the client uses the service, you need to add this service reference. This is where the problem occurs and cannot be found when adding the service reference. Errors include:

I didn't understand it well. I thought the first line was the address error and thought what happened to the address. So I started to get the address if I didn't think about it for a long time, later I consulted higel. He gave me a simple answer and made me feel ashamed!

Higel: "In fact, the error message is similar. if the service has been started and released normally, enter the correct address on the client and you should be able to find it ."

I realized whether the service was started or not, and I did not start or talk about how to release the service. Then I took it for granted:

      1. The solution is compiled.
      2. Go to the bin folder, find the Host Program, run it, and start the service.
      3. Add a service reference from the client in the project. The result is displayed.

Conclusion: Young programmers cannot afford to hurt themselves. You have to think about the cause and effect. Don't hit the south wall and don't look back!

Thanks again to higel.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.