473,767 Members | 7,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.G lobal"%>
<%@ Page Language="vb" AutoEventWireup ="false" Codebehind="Def ault.aspx.vb"
Inherits="GT._D efault"%>
<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="JavaS cript" src="java/GetCookie.js"></script>
</HEAD>
<body bgcolor="#fffff f" text="#000000" leftmargin="2" topmargin="0"
marginwidth="2" marginheight="0 ">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td colspan="3"><im g src="images/spacer.gif" alt="spacer" width="1"
height="11" border="0"></td>
</tr>
<tr>
<td colspan="3"><im g 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"><im g 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<%I f
gbDevelopment Then%>
Development<%En d 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<%I f
gbDevelopment Then%>
Line 28: Development<%En d 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 1381
now upon further reading, i can provide some more context.......
Here is what my global.asax file contains

<%@ Application Codebehind="Glo bal.asax.vb" Inherits="GT.Gl obal" %>

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.G lobal"%>
<%@ Page Language="vb" AutoEventWireup ="false" Codebehind="Def ault.aspx.vb"
Inherits="GT._D efault"%>
<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="JavaS cript" src="java/GetCookie.js"></script>
</HEAD>
<body bgcolor="#fffff f" text="#000000" leftmargin="2" topmargin="0"
marginwidth="2" marginheight="0 ">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td colspan="3"><im g src="images/spacer.gif" alt="spacer" width="1"
height="11" border="0"></td>
</tr>
<tr>
<td colspan="3"><im g 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"><im g 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<%I f
gbDevelopment Then%>
Development<%En d 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<%I f
gbDevelopment Then%>
Line 28: Development<%En d 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="Glo bal.asax.vb" Inherits="GT.Gl obal" %>

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.G lobal"%>
<%@ Page Language="vb" AutoEventWireup ="false" Codebehind="Def ault.aspx.vb"
Inherits="GT._D efault"%>
<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="JavaS cript" src="java/GetCookie.js"></script>
</HEAD>
<body bgcolor="#fffff f" text="#000000" leftmargin="2" topmargin="0"
marginwidth="2" marginheight="0 ">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td colspan="3"><im g src="images/spacer.gif" alt="spacer" width="1"
height="11" border="0"></td>
</tr>
<tr>
<td colspan="3"><im g 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"><im g 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<%I f
gbDevelopment Then%>
Development<%En d 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<%I f
gbDevelopment Then%>
Line 28: Development<%En d 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
1806
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 Upload2.php having a blank value for $_FILES. I am using PHP through my web host yahoo. I'd appreciate any thoughts on how to resolve this this. <form enctype="multipart/form-data" method="post" action="upload2.php"> Send this file: <input...
0
16169
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
1118
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 continuous sub form. When the single form opens the focus goes to the first control. Page up / down is the way I tell customers to step through the records. The customer says that the form opens as expected with the focus as expected.
1
2125
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 problems shutting down, but I have problems saving data first. if the base.WndProc(ref m) is placed at the top, it closes, but the system does not continue to shutdown and it does not save the data via the Logout() funtion. If the base.WndProc(ref m)...
0
341
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 sender, System.EventArgs e) { string c = "";
1
2068
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 to the shell. I do not want the makefile to stop there, but simply ignore the errors. For example, I have the following in my makefile run:
3
1443
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 software the problem is going on. log off is working properly but Restart and ShutDown has the same problem.
6
987
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 user is not responding with in five minutes my "ok" button click event action need to invoke automatticcaly. Is it possible in java script , IF it possible any one can help me to solve the trap. By Ahsraf
4
2199
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 scanned the whole system but it still persists please tell what to do. O.S.-windows xp ANTIVIRUS- ms essentials.
0
9407
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10170
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10014
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9960
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9841
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8840
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7384
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6656
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3534
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.