Click here to Skip to main content
15,895,872 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello, guys. I want open website in VS 2010. I open and show error:

Error 1 Could not load type 'WebApplication1.Global'. D:\Сайт Ирина Статкевич\WebApplication1\Global.asax 1

I cant undestand why? Please help.

I have check, class global.asax.cs have in solution explorer
Posted
Updated 21-Oct-17 18:13pm
v2

1 solution

Check Class Name with Namespace you specified in your Global.asax is correct and matching with your Global.asax.cs.

HTML
<%@ Application Language="C#" Codebehind="Global.asax.cs" Inherits="Test.Global" %>
 
Share this answer
 
v2
Comments
DimiBy 25-Nov-11 14:55pm    
I have check. Its right.
<%@ Application Codebehind="Global.asax.cs" Inherits="WebApplication1.Global" Language="C#" %>

And namespace WebApplication1
RaisKazi 25-Nov-11 15:02pm    
Well, then not much I can say.

1)But In case if you do not have any existing code in your "Global.asax" file, then you may delete existing file and add new by using "Add New Item" option.
2) If you have existing code in it then you may take a backup of file and perform step/point 1.
Tsehayou sieley Neynu 14-Apr-15 1:07am    
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="policefersmay.Global" Language="C#" %> occur how can correct.help me
DimiBy 25-Nov-11 15:28pm    
Thanks. Will try.
DimiBy 25-Nov-11 17:27pm    
now open, thank you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900