A simple problem I came up agaisn’t today, how to create a Global.asax file.
This global.asax file is an optional file which handles application level events.
I wanted one to set up some variables for my web service (CRM 4) and I wasn’t sure how to add one and I finally worked it out.
Go to the solution explorer -> add new item -> Global application class.
Hey presto you will now have a Global.asax file and a cs file to go with it.
You don’t need to create a new glabal library class since when you create new web application or website, your application itself will already have an item named global.asax.cs in your solution explorer.
Fawad surosh
LikeLike
what am I missing?. I use VS2017 (Community) and have created a web project using ASP.CORE 2.0. I follow explorer -> add new item -> Global application class…….but Global Application Class is NOT available.
LikeLike