Re: .asp pages not showing output from asp code

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jeff Cochran (jeff.nospam_at_zina.com)
Date: 06/24/04


Date: Thu, 24 Jun 2004 02:05:51 GMT

On Wed, 23 Jun 2004 16:40:01 -0700, Dan
<Dan@discussions.microsoft.com> wrote:

>Hi Ken
>
>I am requesting pages through localhost. HTML pages are displayed successfully in Explorer through localhost ie - http://localhost/htmlPage.html.
>
>When requesting an asp page through localhost (http://localhost/aspPage.asp) the following error message page appears:
>
>"Server Application Error
>The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance."
>
>The source code for the error message page relates to that message, as you would expect.
>
>I have the 'show friendly error messages option' turned off.
>
>The event log for the above request says:
>
>"23:23:04 127.0.0.1 GET /index.asp 500"

That's not the event log, that's the web site log. Go to Event Viewer
and look.

Jeff

>> How are you requesting the pages?
>>
>> If you are just double-clicking on them in Explorer, then you are just
>> opening the source code of the file. The files are Active *Server* Pages, so
>> they need to be parsed by the server, ie requested as
>> http://localhost/aspPageName.asp
>>
>> If you are requesting the pages via http://localhost, can you do a
>> "view-source" on the page? Is the ASP code visible in the source of the
>> webpage?
>>
>> Cheers
>> Ken
>>
>> "Dan" <Dan@discussions.microsoft.com> wrote in message
>> news:06BBDEC5-4F05-433B-98AF-2617F955FF5D@microsoft.com...
>> : Hi
>> :
>> : I'm running IIS 5.1 on Windows XP Pro. When viewing .asp pages only the
>> output from the HTML code appears in the browser. Nothing appears in the
>> browser from within the <% ... %> tags, even <%= Date %>. Pages with
>> vbscript code before the HTML won't load in IE.
>> :
>> : Could it be that I have to configure IIS somehow to be able to read asp
>> code?
>> :
>> : Thanks
>>
>>
>>



Relevant Pages