WCf With Globel.asax Events
Is Thera any way to use events like globel.asax in Wcf ???
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pravin MorePosted Oct 24, 2011, 8:39 AM
yes can use globel.asax in wcf like asp but for that you need to make asp compatibility mode true in your web.config file like this
and in Service class like this .........
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class Service1 : IService1
Thanks,this may help you.
Pravin.