This bit of code crashed with this rather strange error:
oRs = oCon.execute(sSQL)
do while not oRs.eof
When I first saw this error I went "what the?" But google rescued me. I had cut and paste some code from a dot net application. It should have been:
set oRs = oCon.execute(sSQL)
do while not oRs.eof
Dot net doesnt need the set instruction but classic asp does.