T
Tina
I'm going through this book on WCF and the first example has me writing a
WCF host in the form of a console app. The code is as follows:
using System.ServiceModel;
namespace Host
{
class Program
{
static void Main(string[] args)
{
using (ServiceHost host = new
ServiceHost(typeof(HelloIndigo.HelloIndigoService), new
Uri("http://localhost:8000/HelloIndigo")))
{
host.AddServiceEndpoint(typeof(HelloIndigo.IHelloIndigoService),
new BasicHttpBinding(), "HelloIndigoService");
host.Open();
Console.WriteLine("Press <ENTER> to terminate the service
host");
Console.ReadLine();
}
}
}
}
But when I run the host I get the following error:
HTTP could not register URL http://+:8000/HelloIndigo/. Your process does
not have access rights to this namespace
What's going on here? How can I address this?
Thanks,
T
WCF host in the form of a console app. The code is as follows:
using System.ServiceModel;
namespace Host
{
class Program
{
static void Main(string[] args)
{
using (ServiceHost host = new
ServiceHost(typeof(HelloIndigo.HelloIndigoService), new
Uri("http://localhost:8000/HelloIndigo")))
{
host.AddServiceEndpoint(typeof(HelloIndigo.IHelloIndigoService),
new BasicHttpBinding(), "HelloIndigoService");
host.Open();
Console.WriteLine("Press <ENTER> to terminate the service
host");
Console.ReadLine();
}
}
}
}
But when I run the host I get the following error:
HTTP could not register URL http://+:8000/HelloIndigo/. Your process does
not have access rights to this namespace
What's going on here? How can I address this?
Thanks,
T