Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Castle Scoped Lifestyle not working

Trying to find the real cause of this and not having much fun!

Type is not resolved for member 'Castle.MicroKernel.Lifestyle.Scoped.CallContextLifetimeScope+SerializationReference,Castle.Windsor, Version=3.1.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc'. 

This looks like a bug considering I have nothing register with the container using this lifestyle.

like image 533
Code Jammr Avatar asked Dec 14 '25 16:12

Code Jammr


1 Answers

Faced same issue while doing MSTest. Adding Castle.Windsor.dll to GAC worked for me.

gacutil.exe /if "C:\Castle.Windsor.3.1.0\lib\net40\Castle.Windsor.dll"
like image 187
SarkarG Avatar answered Dec 16 '25 05:12

SarkarG



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!