Is this with a barrel that has worked in the past? If not then it may need locking bolts polished, or the bolts and mating surfaces cleaned. If it has worked in the past a good cleaning may be all that is needed.
Also, if you changed grips the grip bolt may be to long. back it off a turn or two and try it. You may need to add a washer under the head of the bolt, or shorten it some to get things working again.