Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I resolve an error 'Invalid @ Command directive'

Status
Not open for further replies.

Ankor

Programmer
Mar 21, 2002
144
US
Here is an error message:

Active Server Pages error 'ASP 0221'
Invalid @ Command directive
/PlanWeb/WebForm1.aspx, line 1
The specified 'Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="PlanWeb.WebForm1"' option is unknown or invalid.

I tried to change the executable path in application configuration from asp.dll to aspnet_isapi.dll, but it only caused a different error:

HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

Thanks,
Ankor

 
I don't have any problem with .asp pages - only with .aspx. Here is the line that causes it: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="PlanWeb.WebForm1" %> Am I still terminating the process incorrectly?
 
Well, if you are getting that error it is because the ASP engine is handling it, not the .NET enginge (hence why I said it was an ASP error).

Make sure you have the framework correctly installed (try running "aspnet_regiis -i" from the framework folder).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top