DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  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, 12:27 AM
  2. Knowing the type of an object in c#...
    By premartha in forum .NET
    Replies: 2
    Last Post: 11-02-2005, 01:04 AM
  3. covariant return type
    By pseudo in forum C++
    Replies: 3
    Last Post: 04-05-2005, 10:57 AM
  4. Replies: 1
    Last Post: 02-05-2003, 12:08 PM
  5. Replies: 3
    Last Post: 08-31-2001, 10:22 AM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links