Microsoft KB Archive/280389

= PRB: ASP 0234 Error &quot;Server Side Include Directives May Not Be Present in Script Blocks&quot; After You Upgrade to Windows 2000 =

Article ID: 280389

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft Active Server Pages 4.0, when used with:
 * Microsoft Internet Information Services 5.0

-



This article was previously published under Q280389



SYMPTOMS
After you upgrade to Microsoft Windows 2000 and Internet Information Server (IIS) 5.0, you may receive the following error message with Active Server Pages (ASP) that specify include directives within a script block:

Active Server Pages, ASP 0234 (0x80004005)

Server side include directives may not be present in script blocks. Please use the SRC= attribute of the  tag

This error does not occur on IIS 4.0.



CAUSE
In IIS 5.0, server-side include directives cannot be placed within a script block.



RESOLUTION
To resolve this error, move the code that specifies the server-side include outside (above) the script block.



Steps to Reproduce Behavior
  Create an include file named TestINC.inc, and then paste the following code: <% Response.Write &quot;From TestINC.inc&quot; %>                     Create a new ASP page named TestASP.asp, and then paste the following code: 

Response.Write &quot;From TestASP.asp&quot;   In your browser, view TestASP.asp. You receive the ASP 0234 error.

Additional query words: ASP 0234 (0x80004005) 0x80004005

Keywords: kbwebserver kbprb KB280389

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.