473,382 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Cannot load Class?? .NET2

ASP.NET 2 (VB)

I'm experimenting with MS VWD and .NET2. I'm tinkering with the Code Behind
method as demonstrated on MS's tutorial at
http://www.asp.net/QuickStart/aspnet...spx#codebehind .
Yet, when I follow the example and apply it to my own little test, I get a
server error of:

Parser Error Message: Could not load type 'PasswordClass'.
Line 1: <%@ Page language="VB" CodeFile="CodeFiles/forgotpwd_aspx.vb"
Inherits="PasswordClass" %>
Line 1 above is the first line of my page. My codefile looks like this:

Imports Microsoft.VisualBasic

Partial Class PasswordClass

Inherits System.Web.UI.Page

Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As
System.EventArgs)

lblMessage.Text = "Success" & Time()

End Sub

End Class

Any ideas of what I'm doing wrong?
Feb 8 '06 #1
2 1319
To add addt'l info....I tried the example straight off the MS site (link in
orig post) and it doesn't work either. The .NET2 Framework is installed on
the test server. Is there something I need to set up or configure on the
server other than just install the .NET 2 Framework? Do I need to do
anything in IIS?


"D. Shane Fowlkes" <sh**********@h-o-t-m-a-i-l.com> wrote in message
news:O$*************@TK2MSFTNGP12.phx.gbl...
ASP.NET 2 (VB)

I'm experimenting with MS VWD and .NET2. I'm tinkering with the Code
Behind method as demonstrated on MS's tutorial at
http://www.asp.net/QuickStart/aspnet...spx#codebehind
. Yet, when I follow the example and apply it to my own little test, I get
a server error of:

Parser Error Message: Could not load type 'PasswordClass'.
Line 1: <%@ Page language="VB" CodeFile="CodeFiles/forgotpwd_aspx.vb"
Inherits="PasswordClass" %>
Line 1 above is the first line of my page. My codefile looks like this:

Imports Microsoft.VisualBasic

Partial Class PasswordClass

Inherits System.Web.UI.Page

Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As
System.EventArgs)

lblMessage.Text = "Success" & Time()

End Sub

End Class

Any ideas of what I'm doing wrong?

Feb 8 '06 #2
Resolved.

I tinkered around in IIS and found where I can set the application to .NET 2
instead of 1.1.

"D. Shane Fowlkes" <sh**********@h-o-t-m-a-i-l.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
To add addt'l info....I tried the example straight off the MS site (link
in orig post) and it doesn't work either. The .NET2 Framework is
installed on the test server. Is there something I need to set up or
configure on the server other than just install the .NET 2 Framework? Do
I need to do anything in IIS?


"D. Shane Fowlkes" <sh**********@h-o-t-m-a-i-l.com> wrote in message
news:O$*************@TK2MSFTNGP12.phx.gbl...
ASP.NET 2 (VB)

I'm experimenting with MS VWD and .NET2. I'm tinkering with the Code
Behind method as demonstrated on MS's tutorial at
http://www.asp.net/QuickStart/aspnet...spx#codebehind
. Yet, when I follow the example and apply it to my own little test, I
get a server error of:

Parser Error Message: Could not load type 'PasswordClass'.
Line 1: <%@ Page language="VB" CodeFile="CodeFiles/forgotpwd_aspx.vb"
Inherits="PasswordClass" %>
Line 1 above is the first line of my page. My codefile looks like this:

Imports Microsoft.VisualBasic

Partial Class PasswordClass

Inherits System.Web.UI.Page

Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As
System.EventArgs)

lblMessage.Text = "Success" & Time()

End Sub

End Class

Any ideas of what I'm doing wrong?


Feb 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Yasutaka Ito | last post by:
Hi folks! I have a BaseForm class that inherits System.Windows.Forms.Form. It has a property, whose value I need supplied by the class that inherits it. The BaseForm usees the value supplied...
0
by: Groove | last post by:
I've noticed something that's come up twice today alone. In ASP.NET 1, I could reference and use a control's property if the control was set to readonly or if it was set to visible = false. Such...
4
by: hvj | last post by:
I need to run a .NET1.1 program in a .NET2.0 CLR. The .NET1.1 exe starts correctly in .NET2.0. Now I want to debug in Visual Studio 2005. But when I try to open the .NET1.1 project, Visual Studio...
1
by: j-in-uk | last post by:
When I try to open my .net2 website at another location, I cannot view my xsd files. I get the error "unable to convert to an input xml file content to a dataset. Root element is missing" ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.