View Full Version : Global.asax
esb01
10-10-2003, 08:28 AM
Hi,
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" %>
Never seen that. Is that some code you wrote or just some sort of erromessage ? Can you post some more (relevant) code ?
angiras
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
esb01
10-10-2003, 04:23 PM
Yes,
I have
<%@ Application Codebehind="Global.asax.vb" Inherits="site.Global" %>
and
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)?
whammy
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. :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.