Could not convert object to a control. Error details: Exception of type 'System.OutOfMemoryException' was thrown.