[Solved] ASP.Net WCF Error: HTTP could not register URL http://+:8080/

tex
 
on Dec 21, 2020 06:05 AM
788 Views

When tried to open host service i got this error

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

this is my config file

<configuration>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
    </startup>
  <system.serviceModel>
    <services>
      <service name="HelloService.HelloService" behaviorConfiguration="mexBehavior">
        <endpoint address="HelloService" binding="basicHttpBinding" contract="HelloService.IHelloService">
        </endpoint>
        <endpoint address="HelloService" binding="netTcpBinding" contract="HelloService.IHelloService">
        </endpoint>
        <endpoint address="max" binding="mexHttpBinding" contract="IMetadataExchange">
        </endpoint>
        <host>
          <baseAddresses >
            <add baseAddress="http://localhost:8080/"/>
            <add baseAddress="net.tcp://localhost:8090/"/>
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="mexBehavior">
          <serviceMetadata httpGetEnabled="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
</configuration>

 

Download FREE API for Word, Excel and PDF in ASP.Net: Download
tex
 
on Dec 21, 2020 06:12 AM
on Dec 21, 2020 06:13 AM

Thank you mr. dharmendr

The Solution is Run the vs as Administrator