.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 5th, 2004, 05:05 PM
jmlsgateway jmlsgateway is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: OKC
Posts: 342 jmlsgateway User rank is Private First Class (20 - 50 Reputation Level)jmlsgateway User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 20 h 48 m 28 sec
Reputation Power: 5
Not Defined Error

I am working with a asp.net file. The web file links to a code behind page that contains all the procedures and stuff. I know when you use asp.net, all the code behind stuff is pre-compiled into the .dll . I found a line of code to put in the .aspx file so that it would read directly to source and not from the .dll . The problem is that in the code behind, I call .vb file (file name is Searches.vb) that has some functions that I am trying to use. The Namespace is: DatabaseCalls, and the Public Class is: Searches. However I keep getting the error:

Compiler Error Message: BC30002: Type 'DatabaseCalls.Searches' is not defined.

When I take out the line
Dim Auth as DatabaseCalls.Searches = New DatabaseCalls.Searches()
It gives me the error "DatabaseCalls.Searches is not declared"



Here is the code from the codebehind file:

Dim vUserID As String = User.Identity.Name.ToString
Dim Auth as DatabaseCalls.Searches = New
DatabaseCalls.Searches()

Dim vPassword As String = Request.Cookies("UserInfo")
("Password").ToString

If Request.Cookies("UserInfo")("UserType").ToString = "M" Or
DatabaseCalls.Searches.TestPaidServices(vUserID,
vPassword, "Forms") > 0 Then
GrabFormFiles()


And Here is the code in the Searches.vb File

Imports System
Imports System.Web
Imports System.Configuration
Imports System.Data
Imports System.Data.SqlClient

Namespace DatabaseCalls

Public Class Searches

Public Shared Function DBAuthenticate(ByVal
vUsername As String, ByVal vPassword As
String, ByVal vUserType As String) As Integer

......

End Function
End Public Class
End Namespace


I Think what might behappening is the code behind is reading a pre-compiled version of Searches.VB. Is there anyway to make it just read the file Searches.VB. Also my .dll is in the bin directory.

Any help would be much appreciated!!!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Not Defined Error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT