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

vb script/ asp/net question - narrwing down the problem

Ok, here is the situation. I have some vb code that was upgraded to the
earliest asp, I believe. When i run this snippet of code below on my local
xp box with iis and visual studio 2003 installed, it runs just fine... when i
run it on my w2k3 box with iis and asp.net 1.1 and 2.0 installed, but only
1.1 active now because of the aspnet_regiis -i command that was run in the
v1.1.4 folder, i get the error below the code:

Code

<%@ Import Namespace="GT.Global"%>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Default.aspx.vb"
Inherits="GT._Default"%>
<HTML>
<HEAD>
<title>MBA Database Home Page</title>
<link rel="SHORTCUT ICON" href="http://www.namee.com/icons/gt.ico">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="java/GetCookie.js"></script>
</HEAD>
<body bgcolor="#ffffff" text="#000000" leftmargin="2" topmargin="0"
marginwidth="2" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="images/spacer.gif" alt="spacer" width="1"
height="11" border="0"></td>
</tr>
<tr>
<td colspan="3"><img src="images/spacer.gif" alt="spacer" width="15"
height="1" border="0"><a href="<%=SCHOOL_WEB_ADDRESS%>" target=_blank><img
src="<%=SCHOOL_LOGO%>" alt="<%=SCHOOL_LOGO_ALT%>" border=0></a></td>
</tr>
<tr>
<td colspan="3"><img src="images/spacer.gif" alt="spacer" width="1"
height="9"></td>
</tr>
<tr>
<td bgcolor="<%=TOP_BANNER_COLOR%>" width="759" colspan=3 valign=middle>
<table cellpadding="5" cellspacing="0" border="0">
<tr>
<td><img src="images/spacer.gif" alt="spacer" width="15" height="1"
border="0"><img src="images/img_bsgt.gif" alt="The Business School at Name
Tech" width="132"
height="30"></td>
<td><h4 style="MARGIN-BOTTOM: 0px; COLOR: #ffffff">MBA<%If
gbDevelopment Then%>
Development<%End If%>
Database</h4>

Error when run on my iis server:

Compilation Error
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: BC30451: Name 'gbDevelopment' is not declared.

Source Error:

Line 25: <td><img src="images/spacer.gif" alt="spacer" width="15"
height="1" border="0"><img src="images/img_bsgt.gif" alt="The Business School
at Name Tech" width="132"
Line 26: height="30"></td>
Line 27: <td><h4 style="MARGIN-BOTTOM: 0px; COLOR: #ffffff">MBA<%If
gbDevelopment Then%>
Line 28: Development<%End If%>
Line 29: Database</h4>
Source File: C:\Old mba db sourcefiles\GT\default.aspx Line: 27

Interestingly enough, if i remove the line that references the gbdevelopment
variable the page loads just fine. So somehow, it does not seem to recognize
the file that has all of the Global variables described. Is there something
in the syntax of the import command that may have changed from the asp.net
environment to the 1.14 environment....

Jan 20 '06 #1
2 1360
now upon further reading, i can provide some more context.......
Here is what my global.asax file contains

<%@ Application Codebehind="Global.asax.vb" Inherits="GT.Global" %>

below is some of the code from the default.aspx file. My global.asax file
is inside of the virtual root folder with the rest of the .aspx files. I do
not understand why default.aspx is not referencing the global class where all
of my public variables and public constants are defined. I am PERPLEXED

"BookerW" wrote:
Ok, here is the situation. I have some vb code that was upgraded to the
earliest asp, I believe. When i run this snippet of code below on my local
xp box with iis and visual studio 2003 installed, it runs just fine... when i
run it on my w2k3 box with iis and asp.net 1.1 and 2.0 installed, but only
1.1 active now because of the aspnet_regiis -i command that was run in the
v1.1.4 folder, i get the error below the code:

Code

