View Full Version : Global.asax

10-10-2003, 08:28 AM

Can anybody tell me what this error is about? I can run the site locally but getting the following error message when I upload it and run on the server -

Parser Error Message: Could not load type 'site.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="site.Global" %>

10-10-2003, 08:41 AM
Never seen that. Is that some code you wrote or just some sort of erromessage ? Can you post some more (relevant) code ?

10-10-2003, 08:52 AM
normally you would have a Namespace Root = site

>!> be carrefull it is case Sensitive even with VB : site <> Site

then if you have
<%@ Application Codebehind="Global.asax.vb" Inherits="site.Global" %>

in you Global.asax.vb must be :

Public Class Global : Inherits HttpApplication

End Class

10-10-2003, 04:23 PM
I have
<%@ Application Codebehind="Global.asax.vb" Inherits="site.Global" %>
Public Class Global
Inherits System.Web.HttpApplication

And again the site runs locally fine.

One more question - if I created a web application under Inetpub/wwwroot/site/ do I have to create "site" folder on the server and move files there or the app can be run from the root (www)?

10-13-2003, 03:27 AM
That would work just like classic ASP, I'd assume, since they both use IIS.

You'd have to have the folder there and you would have to have "site" as a virtual directory or root folder in IIS, I'd imagine. :)