G
Guest
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....
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....