How To Fix

120 posts

How to fix problems with asp.net mvc 3 charts and razor pages

The Problem: You attempt to use the super-cool new charting features in asp.net mvc 3, and all you get is compilation errors The Cause: You are using the old school System.Web.UI.DataVisualization.Charting.Chart namespace The Solution: Delete using System.Web.UI.DataVisualization.Charting.Chart and instead insert using System.Web.Helpers; If you are using the chart code in an actual razor page (and […]

How to fix port forwarding problems with Clear Wireless

The Problem: You use Clear Wireless (ClearWire) for your internet service and you cannot set up Remote Desktop on Windows 7. The Cause: Whereas most internet provider provided devices just function as gateways, the Clear device functions as both a router and a gateway rolled into one unit.   It also uses a different subnet. […]

How to fix problems with SMTP on IIS 7/Windows Server 2008

The Problem: You move servers, and for unknown reasons all smtp services stop working. You search forever, but there are no error messages being given and nothing in the event log The Cause: For whatever reason, (in my case anyway) the server does not display the problem as an error, but as a warning in […]

How to fix problems with Clear Wireless internet service

photo © 2010 Emilian Robert Vicol | more info (via: Wylio) The Problem: You have have Clear Wireless internet service, as well as a wifi network, and you get periodic drops and random slowness.  You contact tech support, and they tell you to make sure that the wifi router and the Clear Wimax receiver are […]

An update on the mysterious PhotoShop color shift

The problem started happening to me again recently, the information I found at this link fixed it.   This post originally appeared on the Stronico blog – with the absorption of Stronico into Digital Tool Factory this post has been moved to the Digital Tool Factory blog

How to prevent images and photos from being stolen your site

The Problem: You need to prevent people from saving images and photos that are featured on your website The Cause: There is no real solution to this – if you can see it online, you can copy it, but you can make it more difficult. The Solution: Insert this bit of code in your BODY […]

How to fix the copy file problem in C#

photo © 1918 National Library of Scotland | more info (via: Wylio)The Problem: You need to copy a file from one location on the server to another and cannot remember how. The Cause: It is too short and simple, and easily forgotten The Solution: Just use the following code: public static void CopyAndRenameFile(string OldPath, string OldFileName, string NewPath, string NewFileName)     {         if (File.Exists(OldPath + OldFileName))         {             File.Copy(OldPath + OldFileName, NewPath + NewFileName, true);         }     } That’s […]

How to fix the “Unable to cast object of type” problem

photo © 2008 Justin Gurbisz | more info (via: Wylio) The Problem – you have several asp.net web controls (.ascx files) in your website project and for no obvious reason you suddenly get the error “Unable to cast object of type ‘YourWebControlName_ascx’ to type ‘YourWebControlName_ascx’.”  You recompile and the program works, then stops working.  You […]

How to fix the Login failed for user ‘IIS APPPOOLASP.NET v4.0’ error in IIS7 and Sql Server 2008

The Problem: You are trying to access a sql server database from your new ASP.net 4.0 site and get the error Login failed for user ‘IIS APPPOOLASP.NET v4.0’ error in IIS7 and Sql Server 2008 when logging in with the integrated security. The Cause: The new default user for asp.net 4.0 does not have default […]

How to fix lengthy database records in SQL Server

The Problem: You wish to truncate database records, but you can’t remember how.  At first, Google is no help. The Cause: You are using the term “Truncate” which is usually used to truncate a table, when all you really want to do is chop characters off of overly long database records. The Solution: Use the […]