PDA

View Full Version : #include giving errors in .asp page



Anonymous
08-18-2005, 08:06 PM
I added in the content portion of my .asp page, and received the following error when trying to access said page:

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: CS1010: Newline in constant

Source Error:

Line 1: <%
Line 2: ' ----------------------------------------------------------------------------
Line 3: ' Zoom Search Engine 4.2 (25/7/2005)
Line 4: ' Standard version for ASP

Help!

Ray
08-19-2005, 01:33 AM
This appears to be an ASP.NET error message. Note that an .aspx file is not the same as an .asp file.

Your server seems to be trying to compile the ASP script as an ASPX file, which is an incorrect server configuration. It is most likely expecting a C# file while the "search.asp" file is VBScript.

If you are sure that the server is not handling this as an ASPX file, then make sure that it is using the correct scripting language (VBScript as opposed to JScript or C#). See this FAQ:
http://www.wrensoft.com/zoom/support/faq_problems.html#jscript

If you are trying to include Zoom from an ASPX (ASP.NET) web page then refer to this page for information:
http://www.wrensoft.com/zoom/support/aspdotnet.html