我得到了雅虎的联系方式,而不是在vb.net的代码项目中 [英] i got yahoo contacts thr c#.net but not in vb.net frm codeproject

查看:73
本文介绍了我得到了雅虎的联系方式,而不是在vb.net的代码项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用我的凭据执行了应用程序,我在c#.net中获得了输出但是一旦我在输入凭证后转换为vb.net并且我点击了同意按钮,控制不进入检索联系人块抛出异常:



i executed the application with my credentials and i got the output in c#.net but once i converted to vb.net after entering credentilals and wen i click on agree button,control not enntering into retrieve contacts block throwing exception :

The remote server returned an error: (401) Unauthorized.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
length: 6
stack trace: at System.Net.HttpWebRequest.GetResponse() at _Default.RetriveContacts() in D:\ImportYahooContacts\MyYahooContacts.aspx.vb:line 339
status: ProtocolError
Status Code: (401) Unauthorized
Status Description: Authorization Required
source: System
headers: 0: Keep-Alive
headers: 1: chunked
headers: 2: Accept-Encoding
headers: 3: private
headers: 4: application/xml
headers: 5: Fri, 14 Jun 2013 04:47:24 GMT
headers: 6: HTTP/1.1 UserFiberFramework/1.0
headers: 7: HTTP/1.1 r07.ycpi.inc.yahoo.net UserFiberFramework/1.0
headers: 8: OAuth oauth_problem="signature_invalid", realm="yahooapis.com" 





可以解决我的解决方案



can any 1 resolve my solution

推荐答案

在没有看到您的代码的情况下,我们无能为力,但有两件事情确实很突出:

1)我用我的凭证执行了申请ntials和我得到了输出c#

2)一旦我在输入凭证后转换为vb.net和远程服务器返回错误:(401)未经授权。



这意味着您通过VB代码提供的凭据与您通过VB提供的凭据不同。



因此,您要么错误地转换了代码,要么输入了凭证错误。



所以请检查你的码。我怀疑你可能把它翻译错了。



顺便说一句:将来,使用正确的大写:所有大写看起来都是大喊大叫,所有小写都被认为是幼稚的。并且请不要在这里使用txtspk - 你有一个完整的键盘,所以使用它或你会惹恼别人,这会减少你得到有用答案的机会。
Without seeing your code, we can't help that much, but two things do stand out:
1) "i executed the application with my credentials and i got the output in c#"
2) "once i converted to vb.net after entering credentilals" and "The remote server returned an error: (401) Unauthorized."

Which implies that the credentials you supplied via the VB code were not the same as the credentials you supplied via the VB.

So either you converted the code incorrectly, or you entered the credentials wrong.

So check your code. I suspect you may have translated it wrong.

BTW: In future, use correct capitalization: ALL CAPS is seem as shouting, and all lower case is seen as childish. And please don't use txtspk here - you have a full keyboard, so use it or you will annoy people and that reduces your chances of a helpful answer.


hi OriginalGriff,


1)watevr我从我的项目的yahoo api获得了消费者密钥和密钥我在c#.net代码中添加了我的localhost url,最后我得到了输出



2)即时通讯工作在vb.net上,而c#执行的代码我转换为vb.net,我又在我的帐户中创建了一个yahoo api的项目,我注册了我的来自vb项目的localhost



url:http:// localhost:56566 / ImportYahooContacts / MyYahooContacts.aspx
带有消费者密钥和密钥的
/>


但是一旦我运行应用程序我得到了上面的错误所以请你们人们可以转换为vb.net并检查一次,如果你得到输出incase,den 4wrd me我的身份代码laxmanbtech.it@gamil.com
hi OriginalGriff,

1)watevr i got consumer key and secret key from yahoo api of my project i added in c#.net code with my localhost url and finally i got the output

2) im working on vb.net,and that c# executed code i got converted to vb.net and again i created one more project in yahoo api in my account and i registerd my localhost fro vb project

url: http://localhost:56566/ImportYahooContacts/MyYahooContacts.aspx
with consumer key and secretkey

but once i run the aplication i got the above error so pls u people can convert to vb.net and check it once, if u get the output incase, den 4wrd me the code to my id laxmanbtech.it@gamil.com


这篇关于我得到了雅虎的联系方式,而不是在vb.net的代码项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