TechPerspect / sharepoint-twitter

Automatically exported from code.google.com/p/sharepoint-twitter
0 stars 1 forks source link

Issue in SharePoint-Twitter webpart code #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I am using the same code as your's (i.e. SharePoint-Twitter webpart) code which 
is /ShowTweets/ShowTweets.cs in visual studio 2010 Sharepoint web part and 
deploying on Sharepoint web application.I am giving the API keys in edit web 
part zone. But in your code you are using the line:
TwitterStatusCollection userTimeline = TwitterTimeline.UserTimeline(tokens, 
options);

But when I am using this line of code in my code I am getting the error "Cannot 
implicitly covert 
'Twitterizer.twitterResponse<Twitterizzer.TwitterStatusCollection>' to 
'Twitterizzer.TwitterStatusCollection'" although I have included both the 
twitterizer and newtonsoft.json.dll assemblies in my code. 

I have also attached a file having screenshots.Please go through that also.

Original issue reported on code.google.com by jain.vip...@gmail.com on 23 Sep 2011 at 6:33

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Vipul,
I have noticed that you have reported 3 bugs on twitter show Tweets 
functionality and all of them are related bugs. 
it would better if we have single issue opened at a time for similar issue 
hence merging all three issues raised by you

Original comment by ashuto...@brickred.com on 23 Sep 2011 at 9:56

GoogleCodeExporter commented 9 years ago
Hi,
Its correct that all three bugs are related but their scenario is different.
1) Error :"Unable to connect to remote server" error I'm getting on server 
which has internet facing IP.So I am getting the error there.At the same 
time,if I use the same Tweet webpart on Sharepoint web application on my 
server(intranet),the Tweet webpart works fine.
2) Error : "Request for the permission of type 'System.Net.WebPermission, 
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 
failed." This error I am getting when I am using the code and deploying the 
web-part in Sharepoint 2010 Web Application.
3)Error :The third error is again related to code.The code which you provided , 
I copied the same but getting error in "TwitterStatusCollection userTimeline = 
TwitterTimeline.UserTimeline(tokens, options)" , So I'm using 
TwitterStatusCollection userTimeline = TwitterTimeline.UserTimeline(tokens, 
options).ResponseObject.  

Original comment by jain.vip...@gmail.com on 23 Sep 2011 at 10:23