Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Global.asax

  1. #1
    New Coder
    Join Date
    Jun 2003
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Global.asax

    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" %>

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Never seen that. Is that some code you wrote or just some sort of erromessage ? Can you post some more (relevant) code ?

  • #3
    Regular Coder
    Join Date
    Dec 2002
    Location
    France
    Posts
    522
    Thanks
    0
    Thanked 0 Times in 0 Posts

    it is written

    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

  • #4
    New Coder
    Join Date
    Jun 2003
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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)?

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •