Global.asax file is missing on my Asp.Net Empty Web application project

前端 未结 3 1561
一向
一向 2020-12-30 23:15

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

3条回答
  •  借酒劲吻你
    2020-12-30 23:51

    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.

提交回复
热议问题