Monday 4 August 2014

HTTP could not register URL http://+:8080/. Your process does not have access rights to this namespace


HTTP could not register URL http://+:8080/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details).


Solution:
If You all are Getting This error in WCF, then just closed Visual studio and reopened it by right clicking on the Visual Studio icon and saying "Run as Administrator", Then it will Work !!!


 <system.serviceModel>
    <services>
      <service name="CompanyService.CompanyService" behaviorConfiguration="mexBehavior">
        <endpoint address="CompanyService" binding="basicHttpBinding" contract="CompanyService.ICompanyPublicService"></endpoint>
      <endpoint address="CompanyService" binding="netTcpBinding" contract="CompanyService.ICompanyConfidentialService"></endpoint>
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:8000/"/>
          <add baseAddress="net.tcp://localhost:8090/"/>
          </baseAddresses>
        </host>
    </service>
    </services>
  <behaviors>
    <serviceBehaviors>
      <behavior name="mexBehavior">
        <serviceMetadata httpGetEnabled="true"/>
      </behavior>
    </serviceBehaviors>
  </behaviors>
  </system.serviceModel>

1 comment:

  1. Run visual studio as administrator then it will be work

    ReplyDelete