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

# csharp-binaryformatter-request-deserialization

> Legacy BinaryFormatter.Deserialize consumes an ASP.NET Core request stream.

## What it flags

Matches an imported BinaryFormatter constructed immediately before deserializing the Body of a typed ASP.NET Core HttpRequest parameter. A local fixture stream and unrelated formatter types stay quiet.

The built-in implementation throws on .NET 9 and later. A compatibility package can provide a working legacy implementation. Review the deployed framework and package configuration before assessing reachability. No automatic replacement is offered. [.NET migration guide](https://learn.microsoft.com/en-us/dotnet/standard/serialization/binaryformatter-migration-guide/)

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{ "rules": { "csharp-binaryformatter-request-deserialization": "off" } }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.