William Duffy

Glasgow Based C# ASP.NET Web Developer

Running SMTP services automatically on startup

Recently I setup a new server for a client that required smtp services running. Annoyingly though, whenever the server was rebooted the smtp service had to be manually started. Server restarts aren’t common to be fair, but when they do occur the configuration requirements should be zero. I needed the SMTP service to automatically start [...]



The ‘Microsoft.Jet.OLEDB.4.0′ provider is not registered on the local machine.

Recently I had to upgrade the server running one of my largest web applications and ran into an error that threw me a little. The web application allowed clients to upload excel spreadsheets that are read by an ADO DataAdapter and written to Sql Server. The old server was running Windows Server 2003, the new [...]



Using Application_Error in ASP.NET MVC’s global.asax to Handle Errors

ASP.NET MVC’s controllers have great error handling capabilities and can be easily extended to cater for application specific requirements. However, many developer don’t want to manage errors at a controller level and would rather manage 99 percent of errors from a single location. This allows for a single point of error logging, notification and handling. [...]



Resetting the WordPress Admin Password

I support a lot of WordPress systems and find a common occurence to be adminstrators forgetting their password. In order to reset the admin password I run the following simple SQL query against the WordPress database using MySql query browser. Replace your_database and your_password as required. UPDATE your_database.wp_users SET user_pass = MD5(’your_password’) WHERE user_login = [...]

Clearing ASP.NET Cache

ASP.NET’s caching system is invaluable for speeding up your website and reducing your server/database load. However, sometimes you will find a need to manually clear the cache and allow it to rebuild with fresh data. As simple as this seems it can prove trickier than you would expect. The following code snippet allows you to [...]

«Older Posts

Get in Touch

Contact