<%@ Import Namespace="GT.Global"%>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Default.aspx.vb"
Inherits="GT._Default"%>
<HTML>
<HEAD>
<title>MBA Database Home Page</title>
<link rel="SHORTCUT ICON" href="http://www.namee.com/icons/gt.ico">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="java/GetCookie.js"></script>
</HEAD>
<body bgcolor="#ffffff" text="#000000" leftmargin="2" topmargin="0"
marginwidth="2" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="images/spacer.gif" alt="spacer" width="1"
height="11" border="0"></td>
</tr>
<tr>
<td colspan="3"><img src="images/spacer.gif" alt="spacer" width="15"
height="1" border="0"><a href="<%=SCHOOL_WEB_ADDRESS%>" target=_blank><img
src="<%=SCHOOL_LOGO%>" alt="<%=SCHOOL_LOGO_ALT%>" border=0></a></td>
</tr>
<tr>
<td colspan="3"><img src="images/spacer.gif" alt="spacer" width="1"
height="9"></td>
</tr>
<tr>
<td bgcolor="<%=TOP_BANNER_COLOR%>" width="759" colspan=3 valign=middle>
<table cellpadding="5" cellspacing="0" border="0">
<tr>
<td><img src="images/spacer.gif" alt="spacer" width="15" height="1"
border="0"><img src="images/img_bsgt.gif" alt="The Business School at Name
Tech" width="132"
height="30"></td>
<td><h4 style="MARGIN-BOTTOM: 0px; COLOR: #ffffff">MBA<%If
gbDevelopment Then%>
Development<%End If%>
Database</h4>

Error when run on my iis server:

Compilation Error
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: BC30451: Name 'gbDevelopment' is not declared.

Source Error:

Line 25: <td><img src="images/spacer.gif" alt="spacer" width="15"
height="1" border="0"><img src="images/img_bsgt.gif" alt="The Business School
at Name Tech" width="132"
Line 26: height="30"></td>
Line 27: <td><h4 style="MARGIN-BOTTOM: 0px; COLOR: #ffffff">MBA<%If
gbDevelopment Then%>
Line 28: Development<%End If%>
Line 29: Database</h4>
Source File: C:\Old mba db sourcefiles\GT\default.aspx Line: 27

Interestingly enough, if i remove the line that references the gbdevelopment
variable the page loads just fine. So somehow, it does not seem to recognize
the file that has all of the Global variables described. Is there something
in the syntax of the import command that may have changed from the asp.net
environment to the 1.14 environment....

Jan 24 '06 #2
Final solution that seemed to work:

Ok, the quick rundown

Fixed the ldap references In the code

Replaced the username and passwords for accounts in our domain (Remember
this code came from a separate company)

Installed Oracle Client software on Server

Installed Oracle OLE DB connectivity software (ODAC) from Oracle’s website.
This seemed to resolve the error I got in regards to the Oracle Client not
being found

Finally, the account used to access the database did not have the right to
view specific tables. It could see the list of tables, but not specific
tables.

My DBA had to create synonyms for the account used to access the database to
mimic the account that had ownership of the tables in the database.

At this point, I can now connect, perform queries on the tables, etc ,etc..

Wallah, thanks for the journey,

Thanks for all of your help

"BookerW" wrote:
now upon further reading, i can provide some more context.......
Here is what my global.asax file contains

<%@ Application Codebehind="Global.asax.vb" Inherits="GT.Global" %>

below is some of the code from the default.aspx file. My global.asax file
is inside of the virtual root folder with the rest of the .aspx files. I do
not understand why default.aspx is not referencing the global class where all
of my public variables and public constants are defined. I am PERPLEXED

"BookerW" wrote:
Ok, here is the situation. I have some vb code that was upgraded to the
earliest asp, I believe. When i run this snippet of code below on my local
xp box with iis and visual studio 2003 installed, it runs just fine... when i
run it on my w2k3 box with iis and asp.net 1.1 and 2.0 installed, but only
1.1 active now because of the aspnet_regiis -i command that was run in the
v1.1.4 folder, i get the error below the code:

Code

