# Class UnableToFindServiceException OptimaJet.Workflow.Api.Exceptions.UnableToFindServiceException An exception thrown when a required service is not found. Namespace: [OptimaJet.Workflow.Api.Exceptions](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Exceptions/) ```csharp public class UnableToFindServiceException : InvalidOperationException, ISerializable ``` ## Type Hierarchy - [Exception](https://learn.microsoft.com/dotnet/api/system.exception) - [SystemException](https://learn.microsoft.com/dotnet/api/system.systemexception) - [InvalidOperationException](https://learn.microsoft.com/dotnet/api/system.invalidoperationexception) - UnableToFindServiceException Current type - Implemented interfaces - [ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable) ## Constructors `public UnableToFindServiceException(string serviceName, string extensionMethodName)` An exception thrown when a required service is not found. ### Parameters | Name | Type | Description | | --- | --- | --- | | `serviceName` | `String` | The name of the service that was not found. | | `extensionMethodName` | `String` | The name of the extension method that should be used to register the service. | [Previous SnapshotIsObsoleteException](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Exceptions/SnapshotIsObsoleteException/) [Next WorkflowDesignerApiException](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Exceptions/WorkflowDesignerApiException/)