Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Service Not Found
Message
From
24/06/2010 11:26:47
 
General information
Forum:
ASP.NET
Category:
Windows Communication Foundation (WCF)
Miscellaneous
Thread ID:
01470200
Message ID:
01470411
Views:
38
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?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform