Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database error

Status
Not open for further replies.

lemonjuice

Programmer
Jun 12, 2003
62
ZA
hi, i'm kinda new to vb.net. i'm trying to write an ASP.Net application, but when connecting the webform to my database, i get this error, can anyone please help?!?

Here's the code:

Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="login.aspx.vb" Inherits="Database.Login" %>

error "Could not load type 'Database.Login'.
 
My best guess is that Database.Login isnt a valid Class library. Its looking for a class like System.Data and It cant find it.

Is this an example you got out of a book?
 
Try removing the 'Inherits="Database.Login"' and see what happens. ( Usually it inherits the _Default )
 
Also, it is not a database problem, but rather an inheritance one. Try the above, and if not solved, move the question to the ASP.NET forum: forum855
 
Thanx for the help. The code that i'm using is an example i downloaded for the book i'm using, so its not my code, but the example won't work. I've tried to remove the 'Inherits="Database.Login"', but then there is more errors, and because i'm still trying to teach myself more about the webforms, i dont know if it will connect my database (login.mdb) if i don't add that. I've tried taking all of it out, but then it just keeps popping up Database not opened.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top