Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Service Not Found
Message
General information
Forum:
ASP.NET
Category:
Windows Communication Foundation (WCF)
Title:
Service Not Found
Miscellaneous
Thread ID:
01470200
Message ID:
01470200
Views:
110
I have been assigned to a project that uses WCF, so I am trying to learn it, I'm following this example from a book:
[ServiceContract]
public interface IStockService
{
    [OperationContract]
    double GetPrice(string ticker);
}

public class StockService : IStockService
{
    public double GetPrice(string ticker)
    {
        return 94.85;
    }
}

class Program
{
    static void Main(string[] args)
    {
        ServiceHost serviceHost = new ServiceHost(typeof(StockService));
        serviceHost.Open();

        Console.WriteLine("Service running.");
        Console.WriteLine("Press ENTER to terminate.");
        Console.ReadLine();

        serviceHost.Close();
    }
}
UT won't let me post the App.Config, but the base address is "baseAddress="http://localhost:8000/EssentialWCF"


I have it running. In another instanace of VS I created a console app. In the Add Service Reference dialog I
entered "http://localhost:8000/EssentialWCF". It fails to find it.

Anyone see what's wrong?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform