aw1975
aw1975

Reputation: 1708

Compiling classic ASP files

I've inherited a classic ASP application written in VBScript. I don't have experience with either. I am using Visual Studio 2013 as my development environment.

Please can you let me know whether it is possible to pre-compile ASP files? I just want to be able to view my compilation errors and ensure that the application compiles before running it.

When running the application I'm encountering run-time errors (HTTP status code 500) and I don't know whether this is because of compilation errors or some other reason.

Thanks,

Upvotes: 4

Views: 3672

Answers (2)

WorkSmarter
WorkSmarter

Reputation: 3808

As @Tim mentioned, Classic ASP code cannot be compiled. To view detailed code errors follow these steps.

  1. Open IIS Manager
  2. Click on "ASP"

enter image description here

  1. Click "Debugging Properties" and Set the "Send Errors to Browser" option to "True".

enter image description here

Upvotes: 5

Tim
Tim

Reputation: 4099

Classic ASP was VBScript. VB.NET is a .NET technology - they're totally different. Are the extensions asp or aspx?

If it really is VB.NET, you can precompile it.

AFAIK classic ASP can't be precompiled. This was one of the advantages to .NET when it was first released.

Debugging classic ASP used to be a nightmare, too. You may be better off trying to justify converting it than trying to maintain it.

Upvotes: 2

Related Questions