June 2008
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Search

 
Catagories
Archives
Recent Entries
Links
RSS
.net global.asax page error
Catagory: programming · This Entry · Comment(0) · eMail entry · Google
March 15, 2004 12:16 PM

programming

You may just need to recompile the code, in order to register the assembly on your box. Otherwise this error typically occurs from improper namespace usage between your assembly and the web page referencing the namespace used by your application.


You need to make sure your namespace matches the inherits attribute in the global.asax application codebehind tag. You have to open the file manually since visual studio doesn't really let you open it directly.

c#
<%@ Application Codebehind="Global.asax.cs" Inherits="__NAMESPACE__" %>

vb.net
<%@ Application Codebehind="Global.asax.vb" Inherits="__NAMESPACE__" %>

Change the attribute, so your inherits (namespace) matches your project namespace and recompile. this is a pretty well known issue, but keep in mind it's also *case sensitive* as well.





Comments

Post a comment
Name:


Email Address:


URL:


Comments: