Attix5 Pro FAQ
Search:     Advanced search

How to add the Web Server (IIS) role to Windows Server 2008/2012 server for the Adhoc Query Tool to work

Article ID: 33
Last updated: 11 Feb, 2014

Overview

If you have a bare Windows Server 2008/2012 server with a Storage Platform installed and you go to the Adhoc Query Tool in the browser ( https://ServerIp/admin/sql.htm ) the bottom frame will show a Error 404 The webpage cannot be found.

The AS log will show the following message:

10:04:54 Error: ASP.Net run-time could not start. Error: Could not load file or assembly 'AspRuntimeHost, Version=1.0.3665.37600, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Solution

To fix this you have to add the Web Server (IIS) role to your server the Server Manager.

Steps to add role in Server 2008:

  1. Click Start, point to Administrative Tools, and then click Server Manager.
  2. In Roles Summary, click Add Roles.
  3. In the Add Roles Wizard, on the Before You Begin page, click Next.
  4. On the Select Server Roles page, select Web Server (IIS), and then click Next.
  5. On the Web Server (IIS) page, click Next.
  6. On the Select Role Services page, ensure ASP.NET is selected.
  7. On the Summary of Features to Install page, confirm your selections, and then click Install.
  8. On the Installation Results page, confirm that your installation of the Web Server (IIS) role and required role services completed successfully, and then click Close.
  9. To verify that IIS installed successfully, type the following into a Web browser: http://localhost You should see the default IIS Welcome page.

Steps to add role in Server 2012:

  1. On the Start page, click the Server Manager tile, and then click OK.
  2. In Server Manager, select Dashboard, and click Add roles and features.
  3. In the Add Roles and Features Wizard, on the Before you begin page, click Next.
  4. On the Select installation type page, select Role-based or feature-based installation, and click Next.
  5. On the Select destination server page, select Select a server from the server pool, select your server, and click Next.
  6. On the Select server roles page, select Web Server (IIS), and click Next.
  7. On the Select features page, click Next.
  8. On the Web Server Role (IIS) page, click Next.
  9. On the Select role services page, note the preselected role services that are installed by default, expand the Application Development node, and then select ASP.NET 4.5. (If you installed .NET 3.5, select ASP.NET 3.5 also.)
  10. On the Summary of Features to Install page, confirm your selections, and then click Install.
  11. In the Add features that are required for ASP.NET 4.5? box, click Add Features. The following additional features are added:
    • .NET Extensibility 4.5 
    • ISAPI Extensions 
    • ISAPI Filters 
    • .NET Extensibility 3.5 (If ASP.NET 3.5 was selected)
  12. Click Next.
  13. On the Confirm installation selections page, click Install.
  14. On the Installation progress page, confirm that your installation of the Web Server (IIS) role and required role services completed successfully, and then click Close.
  15. To verify that IIS installed successfully, type the following into a web browser: http://localhost The default IIS Welcome page is displayed.

Note

Please make sure that the Default Web Site on port 80 and 443 in IIS is disabled, or removed, because the AccountServer binds to these ports.
If you see the following errors and warnings  in your AS log, the Default Web Site is running in IIS and should be stopped or removed with the Internet Information Services (IIS) Manager.

10:59:03 Error: Unable to start listener on 192.168.20.163:80: An attempt was made to access a socket in a way forbidden by its access permissions
10:59:03  Warn: Could not start HTTP server for reports on address 192.168.20.163:80
10:59:03 Error: Unable to start listener on 127.0.0.1:80: An attempt was made to access a socket in a way forbidden by its access permissions
10:59:03  Warn: Could not start HTTP server for reports on address 127.0.0.1:80

If you get the “Object reference not set to an instance of an object” error:

  1. Download sqlresult.aspx and web.config.
  2. Replace the sqlresult.aspx file in the C:\Program Files\Attix5 Pro\Storage Platform\wwwroot\admin folder.
  3. Copy the web.config file into the C:\Program Files\Attix5 Pro\Storage Platform\wwwroot\bin folder.

Article ID: 33
Last updated: 11 Feb, 2014
Revision: 3
Views: 35809
Comments: 0
Posted: 03 Aug, 2010 by Smit F.
Updated: 11 Feb, 2014 by Van Rensburg J.
This article was:  
Prev   Next
Article 20 - What happens during the first V6 roll-up on an upgraded platform?     Article 34 - How to set the socket timout on the Storage Platform.