Hi ,
I have the Web API, which is working as a SharePoint Provider hosted app.
This application move the file from one sharepoint site library to another sharepoint site library.
When running this application in my local with the client id and secret its working, but after deploy the site in to azure its not working.
This application log the error as follows.
2021-04-28 06:13:31.5396|ERROR|McWane.SP.MoveFile.Controllers.MoveFileController|=>4/28/2021 6:13:31 AM An Error occurred: at McWane.SP.MoveFile.WorkClasses.RelocateFile.ExecuteMoveFile(MoveFileModel moveFileInfo) in C:\TFS\McWane Development Projects\Enterprise\SharePoint\RestServices\McWane.SP.MoveFile\McWane.SP.MoveFile\WorkClasses\RelocateFile.cs:line 78
at McWane.SP.MoveFile.Controllers.MoveFileController.<>c_DisplayClass3_0.<Post>b_0() in C:\TFS\McWane Development Projects\Enterprise\SharePoint\RestServices\McWane.SP.MoveFile\McWane.SP.MoveFile\Controllers\MoveFileController.cs:line 38
Message: Token request failed.
Please help me on this to resolve the issue.
FYI : the azure site name is : https://spappsehsfms.azurewebsites.net