Page Defaults to JScript, VBScript Causes Errors

G

Glen Davis Jr.

I have a stage site with FP2002 server extensions and the default language
is set to VBScript. There are two subwebs in this structure:

Web
Subweb1
Subweb2

In a page on Subweb2, we are editing with FrontPage 2003 and trying to save
a form's output to an Access database. The database is created just fine
and we saved the page as an ASP. However, after saving the page as an ASP,
we get the following error:
Microsoft JScript compilation error '800a03f7'

Unterminated string constant

So the server is trying to run the page as JScript, not VBScript. If I
insert a <%@ Language=VBScript %> line a the beginning of the page, I get
this error:

Active Server Pages error 'ASP 0140'
Page Command Out Of Order

I believe this is because the page has an include file in _fpclass. But
inserting the @Language line in the include file instead results in the same
error.

Questions:

1. Why is the page being rendered with JScript when the site lists VBScript
as the default language?
2. How can I get this to work properly?

Thanks!
Glen
 
S

Stefan B Rusynko

<%@ Language=VBScript %> must be the 1st line in code view and should never be used on any SSI

As for the page switching to JScript, check your code for any meta tag that may be setting it as a client script

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I have a stage site with FP2002 server extensions and the default language
| is set to VBScript. There are two subwebs in this structure:
|
| Web
| Subweb1
| Subweb2
|
| In a page on Subweb2, we are editing with FrontPage 2003 and trying to save
| a form's output to an Access database. The database is created just fine
| and we saved the page as an ASP. However, after saving the page as an ASP,
| we get the following error:
| Microsoft JScript compilation error '800a03f7'
|
| Unterminated string constant
|
| So the server is trying to run the page as JScript, not VBScript. If I
| insert a <%@ Language=VBScript %> line a the beginning of the page, I get
| this error:
|
| Active Server Pages error 'ASP 0140'
| Page Command Out Of Order
|
| I believe this is because the page has an include file in _fpclass. But
| inserting the @Language line in the include file instead results in the same
| error.
|
| Questions:
|
| 1. Why is the page being rendered with JScript when the site lists VBScript
| as the default language?
| 2. How can I get this to work properly?
|
| Thanks!
| Glen
|
|
 
G

Glen Davis Jr.

When I place the @Language tag as the 1st line in code view, I get the
error:

Active Server Pages error 'ASP 0140'

Page Command Out Of Order

I don't see any JScript in the code.

Thanks for the help.
Glen
 
S

Stefan B Rusynko

Check that your server / host is not using host headers under IIS

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| When I place the @Language tag as the 1st line in code view, I get the
| error:
|
| Active Server Pages error 'ASP 0140'
|
| Page Command Out Of Order
|
| I don't see any JScript in the code.
|
| Thanks for the help.
| Glen
|
| | > <%@ Language=VBScript %> must be the 1st line in code view and should
| > never be used on any SSI
| >
| > As for the page switching to JScript, check your code for any meta tag
| > that may be setting it as a client script
|
|
 
G

Glen Davis Jr.

Yes, it IS using host headers under IIS. Is that not recommended? The
server hosts about a dozen web sites that way.

Thanks.
Glen
 
S

Stefan B Rusynko

The host header is causing your error 'ASP 0140'

- because it is prepended before <%@ Language=VBScript %>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Yes, it IS using host headers under IIS. Is that not recommended? The
| server hosts about a dozen web sites that way.
|
| Thanks.
| Glen
|
| | > Check that your server / host is not using host headers under IIS
|
|
 
G

Glen Davis Jr.

So how does one run ASP pages on a site using host headers? Is there a
workaround?

Thanks!
Glen
 
S

Stefan B Rusynko

You shouldn't need the <%@ Language=VBScript %> tag

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| So how does one run ASP pages on a site using host headers? Is there a
| workaround?
|
| Thanks!
| Glen
|
| | > The host header is causing your error 'ASP 0140'
| >
| > - because it is prepended before <%@ Language=VBScript %>
|
|
 
G

Glen Davis Jr.

Any idea why the server sees the page as JScript instead of VBScript? The
FPSE show VBScript as the default language. But the page is parsed as
JScript.

Thanks.
Glen
 
S

Stefan B Rusynko

Only if your host has IIS set to use JScript instead of VB script as the default

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Any idea why the server sees the page as JScript instead of VBScript? The
| FPSE show VBScript as the default language. But the page is parsed as
| JScript.
|
| Thanks.
| Glen
| | > You shouldn't need the <%@ Language=VBScript %> tag
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top