Error Bc30002 Type Is Not Defined Asp Net
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn compiler error message bc30002 more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags
Type Control Is Not Defined
Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like
Bc30002 Type Dataset Is Not Defined
you, helping each other. Join them; it only takes a minute: Sign up Error BC30002 - Type XXX is not defined up vote 3 down vote favorite OK, this begins to drive me crazy. I have an asp.net
Bc30002 Type 'datatable' Is Not Defined
webapp. Pretty straightforward, most of the code in the .aspx.vb, and a few classes in App_Code. The problem, which has begun to occur only today (even though most of the code was already written), is that once in a while, I have this error message : Error BC30002: Type ‘XXX’ is not defined The error occurs about every time I modify the files in the App_Code folder. EDIT : OK, this happens also if I don't touch anything for a while then refresh the page. I'm still trying to figure out exactly how to trigger this error. I just have to wait a little bit without touching anything, then refresh the page and it works, but it's very annoying. So I searched a little bit, but nothing came up except imports missing. Any idea ? asp.net vb.net compiler-errors share|improve this question edited May 2 '12 at 10:38 Mr Lister 24.9k85381 asked Sep 17 '08 at 16:33 cosmo0 2,90723360 add a comment| 3 Answers 3 active oldest votes up vote 3 down vote Sounds like a pre compile issue, particularly because you mention that you get the error and then wait and it disappears. ASP.NET may be still in the process of dynamically compiling your application or it has compiled the types into different assemblies. With dynamic compilation, you are not guaranteed to have different codebehind files compiled into the same assembly. So the type you are referencing may not be able to be resolved within its precompiled assembly. Try using the "@Reference" directive to indicate to the runtime that your page and the file that contains your type should be compiled into the same assembly. @ Reference - MSDN share|improve this answer edited Jun 28 at 3:04 answered Sep 17 '08 at 16:57 HaveThunk 1607 3 Link no longer availabl
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/Installation and Setup/Compiler Error Message: BC30002: Type 'List' is not defined Compiler Error Message: BC30002: Type 'List' is not defined [Answered]RSS 9 replies Last post Mar 05, 2012 06:49 AM by kattyjems ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Reply netantix None 0 Points 4 http://stackoverflow.com/questions/85091/error-bc30002-type-xxx-is-not-defined Posts Compiler Error Message: BC30002: Type 'List' is not defined Jan 04, 2012 03:35 PM|netantix|LINK Hi, I am a complete no-hoper when it comes to .asp. I've just inherited an .asp website and had to move it to a shared server for the time being. Everything worked fine on the old https://forums.asp.net/t/1755876.aspx?Compiler+Error+Message+BC30002+Type+List+is+not+defined server and all files, DBs, content and images all transferred OK but i am getting a compilation error on all pages. Description:An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message:BC30002: Type 'List' is not defined. Source Error: Line 18: Line 19: #Region "OLEDB" Line 20: Public Shared Function ExecuteNonQuery(ByVal sql As String, Optional ByVal parameters As List(Of OleDbParameter) = Nothing) As Integer Line 21: Dim conn As New OleDbConnection(ConnectionString) Line 22: 'Optional ByVal parameters As List(Of SqlParameter) = Nothing I believe it is something to do with how the script is calling the database but can anyone point me in the right direction? Here is the file code: Imports System.DataImports System.Data.SqlClientImports System.Data.OleDbNamespace PL Public Class DataAccess Private Shared _connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|dbArkiv.mdb;Persist Security Info=True" Public Shared Property
Unanswered Topics Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics Error using public class in App_Code: BC30002: Type 'xxx' is not defined User Name http://p2p.wrox.com/asp-net-2-0-basics/76903-error-using-public-class-app_code-bc30002-type-xxx-not-defined.html Remember Me? Password Reminder Password Register Register | FAQ | Members List | Calendar | Today's Posts | Search ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with https://www.daniweb.com/programming/web-development/threads/26680/type-not-defined version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum. Search Forums Show Threads Show Posts Advanced Search Find All Thanked Posts Go is not to Page... Welcome to the p2p.wrox.com Forums. You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other is not defined developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free . Thread Tools Display Modes #1 (permalink) November 4th, 2009, 02:02 PM nqsousa Registered User Join Date: Oct 2009 Location: NYC Posts: 7 Thanks: 1 Thanked 0 Times in 0 Posts Error using public class in App_Code: BC30002: Type 'xxx' is not defined Hi, I am experiencing a problem when deploying a website to IIS 7.0. I have no problem when running the website in VWD 2008 Express Edition (localhost). The error occurs when I try to view a page which uses a code-behind file containing a reference to a public class(defined under a code file under App_Code folder). page7.aspx uses page7.aspx.vb as its code-behind page Contents of page7.aspx.vb page are: Quote: Imports Class2 Partial Class Page7 Inherits System.Web.UI.Page Protected Sub LinkButton3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton3.Click Response.Redirect("Default.aspx") End Sub Protected Sub LinkButton2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton2.Click Dim class2_api As New Class2 class2_api.displayalert(TextBox1.Text) End Sub End Class There's a file named Class2.vb in the App_Code folder that contains: Code: Imports Microsoft.Visual
working through Sams Teach Yourself ASP.Net book and have come across an error with one of the basic examples. The example is to do with .vb and .aspx files and compiling them. I have succesfully compiled the database.vb file. The contents of database.vb is as follows: Imports System Imports System.Data Imports System.Data.OleDb Namespace TYASPNET Public Class Database End Class End Namespace The database.aspx file is as follows: <%@ Language="VB" %>