Click here to Skip to main content
15,884,962 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,

Hi guys,

I am getting the below error, when I tried to upload the word document into google docs since 10 days...

Error Message:
Execution of authentication request returned unexpected result: 404

Following is my code:

DocumentsService myService = new DocumentsService("xxxxx");
myService.setUserCredentials("xxxxxxx@gmail.com", "xxxxx");
DocumentEntry newEntry = myService.UploadDocument(newFileName,fileuploaddoc.FileName.Trim());


I am getting the error at myService.UploadDocument("",""); Method

Please help me in this regard as early as possible....Share the code if someone resolved this issue....
Posted
Updated 10-Jun-15 8:19am
Comments
Afzaal Ahmad Zeeshan 10-Jun-15 14:32pm    
Some document or resource is not found!
Richard Deeming 10-Jun-15 14:39pm    
All of the links for the Google Docs API seem to be redirecting to the Google Drive API. I suspect they might have "retired" the Docs API.

There's a page which describes how to migrate to the new Drive API:
https://developers.google.com/drive/web/migration[^]
swarajcse 14-Jul-15 10:58am    
Hi Richard,

You are right they might have retired the API, I request you to share some sample code to upload document instead of existing methods and also please let me know the library references..
Richard Deeming 14-Jul-15 11:14am    
I already gave you a link to the Google documentation on migrating to the new API. Read that link, and it will tell you how to migrate from the old API to the new API.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900