Reinstalling the web console

If your Lansweeper web console stops working for some reason or won't load at all, the first thing you should try is restarting the web server service that runs the console. Your web server service is either IIS Express or World Wide Web Publishing Service (IIS). If restarting the service in Windows Services does not resolve the issue, you can try reinstalling the console.

Reinstalling just the web console won't affect scanned data or settings, which are stored in a separate database hosted in either Microsoft SQL Compact or Microsoft SQL Server.

To reinstall just the web console, do the following:

  1. Determine which database server (SQL Compact or SQL Server) you're using by verifying whether the file below exists on the server hosting your database. If this file exists, you're using SQL Compact. If it doesn't, you're using SQL Server.
    Program Files (x86)\Lansweeper\SQLData\lansweeperdb.sdf
  2. If your Lansweeper database is hosted in SQL Server and you never configured your own custom database password before, do so now by following the instructions in this knowledge base article.
  3. Stop your web server service in Windows Services. Your web server service is either IIS Express or World Wide Web Publishing Service (IIS).
    stopping the web server service
  4. If you added any documents, images or widgets to Lansweeper, back up these files. Information on which Website subfolders store which data can be found in this knowledge base article.
    Do not back up the entire Website folder. Only back up the specific subfolders you need. Backing up and restoring the entire Website folder can lead to issues.
  5. If it exists, create a backup copy of the following file as well:
    Program Files (x86)\Lansweeper\Key\Encryption.txt
  6. Run the Lansweeper installer, hit the Next button and hit I agree to accept the license agreement.
  7. Select New installation, hit Next and then select Advanced install
    performing a new Lansweeper installation
  8. Tick New Lansweeper Website and, depending on which database server is hosting your database, tick SQL Compact or SQL Server as well. Hit Next afterwards.
    choosing components for reinstallation
    Do not tick New Lansweeper Database or New Lansweeper Service. If you do, the Lansweeper database and/or service will be reinstalled as well. If you reinstall the database, all your scanned data and settings will be lost.
  9. If your database is hosted in SQL Server, point the installer to your existing SQL instance and hit Next. You can connect to the instance with the lansweeperuser SQL user and the database password you configured earlier.
  10. Select the web server you'd like to install the console under. Selecting Recommended will install the web console under IIS Express, selecting Advanced will install the web console under IIS. The Advanced option will only be available if IIS is already enabled on your computer. Instructions for enabling IIS can be found in this knowledge base article. Optionally, you can choose a custom HTTP and (if offered by the installer) HTTPS port to install the web console under. If you don't choose custom ports, the installer will automatically select the first available ports for installation. Hit Next to continue.
    choosing Lansweeper web server
  11. Optionally, you can choose a custom folder to install under. Hit Install to start the installation process. The web console will be installed under the web server of your choice and your preferred ports. It will connect to the existing database server (SQL Compact or SQL Server) specified by you.
    choosing Lansweeper installation folder
  12. Stop your web server service in Windows Services
    stopping the web server service
  13. Restore the Website subfolders and Encryption.txt file you created a backup of earlier.
    Do not restore the entire Website folder. Only restore the specific subfolders you need. Backing up and restoring the entire Website folder can lead to issues.
  14. If your database is hosted in SQL Server, run the following tool on your Lansweeper server and click through any warnings about your database password being incorrect:
    Program Files (x86)\Lansweeper\Tools\ConfigEditor.exe
    ConfigEditor tool
  15. As the web console reinstallation will have added a random password to the web console connection string, change the database password in the Website tab to the one you configured earlier, if your database is hosted in SQL Server.
    using ConfigEditor to update the web console password
  16. Restart your web server service in Windows Services.
    restarting the web server service

Related Articles