<%@ Import Namespace="GT.Global"%>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Default.aspx.vb"
Inherits="GT._Default"%>
<HTML>
<HEAD>
<title>MBA Database Home Page</title>
<link rel="SHORTCUT ICON" href="http://www.namee.com/icons/gt.ico">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="java/GetCookie.js"></script>
</HEAD>
<body bgcolor="#ffffff" text="#000000" leftmargin="2" topmargin="0"
marginwidth="2" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="images/spacer.gif" alt="spacer" width="1"
height="11" border="0"></td>
</tr>
<tr>
<td colspan="3"><img src="images/spacer.gif" alt="spacer" width="15"
height="1" border="0"><a href="<%=SCHOOL_WEB_ADDRESS%>" target=_blank><img
src="<%=SCHOOL_LOGO%>" alt="<%=SCHOOL_LOGO_ALT%>" border=0></a></td>
</tr>
<tr>
<td colspan="3"><img src="images/spacer.gif" alt="spacer" width="1"
height="9"></td>
</tr>
<tr>
<td bgcolor="<%=TOP_BANNER_COLOR%>" width="759" colspan=3 valign=middle>
<table cellpadding="5" cellspacing="0" border="0">
<tr>
<td><img src="images/spacer.gif" alt="spacer" width="15" height="1"
border="0"><img src="images/img_bsgt.gif" alt="The Business School at Name
Tech" width="132"
height="30"></td>
<td><h4 style="MARGIN-BOTTOM: 0px; COLOR: #ffffff">MBA<%If
gbDevelopment Then%>
Development<%End If%>
Database</h4>

Error when run on my iis server:

Compilation Error
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: BC30451: Name 'gbDevelopment' is not declared.

Source Error:

Line 25: <td><img src="images/spacer.gif" alt="spacer" width="15"
height="1" border="0"><img src="images/img_bsgt.gif" alt="The Business School
at Name Tech" width="132"
Line 26: height="30"></td>
Line 27: <td><h4 style="MARGIN-BOTTOM: 0px; COLOR: #ffffff">MBA<%If
gbDevelopment Then%>
Line 28: Development<%End If%>
Line 29: Database</h4>
Source File: C:\Old mba db sourcefiles\GT\default.aspx Line: 27

Interestingly enough, if i remove the line that references the gbdevelopment
variable the page loads just fine. So somehow, it does not seem to recognize
the file that has all of the Global variables described. Is there something
in the syntax of the import command that may have changed from the asp.net
environment to the 1.14 environment....

Feb 9 '06 #3

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

Similar topics

2
by: Willoughby Bridge | last post by:
I am having trouble with a file upload script. Have tried a lot of different methods and the problem boils down to the $_FILES variable not being picked up. Below is a simple example of...
0
by: vikram.cvk | last post by:
Hello Experts, Im trying to design a CSS vertical drop down menu which should have the following functionality. Home About Us | -->Overview
0
by: David B | last post by:
Just had a call from a customer describing an odd problem. He has Office XP home edition & O97 I have an app running virtually prob free on over 20 machines (single users) A single form has a...
1
by: mikelostcause | last post by:
Is there anyway to hold the base.WndProc(ref m) until after the Logout() function finishes loading a webpage?? I'm working on shutting down an app that runs in the system tray, I have no...
0
by: dudis3 | last post by:
Hello All, I hope someone can help me: I have SQL Populated Drop-Down. Also I have a button wich activates a Response.Redirect: ---------------------- private void Button1_Click(object...
1
by: %NAME% | last post by:
I wish to put a number of .db2 scripts in my makefile. However, some of the db2 scripts tries to revoke privileges from users that might do not have that privilege already, thus returns an error...
3
gsgurdeep
by: gsgurdeep | last post by:
Hi My Problem is:- After installing " LogonScreen " From Stardock.com , i m not able to shut down my windows XP IBM System properly from start>shutdown>shutdown. After Uninstalling the...
6
by: mvmashraf | last post by:
Hai to aLL, I have a java script funtion,In that function i show a confirmation box, If the user click on "OK" certain action will be performed, Now turned to my problem if the...
4
by: abhinavrai | last post by:
my system is not shutting down.i wait for it to shut down for about 30 minutes but it didn't. at last i have to directly shut it down by power off button. this problem is always repeated. i have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.