web service using wrong port RRS feed

  • Question

  • User1164950730 posted

    Hi all

    I have an app with 2 web services.

    When I run my app in VS 2010 the ws work fine.

    But when I publish the app to the live server they fail because they are using the wrong port

    When I debug the web app in VS2010 the server is assigned port 50321

    However when I publish the web app its still using the same port but my server uses port 8090

    How can I get my web services to use port 8090 when i publish it?

    I have already set the specific port in properties of the web tab  with no joy

    Any one have any ideas... please

    Monday, May 20, 2013 5:35 PM


  • User1164950730 posted

    As usual on this site I have to answer my own post...

    This is getting boring.

    OK so here is what I did to get it working.

    • In the properties if the WebApp/WebSite
    • In the web tab I set the 'Servers' to first 'Use Local iis server'
    • Then did a clean and build the project.
    • Then back to properties and web tab changed back to 'Use Visual studio Development server' selected the 'SpecificPort' typed in my required port number.
    • Clean and rebuild App

    • Now remove the faulty web references (I mean delete them)
    • Now recreate them
    • And add them to your harts content.
    • One point don't set the port to the same port your site/app is using and remember to open up your firewall to the new port

    Hope this helps someone else with the same prob

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 21, 2013 10:30 AM