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

    • 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 ...
    • 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 ...
    • Citect OPC Server on Windows 7

      This is a general support posting regarding TopView OPC communicating to Citect OPC Server on Windows 7. The two issues that a TopView user may experience are: TopView can connect to the OPC Server but reports that the server is not in a “running” ...
    • ClearSCADA connection fails with: "Error: CheckConnectionToServer > error creating group : AddGroup failed with error"

      If you receive an error connecting to ClearSCADA with the following error message: ClearSCADA can be set up to use OPC private security and require credentials for permissions to connect to the server and retrieve tag values. To connect, provide the ...
    • Error reading setup initialization file

      Due to Windows permissions, you may see an error message after attempting to run the setup application saying: "Error reading setup initialization file". To install TopView, right click on the setup application and select "Run As Administrator". As ...