BUG: "Thispage Is Undefined" Error When Viewing an ASP PageID: Q190938
|
You see one or both of the following errors when viewing your Active Server Pages (ASP) page in a browser:
An error has occurred in the script on this page.
Line: 1
Char: 1
Error: Syntax error
Code: 0
-or-
A Runtime Error has occurred.
Do you wish to Debug?
Line: 1
Error: 'thisPage' is undefined
The scripting object model depends on the Pm.asp file. A line of text is
added to the top of your page when you enable the scripting object model to
include this file when loaded in a browser. If the file is not loaded for
any reason, you will see this error.
This can happen if the browser has a timing issue loading include files, or
if the ASP file is in a subfolder of a root Web.
If your project is a root Web and you have scripting object model dependent ASP pages in a sub folder, copy the _ScriptLibrary folder and its contents to your subfolder.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
The path to the include file for the client support files is calculated by the scripting object model. This is calculated incorrectly in the case of the root Web because a subfolder is always assumed to be in a subproject.
Additional query words:
Keywords : kbScript kbVisID600 kbVisID600bug kbWebServer kbGrpASP
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 24, 1999