2012-08-22 43 views
-1

任何人都可以幫助我在下面的線程?導入與MVC3的Gmail帳戶Azure

我已經寫代碼導入Gmail聯繫人和它的正常工作在我的本地服務器 但是當我發佈Azure的服務器上拋出下面的異常:

Google.GData.Client.InvalidCredentialsException:無效憑證 在 Google.GData.Client.Utilities.QueryClientLoginToken(GDataCredentials GC,字符串服務名,字符串的applicationName,布爾fUseKeepAlive, IWebProxy訪問代理服務器,烏里clientLoginHandler)在 Google.GData.Client.GDataGAuthRequest.QueryAuthToken(GDataCredentials GC)處 Google.GData.Client.GDataRequest處 Google.GData.Client.GDataGAuthRequest.EnsureWebRequest() Google.GData.Client.GDataRequest.EnsureWebRequest()Google.GData.Client.GDataGAuthRequest.EnsureCredentials() .Execute()在 Google.GData.Client.GDataGAuthRequest.Execute(的Int32 retryCounter)在 Google.GData.Client.Service.Query(URI queryUri,日期時間 ifModifiedSince,字符串ETAG,Int64的& CONTENTLENGTH)在 Google.GData .Client.Service.Query(FeedQuery feedQuery)at Google.GData.Client.Feed 1.get_AtomFeed() at Google.GData.Client.Feed 1.d__0.MoveNext()at RCFO.SocialPlugins.Google.GoogleExtract.FetchGoogleContacts(String appName,String user名稱,字符串密碼,字符串& GoogleError)

+2

我對azure絕對一無所知......但我會走下面一行「Google.GData.Client.InvalidCredentialsException」...你有沒有仔細檢查你是否使用正確的憑據登錄? –

+0

是的,我沒有檢查證書是否正確。 – user1453078

+0

你能提供一些代碼嗎?這是很難給出和體面的建議,只是一堆堆走過去。 :P –

回答

0

任何源代碼?我對Google Gmail聯繫人API瞭解不多。如果它是本地工作的相同代碼,並且在Azure中失敗,則首先查看任何IIS /安全上下文更改,然後再查看網絡端口/防火牆更改。