#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    1
    Rep Power
    0

    Could not load type 'Intro.Global'


    Can some please help i am very new to ASP.NET and VB. When I am running the page i get the following errpr message:

    **********************************

    Parser Error
    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: Could not load type 'Intro.Global'.

    Source Error:


    Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="Intro.Global" %>



    Source File: c:\inetpub\wwwroot\ASPdotNET\Intro\global.asax Line: 1

    *******************************

    I get this error with any (different projects) page that i run. I have no idea why.

    Please can someone help.

    Regards

    H
  2. #2
  3. No Profile Picture
    Average Intelligence
    Devshed Novice (500 - 999 posts)

    Join Date
    Apr 2003
    Location
    Ohio/Chicago
    Posts
    678
    Rep Power
    12
    Looks like this is specific to how you have named your project namespace...

    Did you change the default namespace for the project? The parser error means that the ASP.NET page parser couldn't find the requested class. If you changed the namespace trying editing the global.asax file so that the inherits="" matches your new namespace.

    If you didn't change the project namespace try removing the "Intro.Global" and replacing it with "Global"
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    1
    Rep Power
    0

    Exclamation


    The following Line:
    Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="Intro.Global" %>

    Is corrected very easily in ASP it doesn't need to know the extension of your file name in the codebehind i.e for this application
    [code]<%@ Application CodeBehind = "Global.asax" Inherits="Intro.Global" %>
    [code]
    this should resolve your error =)

IMN logo majestic logo threadwatch logo seochat tools logo