Programming, Software, Various Languages, VBScript

Example Batch File to Identify a User and Run a VBScript File

Here is the syntax for writing a simple batch file that checks the user name of the account that is running the script, and then executes a VBScript file if the user name is positively matched. As part of the test, I’ll show how to execute the VBScript from the batch file while suppressing an intentional error message thrown in the VBScript file.  Continue reading “Example Batch File to Identify a User and Run a VBScript File”

Advertisement
.Net, ASP.NET, Classic ASP, IIS8, Programming, VBScript, Windows 2012

Enabling Classic ASP on IIS8 (Windows Server 2012)

IIS 8.5 on Windows 2012 R2
IIS 8.5 on Windows 2012 R2

Getting Classic ASP to run on IIS8.5 comes with a few gotchas that can easily cause problems well beyond what you might expect. In the article below I’ll review the general steps and guidelines that I figured out through trial and error by going through the process myself. Continue reading “Enabling Classic ASP on IIS8 (Windows Server 2012)”

.Net, ASP.NET, C#, Classic ASP, HTML, IIS, IIS6, Programming, Software, VB.NET, Web Development, Web Server

Correcting 404 Errors in IIS 6 When Running an ASP.NET ASPX Page

Register ASP.NET with IIS
Register ASP.NET with IIS

I was setting up a new Web Server that had been pre-installed with Windows 2003IIS 6 and ASP.NET 2.0. The catch was that when I set up a new Web site on the server, I would get a 404 error page when the server was asked to serve up ASP.NET files (aka: files with the .aspx extension). Other files such as standard .html and .asp would render without problems.

I was a bit mystified until I realized that the setup of the pre-installed version of ASP.NET 2.0 on the server likely was done before IIS setup. Thus, although IIS showed ASP.NET 2.0 as an option, ASP.NET wasn’t properly registered with IIS.

At that point all one can do is to either: Continue reading “Correcting 404 Errors in IIS 6 When Running an ASP.NET ASPX Page”