Click to See Complete Forum and Search --> : site is showing code instead of the actual page


pemmie
10-22-2009, 11:53 AM
I have an .asp test site with a problem. When viewed with Firefox or Safari all you see is the underlying code. Viewed with IE 6 you see the page. I did a W3C markup validation test and it tells me I'm using the content type "text/plain." However, my code says "text/html." My "inc" files aren't appearing, either.

Any suggestions? Here's the entire page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Paxus</title>
<meta name="description" content="Paxus">
<meta name="keywords" content="Paxus">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!--link to external style sheet-->
<link type="text/css" rel="stylesheet" href="css/style.css" />
<!--link to external script page-->
<script language="javascript" type="text/javascript" src="js_inc/script.js"></script>
<script type="text/javascript" src="js_inc/swfobject.js"></script>
<link rel="shortcut icon" href="favicon.ico">
</head>
<body>
<div id="area_float_sub">
<div id="area_header">
<a href="http://test.asp"><img src="images/logo_paxus.jpg" style="width:339px;height:81px;border:0;float:left;" alt="" /></a>
<div id="area_header_right">
<div id="area_search_outer">
<div id="area_search_inner">
<!--search form-->
<form method="get" name="frmSiteSearch" action="site_search.asp" onsubmit="return CheckForm();">
<!--text to left of search input box-->
<div id="area_search_text">Search:&nbsp;&nbsp;</div>
<!--search form input box-->
<input type="text" name="search" maxlength="50" size="36" value="<% =Request.QueryString("search") %>" class="search_input_box" />
<input type="hidden" name="mode" value="allwords">
<!--search form go button-->
<input type="submit" name="Submit" value="GO" class="search_go_btn" />
</form>
</div>
</div>
</div>
</div>

<div id="area_nav"><!--#include file="nav_inc/body_nav.inc" --></div>

<div id="subpage_header"><img src="images/secondary_graphic.jpg" style="width:772px;height:56px;border:0;float:left;" alt="" /></div>

<div id="area_left_column">

<ul class="subnav">
<li><a href="products.asp" class="subnavlink">Products</a></li>
<li><a href="dynamic_switch.asp" class="subnavlink2">Dynamic Gateway</a></li>
<li><span class="subnav_selected">Dynamic ATM</span></li>
<li><a href="dynamic_pos.asp" class="subnavlink2">Dynamic POS</a></li>
<li><a href="dynamic_switch.asp" class="subnavlink2">Dynamic Switch</a></li>
<li><a href="dynamic_teller.asp" class="subnavlink2">Dynamic Teller</a></li>
<li><a href="exporter.asp" class="subnavlink2">eXPorter Reporting</a></li>
<li><a href="claims_adjustments.asp" class="subnavlink2">Claims &amp; Adjustments System</a></li>
<li><a href="legacy_support.asp" class="subnavlink2">Legacy Systems Software</a></li>
<li><a href="squall.asp" class="subnavlink2">Software Quality Assurance</a></li>
<li>
</ul>
</div>

<div id="area_right_column">
<h1>Dynamic ATM </h1>
<p>Dynamic ATM&reg; is an enterprise class integrated transaction processing application that is used for driving ATMs (Automated Teller Machines) and self-service banking kiosks. Built on the Dynamic Gateway&reg; platform, this application provides customers with a robust, highly scalable and high performance solution to meet current and future transaction processing requirements. Dynamic ATMs&reg; powerful and flexible routing and authorization engine is built on Paxus' Intelligent Transaction Processing&reg; framework. External connectivity to remote endpoints, hosts and switches are managed through the powerful Dynamic Virtual Interface Configurator&reg;.</p>

<img src="images/logo_atm.gif" style="width:175px;height:71px;border:0;float:right;" alt="Dynamic ATM Logo" />

<p>Key product features: </p>
<ul class="sublist">
<li><span class="list_text">Support for all device types (NCR, Diebold, Triton and others).</span></li>
<li><span class="list_text">Multiple hot site support. This feature ensures customers can have multiple HOT sites for Disaster Recovery or Load Balancing across systems.</span></li>
<li><span class="list_text">Hot sites can run on similar of different hardware platforms and operating systems.</span></li>
<li><span class="list_text">Triple-DES Support.</span></li>
<li><span class="list_text">Automated Key Distribution Support.</span></li>
<li><span class="list_text">Multi-Currency dispense at ATMs.</span></li>
<li><span class="list_text">Multi-Currency support at system level.</span></li>
<li><span class="list_text">Full Specification support for all remote end points and published switches.</span></li>
<li><span class="list_text">Support for legacy and modern message formats and protocols.</span></li>
<li><span class="list_text">Non-currency Dispense Support.</span></li>
<li><span class="list_text">Self Service Kiosk Support.</span></li>
<li><span class="list_text">Can be easily integrated with any other Dynamic product.</span></li>
</ul>
<p style="margin-bottom: 0;">Please contact our <a title="Click here to e-mail us." href="mailto:sales@paxus.com" class="normallink">Sales Department</a> for details about our products and services.</p>
</td>
</div>

<!--#include file="inc/footer.asp" -->

<div style="clear:both;height:0;"><!--DO NOT REMOVE PAGE WILL BREAK IN FIREFOX/SAFARI--></div>
</div>
</body>
</html>

TheBearMay
10-22-2009, 12:25 PM
Since this is ASP, I'll assume you're using the .asp extension. You'll need to go into IIS (also an assumption) and change the MIME type for .asp extension to text/html. See:
Microsoft Server Documentation (http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/cd72c0dc-c5b8-42e4-96c2-b3c656f99ead.mspx?mfr=true)

pemmie
10-22-2009, 12:34 PM
Thank you. I'll check into it. Would this be responsible for the "inc" files not working, too?

TheBearMay
10-22-2009, 03:02 PM
That would lead me to believe that the file is not being processed by the server, but simply served up, but the fix is in the IIS configuration so while you're there just make sure that the .asp extension has the the server processed flag set.

opifex
10-24-2009, 12:49 AM
You might be surprised how many folks try to run ASP pages on an out of the box LAMP server. It happens more often than one might think.
Just a thought.