ERROR could not load type "_default" & SOLUTION
Its a namespace issue !!!!
(Update wasnt complete or proper during convertion of a "website" to a "web project app")
==========================
MY SETTINGS
==========================
Using VS 2005 SP1
Web application configured in IIS to use Asp version: 2.0.50727
==========================
PART 1
==========================
Add a NEW webform (mine was webform1.aspx)
Open webform in HTML source mode and look at the inherits part of the @page directive of the .aspx page
<%@ Page Language="VB" AutoEventWireup="false" Inherits="TEST.Overview" EnableEventValidation="false" Codebehind="Overview.aspx.vb" %>
The Inerits is in the format of NAMESPACE.Classname (my namespace was TEST)
(NOTE: the namespace on the inherits must match namespace name set in the assembly properties)
Now, change inherits of of the @PAGE on all the other .aspx and .ascx pages to match
FOR EXAMPLE:
<%@ Page Language="VB" AutoEventWireup="false" Inherits="TEST._Default" Codebehind="Default.aspx.vb" %>
<%@ Page Language="VB" AutoEventWireup="false" Inherits="TEST.Login" Codebehind="Login.aspx.vb" %>
Now open the default.aspx.vb
also put "public" on partial class
ex. Partial Public Class _default
Repeat for the other aspx.vb and ascx.vb pages
==========================
PART 2 (if there are ascx pages used)
==========================
Getting error of -- Type 'navbar' is not defined??? about ascx pages (ex. a footer, nav bar, etc) !!!
For each page that use these controls (not the ascx page,itself)
a) Open the aspx.designer.vb page of a page that refrences the ascx
b) look for the reference to the aspx
ex: Protected WithEvents Footer1 As Global.Lib_Footer
c) change the line to include the namespace & save
ex: Protected WithEvents Footer1 As Global.TEST.Lib_Footer
==========================
PART 3
==========================
build project