WCf With Globel.asax Events
Is Thera any way to use events like globel.asax in Wcf ???
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Pravin MoreRank #1,419 · 1.2K reputationPosted Oct 24, 2011, 4:39 AM EDT
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.