Hosting Classic ASP on Server 2008 R2

Ran into a problem today trying to light up a Classic ASP site that was a copy of an existing site on the same server. However HTTP 500 errors were all we could get. Once we enabled debug logging in ASP, we saw that there was a problem with the ADODB connection being able to open the MSAccess database within the site folders. Gotta remember to enable 32-bit apps in the application pool advanced settings. Note: Microsoft Access databases have been popular for many years with developers who use Active Server Pages (ASP) for small-scale applications, but Microsoft Access databases are n...

Nov 25, 2019 READ MORE
How to speed up site rebuild after compiling a DLL

Came across this little gem this morning.   Made a significant difference on my PC. Here’s the best one. Add this to your web.config for MUCH faster compilation. <compilation optimizeCompilations="true"> Quick summary: we are introducing a new optimizeCompilations switch in ASP.NET that can greatly improve the compilation speed in some scenarios. There are some catches, so read on for more details. This switch is currently available as a QFE for 3.5SP1, and will be part of VS 2010.The ASP.NET compilation system takes a very conservat...

Nov 25, 2019 READ MORE
Building an Audit Log with nHibernate Listeners in AbleCommerce

I have a client who can’t seem to figure out who’s making edits to certain products. Somebody changed the price, somebody marked it hidden. That sort of thing. Too many people in the back-end and no audit trail for who changed what. So I decided to dig into nHibernate listeners. After a brutal all-nighter reading StackOverflow posts and copying snippets from a few blog posts, I actually got it working. I added some new handlers for the Post-Commit-Create, Post-Commit-Update and Post-Commit-Delete listener events and pointed them to my AuditEventListener class. These are easily wired ...

Nov 25, 2019 READ MORE
Leveraging the Gift Wrap feature for optional upcharges to a product

Just goes to show, you still can teach an old dog new tricks. A client needed a way to add an Engraving choice to the product page.   Normally this isn’t an issue, just use the product variant feature. But in this case, the engraving choice must be optional.   And it has to charge an amount.  And it needs to accept some text for the actual engraved words. So after a little digging, I settled on a little-used feature in AbleCommerce known as Gift Wrap.    Gift Wrap is a way to associate a secondary charge to any product.   The basket ...

Nov 25, 2019 READ MORE