Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: problem with 'Tweetinvi.TwitterCredentials

$
0
0
Hello,
I have developed a windows service using tweetinvi , it was working correctly in my local machine , but once i deployed the service to our server , it had a problem we couldn't solve relating to twwetinvi , an exception occured at the first occurence of SetCredentials , the message is :

The type initializer for 'Tweetinvi.TwitterCredentials' threw an exception.
Topshelf.HostFactory Error: 0 : An exception occurred creating the host, Topshel
f.ServiceBuilderException: An exception occurred creating the service: TwitterSe
rvice ---> System.TypeInitializationException: The type initializer for 'Tweetin
vi.Stream' threw an exception. ---> System.TypeInitializationException: The type
initializer for 'Tweetinvi.TweetinviContainer' threw an exception. ---> System.
TypeLoadException: Method 'AddWebException' in type 'Tweetinvi.Logic.Exceptions.
ExceptionHandler' from assembly 'Tweetinvi.Logic, Version=0.9.7.1, Culture=neutr
al, PublicKeyToken=7247f14397bf67b9' does not have an implementation.
at Tweetinvi.Logic.TweetinviLogicModule.InitializeExceptionHandler()
at Tweetinvi.Logic.TweetinviLogicModule.Initialize()
at Tweetinvi.Injectinvi.AutofacContainer.InitializeModules()
at Tweetinvi.Injectinvi.AutofacContainer.Initialize()
at Tweetinvi.Injectinvi.AutofacContainer..ctor()
at Tweetinvi.TweetinviContainer..cctor()
--- End of inner exception stack trace ---
at Tweetinvi.TweetinviContainer.ResolveT
at Tweetinvi.Stream..cctor()
--- End of inner exception stack trace ---
at Tweetinvi.Stream.CreateFilteredStream()
at TwitterService.TwitterPayment..ctor() in C:\Projets\Smoney\server\ApplisEx
ternes\TwitterServiceV2\ConsoleApplication3\TwitterPayment.cs:line 37
at TwitterService.Worker..ctor() in C:\Projets\Smoney\server\ApplisExternes\T
witterServiceV2\ConsoleApplication3\Worker\Worker.cs:line 17
at ConsoleApplication3.TwitterService..ctor() in C:\Projets\Smoney\server\App
lisExternes\TwitterServiceV2\ConsoleApplication3\TwitterService.cs:line 67
at ConsoleApplication3.Program.<Main>b__2(HostSettings name) in C:\Projets\Sm
oney\server\ApplisExternes\TwitterServiceV2\ConsoleApplication3\Program.cs:line
17
at Topshelf.Builders.DelegateServiceBuilder1.Build(HostSettings settings)
--- End of inner exception stack trace ---
at Topshelf.Builders.DelegateServiceBuilder
1.Build(HostSettings settings)
at Topshelf.Builders.RunBuilder.Build(ServiceBuilder serviceBuilder)
at Topshelf.HostConfigurators.HostConfiguratorImpl.CreateHost()
at Topshelf.HostFactory.New(Action`1 configureCallback)
Topshelf.HostFactory Error: 0 : The service terminated abnormally, Topshelf.Serv
iceBuilderException: An exception occurred creating the service: TwitterService
---> System.TypeInitializationException: The type initializer for 'Tweetinvi.Str
eam' threw an exception. ---> System.TypeInitializationException: The type initi
alizer for 'Tweetinvi.TweetinviContainer' threw an exception. ---> System.TypeLo
adException: Method 'AddWebException' in type 'Tweetinvi.Logic.Exceptions.Except
ionHandler' from assembly 'Tweetinvi.Logic, Version=0.9.7.1, Culture=neutral, Pu
blicKeyToken=7247f14397bf67b9' does not have an implementation.
at Tweetinvi.Logic.TweetinviLogicModule.InitializeExceptionHandler()
at Tweetinvi.Logic.TweetinviLogicModule.Initialize()
at Tweetinvi.Injectinvi.AutofacContainer.InitializeModules()
at Tweetinvi.Injectinvi.AutofacContainer.Initialize()
at Tweetinvi.Injectinvi.AutofacContainer..ctor()
at Tweetinvi.TweetinviContainer..cctor()

What surprised me is this part :

__Method 'AddWebException' in type 'Tweetinvi.Logic.Exceptions.
ExceptionHandler' from assembly 'Tweetinvi.Logic, Version=0.9.7.1, Culture=neutr
al, PublicKeyToken=7247f14397bf67b9' does not have an implementation.__

Can you please tell me what could be the problem?

Thanks in advance

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>