久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='Kq5f8'></tfoot>

<small id='Kq5f8'></small><noframes id='Kq5f8'>

    • <bdo id='Kq5f8'></bdo><ul id='Kq5f8'></ul>
    1. <i id='Kq5f8'><tr id='Kq5f8'><dt id='Kq5f8'><q id='Kq5f8'><span id='Kq5f8'><b id='Kq5f8'><form id='Kq5f8'><ins id='Kq5f8'></ins><ul id='Kq5f8'></ul><sub id='Kq5f8'></sub></form><legend id='Kq5f8'></legend><bdo id='Kq5f8'><pre id='Kq5f8'><center id='Kq5f8'></center></pre></bdo></b><th id='Kq5f8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Kq5f8'><tfoot id='Kq5f8'></tfoot><dl id='Kq5f8'><fieldset id='Kq5f8'></fieldset></dl></div>

    2. <legend id='Kq5f8'><style id='Kq5f8'><dir id='Kq5f8'><q id='Kq5f8'></q></dir></style></legend>

        為什么我得到 System.UnauthorizedAccessException 對路徑

        Why do I get System.UnauthorizedAccessException Access to the path #39;Google.Apis.Auth#39; is denied(為什么我得到 System.UnauthorizedAccessException 對路徑“Google.Apis.Auth的訪問被拒絕) - IT屋-程序員軟件開發技術分享
        <i id='HxGLw'><tr id='HxGLw'><dt id='HxGLw'><q id='HxGLw'><span id='HxGLw'><b id='HxGLw'><form id='HxGLw'><ins id='HxGLw'></ins><ul id='HxGLw'></ul><sub id='HxGLw'></sub></form><legend id='HxGLw'></legend><bdo id='HxGLw'><pre id='HxGLw'><center id='HxGLw'></center></pre></bdo></b><th id='HxGLw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='HxGLw'><tfoot id='HxGLw'></tfoot><dl id='HxGLw'><fieldset id='HxGLw'></fieldset></dl></div>
      1. <tfoot id='HxGLw'></tfoot>

              <tbody id='HxGLw'></tbody>

              <small id='HxGLw'></small><noframes id='HxGLw'>

              <legend id='HxGLw'><style id='HxGLw'><dir id='HxGLw'><q id='HxGLw'></q></dir></style></legend>

                  <bdo id='HxGLw'></bdo><ul id='HxGLw'></ul>
                  本文介紹了為什么我得到 System.UnauthorizedAccessException 對路徑“Google.Apis.Auth"的訪問被拒絕的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我已經實現了用于文件管理的谷歌驅動器功能,它在本地系統中工作正常,但是每當我將它托管在 Godaddy 服務器上時,它都會拋出以下錯誤

                  I have implemented google drive functionality for file management its working fine in local system but whenever i hosted it on Godaddy server it throw following error

                  System.UnauthorizedAccessException拒絕訪問路徑Google.Apis.Auth".

                  System.UnauthorizedAccessException Access to the path 'Google.Apis.Auth' is denied.

                  以下代碼我正在使用:

                  UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
                     new ClientSecrets
                     {
                         ClientId = System.Configuration.ConfigurationManager.AppSettings["GDriveClientId"],//Get ClientID from web.config.
                         ClientSecret = System.Configuration.ConfigurationManager.AppSettings["GDriveClientSecret"]//Get ClientSecret from web.config.
                     },
                     new[] { DriveService.Scope.Drive },
                     System.Configuration.ConfigurationManager.AppSettings["GDriveCreatedByUser"],//Get UserName from web.config.
                     CancellationToken.None).Result;
                  
                  return credential;
                  

                  我正在使用 VS2010,IIS 7 來實現上述功能

                  I am using VS2010,IIS 7 for above functionality

                  推薦答案

                  擴展 Chandrika 已經說過的內容,ASP.NET 用戶需要對 Google API 客戶端 OAuth2 庫的永久存儲文件夾的讀寫權限.

                  Expanding what Chandrika has already said, the ASP.NET user needs read and write permissions to the Google API Client OAuth2 Library's permanent storage folder .

                  其默認值為Environment.SpecialFolder.ApplicationData中名為Google.Apis.Auth"的文件夾(通常對應于C:Usersyour-user-nameAppData漫游).

                  Its default value is a folder named "Google.Apis.Auth" in Environment.SpecialFolder.ApplicationData (which usually corresponds to C:Usersyour-user-nameAppDataRoaming).

                  或者,可以提供另一個文件夾作為 GoogleWebAuthorizationBroker.AuthorizeAsync() 方法:

                  Alternatively, another folder can be provided as the last parameter of the GoogleWebAuthorizationBroker.AuthorizeAsync() method:

                  var folder = System.Web.HttpContext.Current.Server.MapPath("/App_Data/MyGoogleStorage");
                  
                  UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
                     new ClientSecrets
                     {
                         ClientId = "PutYourClientIdHere",
                         ClientSecret = "PutYourClientSecretHere"
                     },
                     new[] { DriveService.Scope.Drive },
                     "user",
                     CancellationToken.None,
                     new FileDataStore(folder)).Result;
                  
                  return credential;
                  

                  請參閱:https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth#credentials 和 https://developers.google.com/accounts/docs/OAuth2

                  這篇關于為什么我得到 System.UnauthorizedAccessException 對路徑“Google.Apis.Auth"的訪問被拒絕的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標簽的 XML)
                  Parsing tables, cells with Html agility in C#(在 C# 中使用 Html 敏捷性解析表格、單元格)
                  delete element from xml using LINQ(使用 LINQ 從 xml 中刪除元素)
                  Parse malformed XML(解析格式錯誤的 XML)
                      <tbody id='HRdrv'></tbody>
                      <bdo id='HRdrv'></bdo><ul id='HRdrv'></ul>
                        <i id='HRdrv'><tr id='HRdrv'><dt id='HRdrv'><q id='HRdrv'><span id='HRdrv'><b id='HRdrv'><form id='HRdrv'><ins id='HRdrv'></ins><ul id='HRdrv'></ul><sub id='HRdrv'></sub></form><legend id='HRdrv'></legend><bdo id='HRdrv'><pre id='HRdrv'><center id='HRdrv'></center></pre></bdo></b><th id='HRdrv'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='HRdrv'><tfoot id='HRdrv'></tfoot><dl id='HRdrv'><fieldset id='HRdrv'></fieldset></dl></div>

                      • <tfoot id='HRdrv'></tfoot>
                        <legend id='HRdrv'><style id='HRdrv'><dir id='HRdrv'><q id='HRdrv'></q></dir></style></legend>
                        1. <small id='HRdrv'></small><noframes id='HRdrv'>

                            主站蜘蛛池模板: www.色网| 亚洲蜜桃av | 成人在线视频免费观看 | 国产激情在线观看 | 国产乱人伦 | 黄色亚洲 | 毛片视频免费观看 | 国产成人影视 | 国产成人精品av在线观 | 亚洲精品乱码久久久久久动漫 | 亚洲第一av | 国产香蕉视频在线观看 | 国产精品成人免费一区久久羞羞 | 国产精品一区二区久久 | 小镇姑娘国语版在线观看免费 | 欧美日韩亚洲另类 | va视频 | 国内精品视频在线观看 | 男男av | 亚洲三区在线 | 亚洲久热 | 国产一级视频在线观看 | 精品国产乱码久久久久久影片 | 欧美一区二区三区在线播放 | 成年人免费看视频 | 亚洲一级在线 | 日韩av手机在线 | 成 人 黄 色 片 在线播放 | 日本大尺度吃奶做爰久久久绯色 | 国产黄色在线观看 | 六月丁香综合 | 欧美一级片在线 | 国产视频一区在线观看 | 九色在线播放 | 国产精品免费av | 天天干天天草 | 久久久久久网 | 这里只有精品视频在线观看 | 亚洲成人久久久 | 官场少妇尤物雪白高耸 | 国产中文字幕在线播放 |