---
title: 'AwilixResolutionError: Could Not Resolve X'
---

import ServiceLifetimeSection from './awilix-resolution-error/_service-lifetime.md'
import CustomRegistrationSection from './awilix-resolution-error/_custom-registration.md'
import FreshInstallationSection from './awilix-resolution-error/_fresh-installation.md'

This troubleshooting guide will help you figure out the different situations that can cause an `AwilixResolutionError`.

## Option 1: Service Lifetime

<ServiceLifetimeSection />

---

## Option 2: Using Try-Catch Block with Custom Registration

<CustomRegistrationSection />

---

## Option 3: Error on A Fresh Installation

<FreshInstallationSection />
