-1

任何人都可以在下面的线程上帮助我吗?

我已经编写了导入 Gmail 联系人的代码,它在我的本地服务器上运行良好,但是当我在 Azure 服务器上发布它时,它会抛出以下异常:

Google.GData.Client.InvalidCredentialsException:Google.GData.Client.GDataGAuthRequest.QueryAuthToken(GDataCredentials gc,String serviceName,String applicationName,Boolean fUseKeepAlive,IWebProxy proxyServer,Uri clientLoginHandler)的凭据无效( GDataCredentials gc) 在 Google.GData.Client.GDataGAuthRequest.EnsureCredentials() 在 Google.GData.Client.GDataRequest.EnsureWebRequest() 在 Google.GData.Client.GDataGAuthRequest.EnsureWebRequest() 在 Google.GData.Client.GDataRequest.Execute() ) 在 Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) 在 Google.GData.Client.Service.Query(Uri queryUri, DateTime ifModifiedSince, String etag, Int64& contentLength) 在 Google.GData.Client.Service.Query(FeedQuery feedQuery) 在 Google.GData.Client.Feed1.get_AtomFeed() at Google.GData.Client.Feed1.d__0.MoveNext() 在 RCFO.SocialPlugins.Google.GoogleExtract.FetchGoogleContacts(String appName, String userName, String password, String& GoogleError) in

4

1 回答 1

0

有什么来源吗?我不太了解 Google gmail 联系人 API。如果它是在本地工作的相同代码,但在 Azure 中失败,我将首先查看任何 IIS/安全上下文更改,然后查看网络端口/防火墙更改。

于 2012-08-24T17:26:54.570 回答