PRB: Error 0x80004005 When You View ASP Page in Browser (307190)
The information in this article applies to:
- Microsoft Active Server Pages
This article was previously published under Q307190 SYMPTOMS
When you view an Active Server Pages (ASP) page in the browser, you may receive the following error message:
Error Type:
Active Server Pages, ASP 0141 (0x80004005)
The @ command can only be used once within the Active Server Page.
/pagename.asp, line xx
CAUSE
This error occurs if the server reads two lines of code that contain the @ command in server script. Often, this happens if the main page contains a line such as:
<% @Language=VBScript %>
and also contains a server-side include file that points to another page that contains the same line.
RESOLUTION
To resolve this problem, make sure that you only use the @ command once in the page, and make sure that your include files do not contain a line with the @ command. If you need to change language in the middle of the page, use a script block. For example:
<SCRIPT Language=VBScript Runat=Server>
...
</SCRIPT>
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 9/24/2001 |
---|
Keywords: | kbASPObj kbDSupport kbprb kbScript KB307190 |
---|
|