I have created a C#-> Asp.Net Empty Web Application (Framework 4.0). I want to add few line of code in Global.asax on Application_Error section. But unfortuantely global.asa
You can also add it from project i.e. right click the project and add new item there you can find or search for Global Application Class template and add it.It's done.
You can add a new file to the project of type Global Application Class
File -> New -> File -> Global Application Class
Alternately, you can create a new temporary project, which should generate a Global.asax file. Then just copy/paste that into your project.
Goto File->New->Project->web->Asp.Net Web Application->select Web form-click Ok. Now you are done; you see the Global Application file when you select web forms while creating a new project. Try this and let me know.