Page view counter

Web Service From Console Application

Last post 07-17-2007 4:56 PM by KK@C#. 3 replies.

Sort Posts:

  • Web Service From Console Application

    07-17-2007, 12:12 AM
    • Loading...
    • KK@C#
    • Joined on 07-29-2005, 9:12 PM
    • Posts 9

    Hi,

    I'm trying to call a web service from a console application, while this works in the development enviornment. When I run the console application from a different box, it fails with error saying the remote system actively refused connection.

    The webservice is part of a web application, and uses Integerated Windows Authentication. I tried setting the credentials to Default Credentials, Default Network Credentials, none of these solved the issue.

    I'm totally struck with this, any pointers on how to proceed?

    Thanks
    KK

  • Re: Web Service From Console Application

    07-17-2007, 1:22 AM
    • Loading...
    • vivek_iit
    • Joined on 06-18-2006, 6:13 PM
    • New Delhi
    • Posts 3,095
    • TrustedFriends-MVPs

     These links might help:

    http://blogs.msdn.com/habibh/archive/2005/05/25/421954.aspx

    http://www.eggheadcafe.com/community/aspnet/17/10023807/401-not-authorized-error.aspx

    HTH,

    Vivek 

    MVP, ASP.NET || My Website || Architecture & Design in ASP.NET 3.5

    Please mark the most helpful reply/replies as "Answer".
  • Re: Web Service From Console Application

    07-17-2007, 11:41 AM
    • Loading...
    • KK@C#
    • Joined on 07-29-2005, 9:12 PM
    • Posts 9

    Hi Vivek,

    I have already tried the steps specified in the first link and it did not solve the issue.  The link also describes the problem and looks he did not find any solution.

    Thanks for the links though.



  • Re: Web Service From Console Application

    07-17-2007, 4:56 PM
    Answer
    • Loading...
    • KK@C#
    • Joined on 07-29-2005, 9:12 PM
    • Posts 9

    I found out the issue.
    The web reference url in the config file was wrong (localhost).

    Thanks

Page 1 of 1 (4 items)
Microsoft Communities