---
title: "A potentially dangerous Request .Form value was detected from the client"
slug: "a-potentially-dangerous-request-form-value-was-detected-from-the-client"
description: "Fix the 'A potentially dangerous Request.Form value was detected' error in the Lansweeper Classic web console by adding the httpRuntime tag to web.config."
updated: 2026-06-17T10:36:53Z
published: 2026-06-17T09:16:38Z
canonical: "docs.lansweeper.com/a-potentially-dangerous-request-form-value-was-detected-from-the-client"
stale: true
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lansweeper.com/llms.txt
> Use this file to discover all available pages before exploring further.

# A potentially dangerous Request .Form value was detected from the client

Both the scanning service and web console have a configuration file, which stores information on which Lansweeper database to connect to. If the "httpRuntime" tag is missing from your web console configuration file, you may encounter errors similar to the one below when trying to create a new ticket in the help desk:

`A Required Anti-Forgery Token was not supplied or was invalid`

To resolve this issue, follow these steps:

1. In **Windows Services** on the machine hosting your web console, stop the web server service running the console. Keep in mind that this will log everyone out of the console. Your web server service is either IIS Express or World Wide Web Publishing Service (IIS). If you're unsure which web server your console is running under, browse to the following section of the web console and check the **WebServer** field: **Configuration > Website Settings**
2. Open the following file with Notepad or another text editor: `Program Files (x86)\Lansweeper\Website\web.config`.
3. Add the line below in the location shown in the screenshot below and save your changes.

```
<httpRuntime requestValidationMode="2.0" maxRequestLength="201900" executionTimeout="600" />
```

![The web.config file open in a text editor, showing the system.web section with the httpRuntime line added inside it.](https://cdn.document360.io/21d5935c-1b73-44fa-bf5a-a8b0f5c67f25/Images/Documentation/web-config-httpruntime-location(1).png)
4. Restart the web server service in **Windows Services**.
5. Refresh any web browser tabs where the web console is currently open.
