Avatar of krisdigitx
krisdigitx
 asked on

plesk asp jscript error

hi,

i am using plesk 9.2.1 , and ASP , ASP.NET are both installed.  I get this error when I run a test JSCRIPT page


2010-02-16 10:50:34 W3SVC15720 WINSRV01 193.109.192.194 GET /new/home/test.asp |1|ASP_0221|Invalid_@_Command_directive 80 - 193.109.199.2 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.9.1.7)+Gecko/20091221+Firefox/3.5.7+(.NET+CLR+3.5.30729) ASPSESSIONIDAQQQQCRA=IILNDJDBIFMAGKKKOPGCJIDB - www.domain.com 500 0 0 1646 495 140


the domain is enabled with ASP,

can you please suggest what the problem is?

-Krisdigitx



<%@ Page Language="JScript" %>

<html>
  <head>
	<script language="JScript" runat="server" >
	function Page_Load(o : Object, e : EventArgs )
	{
		lbl.Text = "Click the Button below to see a welcome
message...";
	}
	function Show(o : Object, e : EventArgs)
	{
		lblMessage.Text = "Welcome to ASP+";
	}
	</script>

  </head>
  <body style="font-family:Verdana; font-size:10pt;
font-color:blue;">
   <center>
  <H3>Demonstration of an ASP+ page written in
JScript.NET</H3>
    <form method="post" action="JHelloWorld.aspx" runat="server">
      <p><asp:Label id=lbl Runat="server"/>
      <p><asp:Button id=cmdClick Runat="server" Text="Hello
World"
onClick="Show" />
      <p><asp:Label id=lblMessage Runat="server"/>
    </form>
  </center>
  </body>

</html>

Open in new window

LinuxASPASP.NET

Avatar of undefined
Last Comment
krisdigitx

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Mark Franz

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
krisdigitx

ASKER
cool, that works, however i had to enable ASP.NET for the domain in plesk,

but  *.asp pages don't work now? do i need to rename them to aspx file also?
Mark Franz

You are trying to mix apples and oranges, that is an IIS configuration issue that I have never had to tackle.  It is possible to run both .asp and .aspx pages on a hosting server but like I said, I have never ran across the problem
krisdigitx

ASKER
ok cool, i have enabled ASP and ASP.NET from plesk control panel for the domain.. will check out the system....
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
SOLUTION
Mark Franz

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
krisdigitx

ASKER
on the old server, JSCRIPT pages run fine with *.asp extension? does anyone have any ideas what could be missing in the new server?
krisdigitx

ASKER
i installed asp.NET 1.1 and enabled it in plesk and it worked like charm!!!
Mark Franz

Cool, glad to help.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
krisdigitx

ASKER
fixed the issue, byt installing asp .net 1.1