web service unavailable

Topics: CAB & Smart Client Software Factory
Mar 15, 2006 at 7:12 AM
originally posted by: irkin

I published smart client and getting error "Service unavailable" from any machine other than localhost. The error happens when smart client tries to access web service. Web service is running on localhost.

I've changed web service proxy urls in app.config, replacing "localhost" with machine name, and verified that web service is accessible from the user machines. I also copied app.config contents from webservice proxies project to the shell app.config. But the error still comes up.
What am I doing incorrectly?

Mar 15, 2006 at 12:04 PM
originally posted by: DeivaShankar

We have to change the BaseUrl constant value in the WebService class. See the code snippet

public class AppraisalManagementService : WebService
//public const string BaseUrl = "http://localhost:1428/AppraisalService/";
public const string BaseUrl = "http://<MachineName>:<PortNumber>/AppraisalService/";
public const string DownloadUrl = BaseUrl + "Document.ashx?attachmentId=";