|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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!!!! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > .Net Development > Not Defined Error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|