How to solve the problem of error in application