S
Santosh
Friends,
I have a WIN2K server with .Net Framework and SDK running but no VS.Net
I have Windows XP with the same framework and SDK but no VS.Net
I am a newbie to ASP.Net
I have this simple class under WebForm1.aspx.vb, see below.
*****************WebForm1.aspx.vb***************************
Class LibClass
Inherits System.Web.UI.Page
Public Dim ObjLib As Object
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
'NOTE: The following placeholder declaration is required by the Web Form
Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
'
Response.Write("This is a Major Test")
'
End Sub
End Class
********************************************
I compiled the above vb file to an DLL with no errors using the vbc code
below,
vbc /t:library /out:bin\MyProject.dll /r:System.dll /r:System.Web.dll
/r:System.Data.dll WebForm1.aspx.vb
********************************************
I have a Index.aspx page which has a page directive on the top as,
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb"
Inherits="Dotnet.LibClass"%>
Note: The Dotnet is my application name.
********************************************
When I run this page I get the following 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 'Dotnet.LibClass'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="Dotnet.LibClass"%>
Line 2:
Line 3:
********************************************
I dunno what in the world is going on,
Is there any environment variables to set, is there anything wrong with my
code.
I just want to see the page write "This is a major test" as a result of
Response.Write on Page Load.
Any Help is sincerely appreciated.
TIA,
Santosh
I have a WIN2K server with .Net Framework and SDK running but no VS.Net
I have Windows XP with the same framework and SDK but no VS.Net
I am a newbie to ASP.Net
I have this simple class under WebForm1.aspx.vb, see below.
*****************WebForm1.aspx.vb***************************
Class LibClass
Inherits System.Web.UI.Page
Public Dim ObjLib As Object
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
'NOTE: The following placeholder declaration is required by the Web Form
Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
'
Response.Write("This is a Major Test")
'
End Sub
End Class
********************************************
I compiled the above vb file to an DLL with no errors using the vbc code
below,
vbc /t:library /out:bin\MyProject.dll /r:System.dll /r:System.Web.dll
/r:System.Data.dll WebForm1.aspx.vb
********************************************
I have a Index.aspx page which has a page directive on the top as,
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb"
Inherits="Dotnet.LibClass"%>
Note: The Dotnet is my application name.
********************************************
When I run this page I get the following 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 'Dotnet.LibClass'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebForm1.aspx.vb" Inherits="Dotnet.LibClass"%>
Line 2:
Line 3:
********************************************
I dunno what in the world is going on,
Is there any environment variables to set, is there anything wrong with my
code.
I just want to see the page write "This is a major test" as a result of
Response.Write on Page Load.
Any Help is sincerely appreciated.
TIA,
Santosh