1
The above code is working in localhost when i am execute from visual studio. But the same code is not working if i host the application in IIS. Below are my observations,
For the first time google get a consent from the user to give access to gmail. This will open a default browser in the system and loads the google's consent page. Once the user accepts the consent, the above code will create a json file using "FileDataStore" with access and refresh tokens. This whole process works perfectly in localhost.
But same code is not working if hosted in IIS. However if I put the JSON file that has access and refresh token (generated using localhost) then even application hosted in IIS is also working.
With the above observations, my guess is the process where "google's api is trying to open default browser to load the consent screen" is not working when hosted the application in IIS. Do you have any fix for this problem ? Please let me know if i am missing anything. Thanks.
0
What error you are getting?