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
These two days I was getting started with WCF. I still had some research results yesterday afternoon. I am very happy to continue my demo today, but I just found the problem, fortunately, I remember the secret that everyone knows-I never asked Baidu or Google when I was done!
However, this problem is not very difficult. First, you can understand it literally.ProgramThrown exception
This is nothing more than a problem with the port number! Here we also want to declare that this demo is based on higel And the instance is basically the same.
Problem Analysis:
The reason for this problem is actually very simple, because it is still in the learning stage, soCodeThe internal endpoint addresses are all dead, and there is no flexibility at all, so this problem occurs.
Solution:
In the demo, replace the port of the URL address in the figure.
I have just been in touch with WCF for a day, but I can still feel its strength! Come on later!
Thanks to higel. . The original instance can be moved.