> For the complete documentation index, see [llms.txt](https://docs.soraco.co/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.soraco.co/docs/qlm-license-server/customizable-server-messages.md).

# Customizable Server Messages

When License server APIs are called, they return error messages that are not customizable.&#x20;

For convenience, a small set of these messages can be customized in the License Server's web.config file.

| Setting in web.config                           | Description                                                                                                   | Default Message                                                                  | Place Holders                                                                             |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| customMessage\_Res\_LicenseKeyReleased          | Used when deactivating a license                                                                              | Activation Key {0} has been released from computer {1}.                          | <p>{0}: Activation Key<br>{1}: Computer Name</p>                                          |
|                                                 |                                                                                                               |                                                                                  |                                                                                           |
| customMessage\_Res\_AllKeysActivated            | Used when a user tries to activate a license that has multiple activations and no more licenses are available | All the available licenses have already been activated.                          | None                                                                                      |
| customMessage\_Res\_LicenseKeyAlreadyActivated4 | Used when a user tries to activate a license that has a single activation and no more licenses are available  | The license {0} has already been activated on a system called {1} on {2} \[{3}]. | <p>{0}: Activation Key<br>{1}: Computer Name<br>{2}: Current Date<br>{3}: Computer ID</p> |

When customizing the message value, QLM will replace the {x} place holders with the proper value as described in the table above. Extreme caution must be exercised when constructing your message. A badly formatted message might cause an exception in the server.

Example:

{% code overflow="wrap" %}

```xml
<QlmWebService.Properties.Settings>
  <setting name="customMessage_Res_LicenseKeyReleased" serializeAs="String">
    <value>Custom Message: Activation Key {0} has been released from computer {1}.</value>
  </setting>
  
  <setting name="customMessage_Res_AllKeysActivated" serializeAs="String">
    <value>Custom Message: All the available licenses have already been activated.</value>
  </setting>
  
  <setting name="customMessage_Res_LicenseKeyAlreadyActivated4" serializeAs="String">
    <value>Custom Message: The license {0} has already been activated on a system called {1} on {2} [{3}].</value>
  </setting>
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.soraco.co/docs/qlm-license-server/customizable-server-messages.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
