Line 1: <%@ Application Codebehind=”Global.asax.cs” Inherits=”Global’” %>
This error occurs when you create a new web application in asp.net using visual studio.net and without compiling the application, you try to browse a page in the application.
This occurs because of the Application DLL not having been formed.
asp.net will look in the Global Assembly Cache, and then in the application’s local bin directory. If it can’t find the class with the name you specified then it won’t load. When you do a codebehind file in Visual studio, you are writing a base class for your aspx file to inherit from – the HTML template you write in the aspx is inlined into the dynamically generated subclass’s Render method.
Even if you don’t put any code in your page, you still need to compile it as long as you put the Inherts Global in your Page directive.
To resolve this, Built the application using Ctrl + Shift + B or use F5 to build the application and then try to browse the application. The error will be resolved.