# ReferenceNotFoundException Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.referencenotfoundexception/)

## ReferenceNotFoundException(Type, uint) {#constructor-system-type-uint-f8daece2}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.referencenotfoundexception/constructors/constructor-system-type-uint-f8daece2/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Exceptions.cs#L254-L259)

```csharp
public ReferenceNotFoundException(Type targetType, uint targetId)
```

Initializes a new instance of the [ReferenceNotFoundException](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.referencenotfoundexception/) class.

### Parameters

- `targetType` (`Type`): Type of the target.
- `targetId` (`uint`): The target identifier.
