简体   繁体   中英

Can Global.asax file be ignored if I don't use ASP.NET compatibility for a WCF Service?

Does the setting of ASP.NET compatibility Mode have any impact on the events fired on Global.asax file of the WCF service?

Moreover, if ASP.NET compatibility is FALSE, is it possible that Global.asax is completely ignored and none of the events within would be fired?

PS : I am trying to figure out why my Global.asax file is not hit when I deploy my service to a different environment.)

For HTTP access to the service, if ASP.NET compatibility is enabled, then the Global.asax events are fired; if it's disabled then the service doesn't get the ASP.NET lifecycle model, and even with it enabled it won't matter if accessing through, say, TCP.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM