久久久久久久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屋-程序員軟件開發(fā)技術(shù)分享
        <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"的訪問被拒絕的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我已經(jīng)實現(xiàn)了用于文件管理的谷歌驅(qū)動器功能,它在本地系統(tǒng)中工作正常,但是每當(dāng)我將它托管在 Godaddy 服務(wù)器上時,它都會拋出以下錯誤

                  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 來實現(xiàn)上述功能

                  I am using VS2010,IIS 7 for above functionality

                  推薦答案

                  擴展 Chandrika 已經(jīng)說過的內(nèi)容,ASP.NET 用戶需要對 Google API 客戶端 OAuth2 庫的永久存儲文件夾的讀寫權(quán)限.

                  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 .

                  其默認(rèn)值為Environment.SpecialFolder.ApplicationData中名為Google.Apis.Auth"的文件夾(通常對應(yīng)于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

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

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

                  相關(guān)文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標(biāo)簽的 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'>

                            主站蜘蛛池模板: 亚洲国产成人在线观看 | 欧美成人精品一区二区男人看 | 久久久久久免费观看 | 91亚洲欧美 | 国产一区二区精品在线观看 | 日本高清aⅴ毛片免费 | 台湾佬伊人 | 韩国毛片视频 | 91精品国产自产精品男人的天堂 | 日本中文字幕视频 | 琪琪午夜伦伦电影福利片 | 亚洲美女视频 | 少妇精品亚洲一区二区成人 | 日韩在线播放网址 | av免费网站在线观看 | 福利网址 | 一级毛片免费 | 精品小视频 | 国产精品久久久久久久久久 | 成人免费高清 | 亚洲成人黄色 | 久久综合九九 | 91黄色片免费看 | 热99精品视频 | 成人h视频在线 | 久久91| 精品国产网 | 国产成人午夜电影网 | 国产91丝袜在线18 | 久久综合伊人 | 国产精品视频一区二区三区不卡 | 日韩精品一区二区三区老鸭窝 | 日韩av成人 | 亚洲毛片网站 | 精品日韩| 亚洲成av片人久久久 | 99tv| 成人午夜免费在线视频 | 日本三级日产三级国产三级 | www.色.com| 91精品国产色综合久久不卡蜜臀 |