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

# InvalidFormTypeOperationException

## Overview

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

Thrown when an operation is attempted on the wrong form type (e.g.

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

## Methods

| Signature | Description |
|-----------|-------------|
| `InvalidFormTypeOperationException()` | Calls InvalidFormTypeOperationException on this InvalidFormTypeOperationException instance. |
| `InvalidFormTypeOperationException(message: string)` |  |
| `InvalidFormTypeOperationException(message: string, innerException: Exception)` |  |
| `InvalidFormTypeOperationException(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/)