473,383 Members | 1,748 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,383 software developers and data experts.

compiler error BC30451 but not when pre-compiled

Hi,

when i run this code below, i get the error:Compiler Error Message: BC30451:
Name 'check' is not declared.
but if i compile it in advance like this:aspnet_compiler -p
"c:\inetpub\wwwroot\resintra" -v / c:\compiled\resintra -f
or if i run it within Visual Web Developer (Cassini), in both cases it works
without error!!

Any idea?
Thanks T.

Public Class check
Public Shared Sub beh()
Dim cok As HttpCookie
Dim ja As String
Dim jv As String
cok = HttpContext.Current.Request.Cookies("ok")
ja = cok.Value
If ja <"1" Then
jv = "<script language='javascript'>" _
& " alert('You must first registrate');" _
& " window.location.href='start.aspx';" _
& "</script>"
HttpContext.Current.Response.Write(jv)
End If
End Sub
End Class

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
check.beh()
Nov 8 '08 #1
0 1205

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

Similar topics

0
by: DC Gringo | last post by:
I'm getting a "BC30451: Name 'CRListType' is not declared." error Here's the top of the page where I'm getting stuck... <%@ Control Language="vb" AutoEventWireup="false"...
3
by: selena | last post by:
I have created 2 ASP pages that gives users the option of switching back and forth between French and English. They click on the word English and it converted the text to English and the French...
1
by: Matt Tapia | last post by:
I trying to compile a .vb file as such: vbc /t:library /out:C:\Inetpub\wwwroot\crm\bin\CRMWebServices.dll /r:System.dll /r:System.Data.Dll /r:System.Web.Services.dll /r:System.Xml.dll...
1
by: Andy Fish | last post by:
Hi, I am looking for some mechanism of pre-compiling my aspx pages (primarily for use in development to spot compilation errors) The first 2 I tried failed to spot when a page had a syntax error...
2
by: fabrice | last post by:
Hello I'm getting an error during a .vb file compilation. My command is : vbc /t:library /r:system.web.dll /r:system.dll /r:mscorlib.dll myFile.vb The error is :
4
by: Roy | last post by:
Hey all, Created an .aspx page using VB as the code behind. Compiler pops up error: "BC30451: Name 'Replace' is not declared." Essentially, it acts as if Replace is a custom function that needs...
5
by: cody | last post by:
the following leads to an error (note that TEST is not defined): #if TEST string s = @" #"; // <-- the error is "preprocessing directive expected" #endif also, here we get the same error: ...
3
by: SinCity | last post by:
I am getting the error "BC30451: Name '__w' is not declared". How can I fix this? Here is my code... <script language="javascript">...
0
by: Amy Zhao | last post by:
Hi, I get the mentioned compilation error after I deployed my website to the host server. Everything works fine on my local machine. What is the problem?? Any help is appreciated!! BC30451:...
4
by: Don Quijote de Nicaragua | last post by:
Hi, I have a problem trying to load a page, sends me the following error message: Error Message: BC30451: Name 'Utilities' is not declared. Line 50: </ DIV> Line 51: <div id="side"> Line 52:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.