Archive / Server Setup

RSS feed for this section

ASP.NET 4.0 Custom Error Pages Very Slow to Load

When I upgraded to ASP.NET 4.0, runtime errors suddenly became very slow. There was a consistent two-minute delay before my custom error page would appear. The rest of the website was lightning fast, so it was not related to compilation. I finally decided to tackle this problem, so I started copying blocks of code into a new, blank custom error page. The delay was not present until I […]

SSL Security Tool for Windows Servers

IIS Crypto is a free tool that gives administrators the ability to enable or disable protocols, ciphers, hashes and key exchange algorithms on Windows Server 2003 and 2008. It also lets you re-order SSL cipher suites offered by IIS. https://www.nartac.com/Products/IISCrypto/Default.aspx

Remote Desktop Services Multiple Sessions

As far as I can tell, it is trivial to enable multiple simultaneous remote desktop sessions for Windows Server 2008. Open gpedit.msc Navigate to Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Connections Double-click “Restrict Remote Desktop Services users to a single Remote Desktop Services […]

How to get detailed ASP errors on Windows 2008 II7

To get the ASP error message and line number in code, do the following: 1. Go to Error pages 2. Under actions click Add 3. Enter status code 500.100 4. Select ‘Execute URL on this site’ 5. Enter your error page, i.e. 500.asp Now the Server.GetLastError object will contain the full error information.

How to display ASP errors on Windows 2008 II7

By default ASP errors are not displayed on a Windows 2008, II7 server. The default error message displayed simply says: Server Error 500 – Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. This is for very good reason. Detailed error message can display sensitive […]

SQL Server 2005 SSIS Packages

Today I used SSIS packages for the first time. SSIS packages are used by SQL Server Integration Services. There are a couple things I have found about SSIS packages that I want to write about. I am using an SSIS package to copy data from an Access database to SQL Server. This SSIS package can […]

Server.ScriptTimeout Not Working

I had a file upload page that gave an HttpException with message “Request timed out”. Natrually, I set the Server.ScriptTimeout to 360. But I still got the error rmessage. To solve this I added the following to the web.config file: <httpRuntimeexecutionTimeout=“360“maxRequestLength=“41000“ /> The maxRequestLength did not solve the problem by itself. The executionTimeout was needed as well.