Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
After a great demo by Per at CodeGarden 11 I wanted to give the command line Courier tool a go, I have downloaded the most recent version of the source, modified the account details in and built the application, but I am now at a point that I have not got a clue why it is not working, has anyone managed to get this working?
Or, does Per monitor this group!? If so.. can you throw me a bone and let me know where I need to run the app and if there are any dependencies etc? I'd like to help test this and get it working but I need a hand getting it to first base :)
I need a bit more info then "it's not working" :)
what source did you download? what happens when you run it?
I've been trying to get a command line client running with Courier 2, as well... Does anyone know the best place to go to get started?
Currently I've been trying to use this version:
I've also tried the ExtractionConsole from Courier Contrib (http://couriercontrib.codeplex.com/) - but always run into this error:
Umbraco.Courier.Core.ProviderException was unhandled
Message=No provider<Umbraco.Courier.Core.RepositoryProvider> with id 'e0472598-e73b-11df-9492-0800200c9a67' found
at Umbraco.Courier.Core.ProviderCollection`1.GetProvider(Guid id) in C:\Users\per\Documents\Projects\umbraco PRO\Courier 2\Core\Umbraco.Courier.Core\ProviderModel\ProviderCollection.cs:line 57
at Umbraco.Courier.Core.ProviderModel.RepositoryProviderCollection.get_Default() in C:\Users\per\Documents\Projects\umbraco PRO\Courier 2\Core\Umbraco.Courier.Core\ProviderModel\ProviderCollection\RepositoryProviderCollection.cs:line 26
at Umbraco.Courier.Core.Extraction.RevisionExtraction..ctor(String revision) in C:\Users\per\Documents\Projects\umbraco PRO\Courier 2\Core\Umbraco.Courier.Core\Engines\Extraction\RevisionExtraction.cs:line 125
at Umbraco.Courier.ExtractionConsole.Program.Extract(String args) in F:\code\git\umbraco\courier-deployment\Umbraco.Courier.ExtractionConsole\Program.cs:line 38
at Umbraco.Courier.ExtractionConsole.Program.Main(String args) in F:\code\git\umbraco\courier-deployment\Umbraco.Courier.ExtractionConsole\Program.cs:line 264
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String args)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
Most uptodate sample there is, is the extraction console:
The error you get, is from courier not having its provider dlls loaded properly. Check the console source to see how it loads dlls from a seperate folder
Thanks Per - I'll give that a try :)
Is it Umbraco.Courier.Providers.dll that should be in that plugins directory?
I've copied it in, but still get the same error...
GetProviders returns 0 providersUmbraco.Courier.Core.ProviderModel.RepositoryProviderCollection.Instance.GetProviders() Count = 0From looking at the decompiled source, GetProviders filters on the namespace 'Umbraco.Courier.Providers' ... But the dll only contains Umbraco.Courier.ItemProviders items.... I guess that could be one of three reasons...
1) I have the wrong dll.2) There's been a namespace change, and that class needs to be updated.3) I'm completely off track and something else is broken.
I'm also running into this same error for both the CourierTeamDev & ExtractionConsole samples... with very little courier API documentation it's difficult to know if I am doing something wrong or if like Kevin suggests the API is broken..
I know people are busy, but is there an answer to this after all Courier 2 is a paid for product !!!
@Andrew When I run the console app (https://github.com/umbraco/Courier/tree/master/Samples/Umbraco.Courier.ExtractionConsole) I make sure to have only the following assemblies in the /plugins/ directory:
This is with 4.7.2.
You also need to make sure you have an entry in config for the Repository you're pointing at.
If you're getting a specific error, can you post it here? Might point up the issue more readily.
Yup... I've abandoned trying to get the old code samples working.. it turns out the Courier API has changed to using RevisionPackaging instead of the ExtractionManager... so I'm just fumbling around figuring out how it works (distinct lack of new API docuemntation).
Once I have it working... I will probably fork on github... update the sample I'm playing with and make a pull request
But thanks for the response :)
I downloaded the extraction console utility from this location (https://github.com/umbraco/Courier/tree/master/Samples/Umbraco.Courier.ExtractionConsole) today. But when I tried to run it (after udpating the courier.config with the appropriate repositories), it gives me the below error:
Could not load file or assembly 'Umbraco.Courier.DataResolvers, Version=188.8.131.52, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
This error occurs at the first line "Umbraco.Courier.Core.Helpers.TypeResolver.LoadAssembliesIntoAppDomain(plugins, "*.dll");" in the Main method.
Initially the downloaded bin/debug folder did not contain above listed dlls which I found from various places inside the downloaded Courier folder and copied them over into bin\debug\plugins folder.
Any help would be appreciated.
Yeah the extraction console project doesnt have references in place, because these should be copied over from the standard courier builds, which are on nightly.umbraco.org, as parts of the build is obfuscated and licensed.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted