There is a very insignificant difference in meaning between the two that is easily misused even by proficient native speakers. Nouns are followed by ‘to’-infinitive clauses that indicate the aim, purpose, or necessity of something, or that give extra information. Whereas nouns followed by verbs ending in 'ing' indicates what the subject is currently doing or participating in.