Safe Search: Cannot access a disposed object. Object name: 'Google.Apis.Http.ConfigurableHttpClient'

I have found several old posts on this forum with this similar error. But none of these posts have provided a solution for my problem. If you can help me with this, it is deeply appreciated.

As shown in the picture, the application will read the the local locations of the pictures from an excel file and send each picture to the Google vision API and write the assessment by the Google vision API back to the spreadsheet.

It worked well only for the first picture in the first try. Afterwards, the same error “Safe Search: Cannot access a disposed object. Object name: ‘Google.Apis.Http.ConfigurableHttpClient’” persisted, even after I updated all dependencies as one of the earlier posts suggested.

Please help, if you can. Thank you.

Hi @SJ_LIN
Please for second case put message box and check ImagePath is correct or not

The imagePath was correct. All the pictures are in the same folder. The first picture worked in the first try, but will not work after that. This means that the location is not a problem.