Categories
Programming Windows

Using Log Parser Studio to Find Guilty IP Addresses

If you are getting hammered by a robot, you’ll probably want to find out the IP Address of the robot to see if it is a friendly one, or just someone playing with Kali Linux in a far off land. The following Log Parser Studio query will get you a list of your top offenders: […]

Categories
Programming Windows

Set Log Parser Studio Log Paths

Log parser studio has a handy UI for adding log file paths, but if you have a shared hosting server with loads of IIS sites, each logging to a different directory – you’ll want to automate the list of log file paths. Go and find the file named “LPSFolders.tmp”, usually found in “C:\Users\USER-NAME\AppData\Roaming\ExLPT\Log Parser Studio\”. […]

Categories
Automation

Cannot Create a File When That File Already Exists

This is one of the few hitches you may come across when deploying to IIS from Octopus Deploy: Cannot create a file when that file already exists. (Exception from HRESULT: 0x800700B7) This error simply means something is already running on the port number that you are planning on using (and that probably means the default […]

Categories
Programming

Clean Out Old IIS Log Files

IIS log files are a blessing and a curse. When you are investigating something on your server, they are great. At all other times they are just eating your disk space. What is needed is a way to bin-off the old log files to keep the disk clear. Here is a quick VBScript file that […]

Categories
Programming

Missing Changes in IIS

Have you ever made a change in IIS manager, performed an IIS reset and then discovered that your change has gone missing? If so, this article will be of use to you. I was adding a wild card mapping in IIS for an isapi dll, and performing a quick IIS reset to rush things along, […]

Categories
Programming

Run Multiple Websites On The Same IP Address And Port Even Over SSL

TL;DR – the TLS SNI extention allows you to pick the right certificate if you have multiple secure host names on the same IP address and port, this is supported by all major browsers and by IIS8, and HAProxy (amongst others). Some of the below information is now a little dated – you shouldn’t really […]

Categories
Programming

Find the Process Id for an Application Pool

If you have lots of web applications running under lots of different application pools, you might want to find out the particular W3WorkerProcess of one of these application pools. This is usually when you want to start a remote-debugging session against a particular application pool. The great news is, you can find out the information […]

Categories
Programming

Event Code 3005: An Unhandled Exception has Occurred

If you have come across this rather vague message (Event Code 3005: An Unhandled Exception has Occurred), you will have spotted that there are very few resources that give any reasonable answers on the root cause of the issue – that’s probably why you are here, so I will do my best to help. For […]

Categories
Programming

X509 Certificates on Windows Server 2003

This issue originally came up some time between 2004 and 2006 while I was working on a web portal for fund and share trading – but recently popped up its head again, which made me decide to write down the answer properly in case other people stumble across this issue with certificates and private keys. […]

Categories
Programming

The Specified Directory Service Attribute or Value Does Not Exist

“The specified directory service attribute or value does not exist” If you’ve come across this problem while trying to use Active Directory, you may well be dancing the double-hop. This issue can occur when you switch on “Integrated Windows Authentication” in IIS and then try to get some information from Active Directory for the logged-in […]