Web server open error: "HTTP could not register URL"

Web server open error: "HTTP could not register URL"

The TopView Application log may show the following error message:
Web server open error: HTTP could not register URL http://+:7170/. Your process does not have access rights to this namespace.

Background

The TopView Mobile Web App communicates to TopView's embedded Web Server, which is built upon Windows HTTP Server API (AKA Http.Sys). When the user enables the Mobile Web App, they select the listen port for the web server (7170 in the above sample error message). When the TopView Engine starts, it opens a listener on the configured web server port. If the user account of the TopView Engine (i.e. the logged in user if run interactively, or the Service LogOn account if run as a service) does not have permission to open the listen port for the web server, the above error occurs.

Fix

On Vista and later operating systems (Windows 7, Windows Server 2008, ...), follow these steps:
  1. Launch a command prompt as Administrator or elevated privilege
  2. Enter the following command:
    netsh http add urlacl url=http://+:{port number}/ user={user account name}
    ...replacing {port number} with the web server port, and {user account name} with the user. Example:
    netsh http add urlacl url=http://+:7170/ user=DOMAIN\user

Resources and more information

The command for registering a port for a user account is described in Microsoft's Preregister URL prefixes and configure SSL section of its Http.Sys article. For earlier operating systems and for more details about this issue, see the similar section on Configuring Namespace Reservations in Microsoft's Configuring HTTP and HTTPS article.
    • Related Articles

    • Emerson DeltaV OPC Server: Class not registered, error 0x80040154

      DeltaV OPC Server connection error: Class not registered, error 0x80040154 The above error can occur in TopView 7.0 and later when attempting to connect to the Emerson DeltaV OPC Server (OPC.DeltaV.1) TopView applications in v7.0 and later are ...
    • VOIP Phone call register/unregister issues

      Overview TopView Voice Notification makes VOIP phone calls for alarm notification. The VOIP protocol is SIP. TopView is a "SIP client" that connects to the SIP Server to make phone calls. Each phone call in TopView is made by a separate call process ...
    • Wonderware OPCENUM error 0x80040153

      Note: the information below also exists as a PDF with screenshot images. Background If you install TopView OPC/SCADA on a Wonderware machine after installing the Wonderware OPC Server software, you may not be able to query to local OPC Servers ...
    • RSLinx OPC Server error "Class is not licensed for use"

      After upgrading to TopView version 7.x we are aware of an issue where The TopView Configurator is able to successfully connect to the local RSLinx OPC Server The TopView Engine fails to connect to the local RSLinx OPC Server with error "Class is not ...
    • Use Web Configurator via HTTPS without browser warnings

      TopView's Web Configurator documentation provides instructions for generating a self-signed certificate. Because self-signed certificates are not backed by a Certificate Authority, modern web browsers may display warnings of an insecure connection ...