How do you troubleshoot a classic ASP website when it crashes with the following error message? Turn Off Page Buffering By default, page buffering in ASP is set to On so one way to do it is just to turn off the page buffering. At the top of your ASP page, add the following line after the VBScript declaration (Line 2 - highlighted): In general though, you do want to pose a limit … [Read more...]
How to Cache Specific Static Files and Directories on IIS
As part of IIS performance tuning to improve a web page load speed, in general you want to enable browser caching by double-clicking on HTTP Response Headers in IIS Manager, click on Set Common Headers and check the Expire Web content:, then set the After: with an x number of days. Often times though, you may want to be more granular in IIS static content caching for different type of … [Read more...]
How to Fix Invalid SendUsing Configuration using CDO
When you use CDOsys to send email from a classic ASP, you might see an error message below and if you look at the line error, it's always on the message.Send: Several posts would suggest that you put the SMTP server in the code. But when you already have an SMTP server setup on IIS 6.0, here's a couple things you might want to check as well: Check if the Application Pool is at least … [Read more...]
How to Fix Permission Denied Error 800a0046
If you still use CDONTS object in your ASP page and run into this kind of error: Microsoft VBScript runtime error '800a0046' Permission denied /path/filename.asp, line 4 Then when you open the file, you see something like this. Just by reading the error message, you can probably guess that this error occurs usually because the anonymous user account is not granted a Modify … [Read more...]
How to Replace CDONTS with CDOSYS on Classic ASP Pages
Replacing CDONTS with CDOSYS, while can be time consuming for a large classic ASP application, is actually very easy to do. Here's a simple example of what need to be changed at a minimum: Set oCDOMail = Server.CreateObject("CDONTS.NewMail") to:Set oCDOMail = Server.CreateObject("CDO.Message") Remove BodyFormat property, oCDOMail.BodyFormat = 0 since it's unnecessary. Replace MailFormat … [Read more...]