Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
354 views
in Technique[技术] by (71.8m points)

google-contacts-api - Google Calendar API令牌访问(Google Calendar API Token access)

I have created a google calendar app using Visual studio.

(我已经使用Visual Studio创建了一个Google日历应用。)

It all works fine in visual studio with saved credentials .

(使用保存的凭据,在Visual Studio中一切正常。)

When I run the program ( Web) the google token is saved to C:\program files(86)\Token1.json

(当我运行程序(Web)时,谷歌令牌保存到C:\ program files(86)\ Token1.json)

However If I try to run outside Visual studio as normal web delivery it says access denied to token1.json.

(但是,如果我尝试在Visual Studio外部以正常的Web交付方式运行,则会显示拒绝访问token1.json。)

I assume its trying to find the token in a different location.

(我假设它试图在其他位置找到令牌。)

Any ideas how I find where its looking for it so as I can give folder permissions?

(有什么想法可以找到要查找的位置以便授予文件夹权限吗?)

  ask by Ian Mckenna translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

找到了一个有效的答案,必须在app_data中添加我自己的文件夹以获取我的令牌为什么我得到System.UnauthorizedAccessException拒绝访问路径“ Google.Apis.Auth”


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...