Trying to add a service reference results in Bad Request (400) in one project, otherwise runs fine

后端 未结 3 1449
被撕碎了的回忆
被撕碎了的回忆 2020-12-07 06:06

I\'m in a delicate situation: As the title suggests, I can\'t seem to connect to a WCF service I wrapped up in a Windows Service. I followed the tutorial http://msdn.microso

3条回答
  •  时光取名叫无心
    2020-12-07 06:32

    Cannot say what the problem is but here is some info to help you find the problem.

    When you do "Add Service Reference" there is a http get Call that goes to the service. I am assuming that it is this Call that Returns http 400. You have a mex endpoint and httpgetenabled, missing these are the normal problems.

    You can try Reading the wsdl using a browser and see if that Works.

    Reasons could be:

    • Port 8000 is blocked
    • The IIS site is on a different port
    • You are Accessing the site using the machine name and the config uses local host
    • the binding is not enabled in iis for that port

提交回复
热议问题