Why do I get "Could not load type 'AdamItiel.GlobalApp'"?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Why do I get "Could not load type 'AdamItiel.GlobalApp'"?

  1. #1
    Join Date
    Jul 2004
    Posts
    20

    Angry Why do I get "Could not load type 'AdamItiel.GlobalApp'"?

    global.asax:
    <%@ Application Codebehind="Global.asax.vb" Inherits="AdamItiel.GlobalApp" Language="vb" %>
    Global.asax.vb
    Code:
    Imports System.Web.SessionState
    
    Namespace AdamItiel
        Public Class GlobalApp
            Inherits System.Web.HttpApplication
    
            Private Shared userFirstNameVal As String
            Public Shared Property UserFirstName() As String
                Get
                    Return userFirstNameVal
                End Get
                Set(ByVal value As String)
                    userFirstNameVal = value
                End Set
            End Property
    
            Private Shared newPropertyValue As String
            Public Shared Property UserLastname() As String
                Get
                    Return newPropertyValue
                End Get
                Set(ByVal value As String)
                    newPropertyValue = value
                End Set
            End Property
    
    
            Private Shared newPropertyValue2 As String
            Public Shared Property ClientTypeDesc() As String
                Get
                    Return newPropertyValue2
                End Get
                Set(ByVal value As String)
                    newPropertyValue2 = value
                End Set
            End Property
    
            Private Shared newPropertyValue3 As String
            Public Shared Property Coach() As String
                Get
                    Return newPropertyValue3
                End Get
                Set(ByVal value As String)
                    newPropertyValue3 = value
                End Set
            End Property
    
    
            Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
                ' Fires when the application is started
            End Sub
    
            Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
                ' Fires when the session is started
            End Sub
    
            Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
                ' Fires at the beginning of each request
            End Sub
    
            Sub Application_AuthenticateRequest(ByVal sender As Object, ByVal e As EventArgs)
                ' Fires upon attempting to authenticate the use
            End Sub
    
            Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
                ' Fires when an error occurs
            End Sub
    
            Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
                ' Fires when the session ends
            End Sub
    
            Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
                ' Fires when the application ends
            End Sub
    
        End Class
    End Namespace

    Default.aspx:
    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="AdamItiel._Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title></title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    QQQQQQQQQQQQQQQQQ
    </div>
    </form>
    </body>
    </html>

    Default.aspx.vb
    Code:
    Namespace AdamItiel
    
    Public Partial Class _Default
        Inherits System.Web.UI.Page
    
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    
        End Sub
    
    End Class
    
    End Namespace



    If I try open browser at Default.aspx I get "Could not load type 'AdamItiel.GlobalApp'". Why? What should I change to get rid of it?

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Sounds like you haven't compiled. Try building your project, then reload the page.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Jul 2004
    Posts
    20
    What do you mean under "build"? I chose "Build solution" in VS and bin\Debug folder contains fresh updated .DLL.

  4. #4
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    That's what I mean. I don't know why else you would get that error.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Replies: 1
    Last Post: 01-29-2007, 01:27 AM
  2. Knowing the type of an object in c#...
    By premartha in forum .NET
    Replies: 2
    Last Post: 11-02-2005, 02:04 AM
  3. covariant return type
    By pseudo in forum C++
    Replies: 3
    Last Post: 04-05-2005, 11:57 AM
  4. Replies: 1
    Last Post: 02-05-2003, 01:08 PM
  5. Replies: 3
    Last Post: 08-31-2001, 11:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center