Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to locate Global asax file in web app VS2012

I'm building a web application in visual studio 2012. I meet with error such as this

WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).

Therefore after googling, it says that i need to edit some parts in the global asax file. However, i'm not able to locate my global asax file when i create web app. I'm only able to find it when i create a website.

like image 413
Bryan Avatar asked Mar 24 '23 21:03

Bryan


1 Answers

The Global.asax file is not required. Here is some info about that from Microsoft.

If you right click on your project and go to Add->New Item and open the wizard, you can select Web in the left box and Global Application Class in the right box it will automatically add Global.asax file in the Name box and you can create it easily. Hope that helps.

like image 100
CodeChops Avatar answered Apr 01 '23 09:04

CodeChops