How To Fix

120 posts

How to fix binding problems with Microsoft.Web.Administration.ServerManager

The Problem: You are trying to create a new website programatically via the Microsoft.Web.Administration.ServerManager and having no luck.  In fact, you are getting invalid binding errors at every turn.

How to fix the Microsoft.Web.Administration.dll problem

The Problem: While coding away on the Stronico signup process I came across a problem with creating a reference to the Microsoft.Web.Administration dll, namely it was not present as a reference.  No problem, I added the dll manually via Visual Studio (it is in the %WinDir%System32InetSrv directory), yet once that was done I could not […]

How to fix the color shift in PhotoShop CS 4 Save for Web

The Problem: You have a lovely graphic, you save it for the web in the standard way, and the colors are way, way off.  Usually there is extra purple.  You scour the web and alter setting after setting in PhotoShop, all to no avail. The Cause: It’s not Photoshop problem.  For whatever reason the default […]

How to set up the CheckBoxList control in Asp.net

I recently came up with the need to have a validated CheckBoxList in and Asp.net page.  Over the years I’ve come up with a standard way of setting up validated CheckBoxLists, so I thought I would share the method and start the brand new “Code Samples” section.. The aspx code is as follows <strong>Section Name</strong> […]

How to fix “The entry ‘ScriptModule’ has already been added.” error

The Problem: The web application works just fine on the local machine, but when you upload it to the web server you get the error “The entry ‘ScriptModule’ has already been added.” The Cause: It is a conflict between asp.net versions. The Solution: Simply comment out the <add name=”ScriptModule” type=”System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″/> line […]

How to create a fully validated asp.net calendar control

The Problem: You have to have a fully validated date box. The dates must be valid dates and there must be data entered in the field. The Cause: Not a problem really, I wind up rewriting it slightly differently each time. I thought I would put a definitive version here. The Solution: Use this code<asp:TextBox […]

How to fix problem with intellisense in Visual Studio 2008

The Problem: For whatever reason Intelliense in Visual Studio shows up for standard asp.net web controls appears on some pages and not on others. The Cause: Visual Studio is a tricky little program, I have no idea why this happened. I went though the web.config files, encoding, rebooted and still got no resolution. The Solution: […]

How to fix the Adobe Acrobat “Save As” error

The Problem: You attempt to save a dynamically generated pdf built from a website and get the error “The document could not be saved, a number is out of range” The Cause: Incompatibility of settings between the version of Acrobat that created the pdf and the version of Acrobat that is being used to view […]

How to programmatically create an Excel Spreadsheet in ASP.net/ C#

The Problem: You need to create a dynamic excel spreadsheet in C#/ASP.net. There are several ways to accomplish this, but this is one I use when I don’t need to specify the column names order to any great detail. I’ve included it in the How To Fix series simply because it took me more than […]

How to fix problems with SSL certs in Plesk

The Problem: You attempt to install (or renew) an SSL certificate in Plesk (web hosting management software) but when you follow the instructions (meaning add the certificate in Plesk, and then going to the “Setup” screen for the domain, you do not have the option of selecting the renewed certificate. The Cause: This is the […]