Hi,
I am getting an error while using filtered stream in Tweetinvi.API.dll, version of 0.9.0.7
The error is below:
"STREAM ERROR OCCURED: System.TypeLoadException: Could not load type '<GetClosedParameterTypesSequence>d__10' from assembly 'Tweetinvi.API, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null' because the method 'get_SwallowWebExceptions' has no implementation (no RVA).
at Streaminvi.Helpers.StreamResultGenerator.StartStream(Func2 processObject, Func1 generateWebRequest)
at Streaminvi.Helpers.StreamResultGenerator.StartStream(Action1 processObject, Func1 generateWebRequest)
at Streaminvi.FilteredStream.StartStreamMatchingAllConditions()"
And my code is like:
var stream = Tweetinvi.Stream.CreateFilteredStream();
foreach (string word in wordList)
{
stream.AddTrack(word);
}
stream.MatchingTweetReceived += (sender, args) =>
{
var tweet = args.Tweet;
var matchingTrack = args.MatchingTracks;
Log.DebugFormat("reading new version of the stream with {0}", matchingTrack.ElementAt(0));
};
stream.StartStreamMatchingAllConditions();
Am i missing something?
Comments: ** Comment from web user: linvi **
I am getting an error while using filtered stream in Tweetinvi.API.dll, version of 0.9.0.7
The error is below:
"STREAM ERROR OCCURED: System.TypeLoadException: Could not load type '<GetClosedParameterTypesSequence>d__10' from assembly 'Tweetinvi.API, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null' because the method 'get_SwallowWebExceptions' has no implementation (no RVA).
at Streaminvi.Helpers.StreamResultGenerator.StartStream(Func2 processObject, Func1 generateWebRequest)
at Streaminvi.Helpers.StreamResultGenerator.StartStream(Action1 processObject, Func1 generateWebRequest)
at Streaminvi.FilteredStream.StartStreamMatchingAllConditions()"
And my code is like:
var stream = Tweetinvi.Stream.CreateFilteredStream();
foreach (string word in wordList)
{
stream.AddTrack(word);
}
stream.MatchingTweetReceived += (sender, args) =>
{
var tweet = args.Tweet;
var matchingTrack = args.MatchingTracks;
Log.DebugFormat("reading new version of the stream with {0}", matchingTrack.ElementAt(0));
};
stream.StartStreamMatchingAllConditions();
Am i missing something?
Comments: ** Comment from web user: linvi **
Hi there,
I have never seen this problem in my life (and I have used Typeloading in many projects!).
I am not quite sure if this is related with Tweetinvi.
Would you please try on your machine the code you have but with the development version of Tweetinvi? It is using PCL and might be able to solve your problem.
I will have further investigation this weekend but I cannot work on this before tomorrow night as I am very busy at the current time.
I will contact you when I have checked this issue, we might need to have a live-meeting in order to fix this issue.
Regards,
Linvi