久久久久久久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 對(duì)路徑

        Why do I get System.UnauthorizedAccessException Access to the path #39;Google.Apis.Auth#39; is denied(為什么我得到 System.UnauthorizedAccessException 對(duì)路徑“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 對(duì)路徑“Google.Apis.Auth"的訪問被拒絕的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

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

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

                  I am using VS2010,IIS 7 for above functionality

                  推薦答案

                  擴(kuò)展 Chandrika 已經(jīng)說過的內(nèi)容,ASP.NET 用戶需要對(duì) Google API 客戶端 OAuth2 庫(kù)的永久存儲(chǔ)文件夾的讀寫權(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"的文件夾(通常對(duì)應(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).

                  或者,可以提供另一個(gè)文件夾作為 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;
                  

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

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

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

                  相關(guān)文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時(shí)忽略空格)
                  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(解析格式錯(cuò)誤的 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原创视频在线观看 | 色婷婷综合在线观看 | 黄色在线免费观看 | 99re国产 | 亚洲一区二区三区视频 | 四虎影视1304t | 亚洲图片视频一区 | 国产一级片久久久 | 国产精品毛片无码 | 日本h片在线观看 | 9999久久 | 精品国产第一区二区三区 | 国产美女免费视频 | 一区二区av | 亚洲一区二区不卡在线观看 | 免费黄色录像片 | 毛片av免费在线观看 | 久久久人成影片一区二区三区 | 日韩精品免费看 | 黄色一级免费看 | 国产精品一区二区免费看 | 欧美日韩精品区 | 亚洲精品视频在线观看免费 | 欧美日产国产成人免费图片 | 九七午夜剧场福利写真 | 国产三级电影网站 | 男女在线免费观看 | 在线播放中文字幕 | 做a的各种视频 | 国产黄色精品 | 亚洲视频一区在线观看 | av男人的天堂在线 | a毛片 | 在线免费观看黄色 | 久久亚洲一区二区 | 无码日韩精品一区二区免费 | 免费欧美 | 蜜臀网 | 免费精品 | www.中文字幕.com | 国产一区二区高清在线 |