This video will explain that how to resolve error in log shipping. There are errors available below.
Could not apply log backup file 'C:\Copy\Sample_20230414141500.trn' to secondary database 'Sample'.
Error: Exclusive access could not be obtained because the database is in use.