how to deal with a SSIS 2005 validation error in a script component
Since you're dealing with 2005, there were some known issues with scripts. 

For the reported version of 9.0.5057, you'd want to look at KB932556 

Earlier version (RTM) of SQL Server would have KB932557 applied