I had the issue several times, then I say that method doesn't exist in such version of the framework then chatgpt acknowledge the error, says when de method was removed and give a replacement method. Weird.