MSDN is not always right, especially some of the example code is often weird.
The XML code can be put into web.config
file, whereas global.asax.cs
contains handlers for different app lifecycle events, so you can achieve similar results programatically for example in Application_Start
event handler.