Hello Linvi,
I have just tested the solution with the new dlls you gave me and the problem is not resolved with the same error message shown earlier with a minor difference
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.TwitterCredentials' threw an exception. ---> System.TypeInitializationExcepti
on: 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.8.0, C
ulture=neutral, 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.TwitterCredentials..cctor()
--- End of inner exception stack trace ---
at Tweetinvi.TwitterCredentials.SetCredentials(String userAccessToken, String
userAccessSecret, String consumerKey, String consumerSecret)
at TwitterService.SmoneyProxy.SetCredentials() in C:\serveur\server\ApplisExt
ernes\TwitterServiceV2\ConsoleApplication3\Proxy\SmoneyProxy.cs:line 67
at TwitterService.TwitterPayment..ctor() in C:\serveur\server\ApplisExternes\
TwitterServiceV2\ConsoleApplication3\TwitterPayment.cs:line 32
at TwitterService.Worker..ctor() in C:\serveur\server\ApplisExternes\TwitterS
erviceV2\ConsoleApplication3\Worker\Worker.cs:line 17
at ConsoleApplication3.TwitterService..ctor() in C:\serveur\server\ApplisExte
rnes\TwitterServiceV2\ConsoleApplication3\TwitterService.cs:line 66
at ConsoleApplication3.Program.<Main>b__2(HostSettings name) in C:\serveur\se
rver\ApplisExternes\TwitterServiceV2\ConsoleApplication3\Program.cs:line 17
at Topshelf.Builders.DelegateServiceBuilder
at Topshelf.Builders.RunBuilder.Build(ServiceBuilder serviceBuilder)
at Topshelf.HostConfigurators.HostConfiguratorImpl.CreateHost()
at Topshelf.HostFactory.New(Action
--- End of inner exception stack trace ---
at Topshelf.Builders.DelegateServiceBuilder
at Topshelf.HostFactory.Run(Action`1 configureCallback)
Thanks for your help
I have just tested the solution with the new dlls you gave me and the problem is not resolved with the same error message shown earlier with a minor difference
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.TwitterCredentials' threw an exception. ---> System.TypeInitializationExcepti
on: 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.8.0, C
ulture=neutral, 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.TwitterCredentials..cctor()
--- End of inner exception stack trace ---
at Tweetinvi.TwitterCredentials.SetCredentials(String userAccessToken, String
userAccessSecret, String consumerKey, String consumerSecret)
at TwitterService.SmoneyProxy.SetCredentials() in C:\serveur\server\ApplisExt
ernes\TwitterServiceV2\ConsoleApplication3\Proxy\SmoneyProxy.cs:line 67
at TwitterService.TwitterPayment..ctor() in C:\serveur\server\ApplisExternes\
TwitterServiceV2\ConsoleApplication3\TwitterPayment.cs:line 32
at TwitterService.Worker..ctor() in C:\serveur\server\ApplisExternes\TwitterS
erviceV2\ConsoleApplication3\Worker\Worker.cs:line 17
at ConsoleApplication3.TwitterService..ctor() in C:\serveur\server\ApplisExte
rnes\TwitterServiceV2\ConsoleApplication3\TwitterService.cs:line 66
at ConsoleApplication3.Program.<Main>b__2(HostSettings name) in C:\serveur\se
rver\ApplisExternes\TwitterServiceV2\ConsoleApplication3\Program.cs:line 17
at Topshelf.Builders.DelegateServiceBuilder
1.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.Twi
tterCredentials' threw an exception. ---> System.TypeInitializationException: Th
e type initializer for 'Tweetinvi.TweetinviContainer' threw an exception. ---> S
ystem.TypeLoadException: Method 'AddWebException' in type 'Tweetinvi.Logic.Excep
tions.ExceptionHandler' from assembly 'Tweetinvi.Logic, Version=0.9.8.0, Culture
=neutral, 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.Resolve[T]()
at Tweetinvi.TwitterCredentials..cctor()
--- End of inner exception stack trace ---
at Tweetinvi.TwitterCredentials.SetCredentials(String userAccessToken, String
userAccessSecret, String consumerKey, String consumerSecret)
at TwitterService.SmoneyProxy.SetCredentials() in C:\serveur\server\ApplisExt
ernes\TwitterServiceV2\ConsoleApplication3\Proxy\SmoneyProxy.cs:line 67
at TwitterService.TwitterPayment..ctor() in C:\serveur\server\ApplisExternes\
TwitterServiceV2\ConsoleApplication3\TwitterPayment.cs:line 32
at TwitterService.Worker..ctor() in C:\serveur\server\ApplisExternes\TwitterS
erviceV2\ConsoleApplication3\Worker\Worker.cs:line 17
at ConsoleApplication3.TwitterService..ctor() in C:\serveur\server\ApplisExte
rnes\TwitterServiceV2\ConsoleApplication3\TwitterService.cs:line 66
at ConsoleApplication3.Program.<Main>b__2(HostSettings name) in C:\serveur\se
rver\ApplisExternes\TwitterServiceV2\ConsoleApplication3\Program.cs:line 17
at Topshelf.Builders.DelegateServiceBuilder
1.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)at Topshelf.HostFactory.Run(Action`1 configureCallback)
Thanks for your help