asp-state command not found

In this troubleshooting guide we learn how to fix asp-state command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

asp-state: command not found

or when using sudo you get the following error message

sudo: asp-state: command not found

Solutions to asp-state: command not found

How To Fix asp-state: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu asp-state is provided by mono-xsp package.

mono-xsp is:

XSP is a simple web server written in C# that can be used to run your ASP.NET applications.

This is a metapackage to pull in the standalone ASP.NET web server. If you want to run ASP.NET applications with Apache, look at mono-apache-server.

To fix this problem, we can install more using the command below.

sudo apt-get -y install mono-xsp

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install mono-xsp.

sudo apt -y install mono-xsp

Or if you have aptitude installed you can use the following command.

sudo aptitude install mono-xsp

Summary

In this tutorial we learn how to fix asp-state command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.