Last post Dec 10, 2018 09:30 AM by geniusvishal
Dec 06, 2018 06:26 AM|maideen5|LINK
I have an Issue when I try to using Google Calendar in my web application
When I call the Calendar Page, system throw the error
" Could not find a part of the path 'C:\inetpub\wwwroot\App_Data\client_secret.json'. "
It is my code.
Private Shared gFolder As String = System.Web.HttpContext.Current.Server.MapPath("/App_Data")
Public Shared Function GetClientConfiguration() As GoogleClientSecrets
Using stream = New FileStream(gFolder & "\client_secret.json", FileMode.Open, FileAccess.Read)
Please advice me.
Dec 07, 2018 05:38 AM|Fei Han - MSFT|LINK
Could not find a part of the path 'C:\inetpub\wwwroot\App_Data\client_secret.json'
I did a test to access json file named "client_secret.json" from
App_Data folder, the code work as expected on my IIS server after I deployed it. The following is my folder structure of website on IIS:
To troubleshoot the issue, please check your website folder on your server and make sure the path does exist on server. Besides, please make sure the file "client_secret.json" is deployed to your server.
Dec 10, 2018 09:30 AM|geniusvishal|LINK
SEEMS like you have not included the client_secret.json in your project & published the solution.
Try including the file in the Development Project & then publish. You can refer the link below for more details: