Service debugging - Unable to start RESTHost service: Access is denied

When service debugging a RESTHostSVC or SimpleRESTHostSVC locally with a Base URI similar to http://localhost:8080/path and you receive the below error:

Unable to start RESTHost service: 
Access is denied

Re-open in the Linx Designer with administrator rights (“Run as administrator”) and then open your Solution.

Some users may experience the below error when service debugging a REST service locally.

Unable to start SimpleRESTHost service
The process cannot access the file because it is being used by another process

To address the problem, follow the steps listed in this article.

Just a note that some users may experience issues going from debugging locally to deploying on their Linx Cloud Server instance.

When you are debugging the service locally, the RESTHost/SimpleRESTHost service runs locally on your PC within the Linx Designer instance itself, that why it has no problem accessing localhost resources such as your database if you’ve setup the correct pwd and username in the connection string (For example if you have integrated security set to “true” on a database connection string).

When you deploy to a Linx application cloud server, your solution is hosted on the Linx application server which runs on an azure instance in the “cloud”. If you want to connect to a database or other data sources you will need to configure your target data source to accept connections and you will also have to setup access rights etc as well as update your connection details on the Linx side so that it can connect.

Also take note about changing the Base URL when deploying to the Linx application cloud server, more details can be found here.