---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/InvalidPasswordException
---

# InvalidPasswordException

## Overview

`InvalidPasswordException` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `PdfException`.

Thrown when a password-protected operation is attempted without supplying a valid password (e.g.

This class provides 6 methods for working with InvalidPasswordException objects in .NET programs.
Available methods include: `GenerateCrashReport`, `InvalidPasswordException`, `PdfException`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.

## Methods

| Signature | Description |
|-----------|-------------|
| `InvalidPasswordException()` | Calls InvalidPasswordException on this InvalidPasswordException instance. |
| `InvalidPasswordException(message: string)` |  |
| `InvalidPasswordException(message: string, innerException: Exception)` |  |
| `InvalidPasswordException(innerException: Exception)` |  |
| `PdfException()` | Initializes a new instance of the PdfException class. |
| `GenerateCrashReport(options: CrashReportOptions)` | Write a crash report to disk per options. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)