The snapshot could not be generated because a required application lock could not be obtained. This lock is needed to ensure ...

The snapshot could not be generated because a required application lock could not be obtained. This lock is needed to ensure changes to the publication do not occur while the snapshot is being generated. If such a change is being made to the publication or published database, restart the Snapshot Agent when these changes have completed.