How to create global.asax.cs file in asp.net [Resolved]

Posted by perfectchourasia-9163 under ASP.NET on 11/17/2011 | Points: 10 | Views : 7797 | Status : [Member] | Replies : 3
How to create global.asax.cs file in asp.net

I have created the file but then i m getting error
Could not load type 'image.Global.asax.cs'.

<%@ Application Language="C#" CodeBehind="Global.asax.cs" Inherits="image.Global.asax.cs" %>

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/



Responses

Posted by: Dotnetcreed on: 11/17/2011 [Member] Starter | Points: 50

Up
0
Down

Resolved
Hi,

You create it by adding a new item of type global application class.
For this go to solution explorer right click on Web and add new item .

Regards,
Sankardeep V

Code till you bleed..........

perfectchourasia-9163, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Blessyjees on: 11/17/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

This file is created when we add global.asax file into the project. If you are getting error, just delete the file and add once again.

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

perfectchourasia-9163, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 11/17/2011 [Member] Starter | Points: 25

Up
0
Down
And when we create file that is global.asax not global.asax.cs file

I want to create the Global.asax.cs file and when i have created getting error

Could not load type 'image.Global.asax.cs'.

<%@ Application Language="C#" CodeBehind="Global.asax.cs" Inherits="image.Global.asax.cs" %>


ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

perfectchourasia-9163, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response