# Decorator not resolved

**URL:** <https://forum.litium.com/t/decorator-not-resolved/381>\
**Category:** Questions\
**Created:** [November 23, 2018, 1:47pm UTC](https://forum.litium.com/t/decorator-not-resolved/381 "2018-11-23T13:47:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![totte.perera](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@totte.perera](https://forum.litium.com/u/totte.perera)\
**Post date:** [November 23, 2018, 1:47pm UTC](https://forum.litium.com/t/decorator-not-resolved/381/1 "2018-11-23T13:47:10Z")

</div>

Hi.

I have a problem where my Decorator class that is implementing MetaService isn’t being resolved. Instead Litium MetaServiceImpl class is resolved when I’m injecting MetaService.

The problem seems to be only in my local environment, not any of my collegues local environtment.

The reason I’m asking you is to check if you have any tips, because we have no control over the registration of services and decorators.

I have reloaded the packages, restarted the site, and I’ve done a clean build.

Decorator class:

[ServiceDecorator(typeof(MetaService))]  
public class MetaServiceDecorator : MetaService

Impl class:  
public class MetaServiceImpl : MetaService

Litium version: MVC litium 5

---

<div class="post-metadata">

**Author:** ![kristoffer](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/kristoffer/32/106_2.png) [@kristoffer](https://forum.litium.com/u/kristoffer)\
**Post date:** [November 24, 2018, 8:16am UTC](https://forum.litium.com/t/decorator-not-resolved/381/2 "2018-11-24T08:16:42Z")

</div>

Have you tried cleaning/rebuilding solution? You might want to also manually delete the obj/ and bin/ folder from your project just to make sure.

---

<div class="post-metadata">

**Author:** ![marten](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/marten/32/11_2.png) [@marten](https://forum.litium.com/u/marten)\
**Post date:** [November 26, 2018, 7:21am UTC](https://forum.litium.com/t/decorator-not-resolved/381/3 "2018-11-26T07:21:39Z")

</div>

Have you checked that you have a reference to the project that implements the decorator?
