Link to home
Start Free TrialLog in
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

ASKER CERTIFIED SOLUTION
Avatar of Mark Franz
Mark Franz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of krisdigitx
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?
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
ok cool, i have enabled ASP and ASP.NET from plesk control panel for the domain.. will check out the system....
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
on the old server, JSCRIPT pages run fine with *.asp extension? does anyone have any ideas what could be missing in the new server?
i installed asp.NET 1.1 and enabled it in plesk and it worked like charm!!!
Cool, glad to help.
fixed the issue, byt installing asp .net 1.1