I'd really need to see the app.config. I'm not sure what issues the UT has that cause you problems when you attempted to post it, but can you try again using maybe parenthesis in place of the angle brackets? (or spaces between a bracket, like this: < endpoint ...etc.
~~Bonnie
>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?