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: 

1 comment:

  1. Fundamentally there are two different ways to arrangement a web search tool amicable divert. One is by straightforwardly changing what's known as the .htaccess document found in the root index of your site where your site pages are put away.
    wordpress err_too_many_redirects

    ReplyDelete