Here i've configured the DNS i.e. somename.comp.com for an ip say, 10.2.4.56:4000. (Here ip address is sample but the port no is exactly what i've used). So for an ip say, 10.2.4.56:4000 i've put a name say somename.comp.com and when i'm trying to add the webreference from webservice, i'm encountering the above error.
My biggest doubt is, how come the system is again appending 4000 port no to my DNS, even though i've not mentioned 4000 in the url while i'm adding the web reference and also, other doubt is, how come its appending 4000 though my DNS internally is configured for a ip with 4000 port no.
Would be great if you could help me to figure out this.
Please start a new thread. You cannot possibly know whether or not you have the same problem, since we don't know what the problem actually was! You may have the same symptom , but there's no way to know whether or not you have the same "disease".
WCF is Web Services. They are not two separate things.
Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
Use File->New Project to create Web Service Projects