Saturday, November 16, 2013

WCF Error : HTTP could not register URL..... Your process does not have access rights to this namespace

Problem
   Exception while opening WCF Service Host  (Host.Open)

Error Message 
     HTTP could not register URL..... Your process does not have access rights to this namespace , ( Inner        Exception Access is denied)

Root Cause 
     This operation requires Admin Privileges 

Solution 
  • Option 1: Start visual studio in admin mood (VS Icon in program files >> Right click >>Run As administrator 
  • Turn off your UAC settings (Run>>MSConfig>>Tools>>Change UAC Settings)

Stack Trace 
System.ServiceModel.AddressAccessDeniedException was unhandled
  Message=HTTP could not register URL http://+:8081/Myservice/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details).
  Source=System.ServiceModel
  StackTrace:
       at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
       at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
       at .....
       ............

  InnerException: System.Net.HttpListenerException
       Message=Access is denied
       Source=System
       ErrorCode=5
       NativeErrorCode=5
       StackTrace:
            at System.Net.HttpListener.AddAll()
            at System.Net.HttpListener.Start()
            at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
       InnerException: 

No comments:

Post a Comment