I have WCF service and inside this service using MEF i am calling runtime class library.
I have implemented DI(castle Windsor) in this class library and it work ok in all request but instantly some time it return error like below
"HttpContext.Current is null. PerWebRequestLifestyle can only be used in ASP.Net"
We have apply all internet solution like install Asp.net feature, change DI Lifecycle from LifestylePerWebRequest to scope , hibridgeLifeStyle etc But not found proper result below is my code
Can any one plese help me solve this issue. As i am new in DI and don't this is Life cycle issue or MEF issue or threading issue because i am calling this class libreary in to thread
Thanks in advance