After seeing an awesome presentation at Code Garden on the new shiny Courier 2.0, I've decided to write my own console app to speed up the extraction of my data.
However, I'm having an issue connecting to the CourierWebserviceRepositoryProvider. I've provided a user id of 0 (should be admin) but I keep on getting the following exception:
================================================================== System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.BusinessLogic.User.setupUser(Int32 ID) at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.getloginAndPass(Int32 userId, String& login, String& pass) at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.OpenSession() at Umbraco.Courier.Core.ExtractionManager.ExtractRevisions() at Umbraco.Courier.ExtractionConsole.Program.Extract(String[] args) ==================================================================
This also happens if I use a valid login and password as an alternative. I've also specified my password encoding as hashed.
Ah yes, there is a small issue with the provider, when you run it from the console app, you need to set the specific login/pass not the user ID, as the console app have no idea what the ID means. Also, the ID must be set to -1 (yes that is kindda weird, I'll get that fixed in the next maintance release)
Courier 2.0 Console App Issues
Hi there
After seeing an awesome presentation at Code Garden on the new shiny Courier 2.0, I've decided to write my own console app to speed up the extraction of my data.
However, I'm having an issue connecting to the CourierWebserviceRepositoryProvider. I've provided a user id of 0 (should be admin) but I keep on getting the following exception:
==================================================================
System.NullReferenceException: Object reference not set to an instance of an object.
at umbraco.BusinessLogic.User.setupUser(Int32 ID)
at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.getloginAndPass(Int32 userId, String& login, String& pass)
at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.OpenSession()
at Umbraco.Courier.Core.ExtractionManager.ExtractRevisions()
at Umbraco.Courier.ExtractionConsole.Program.Extract(String[] args)
==================================================================
This also happens if I use a valid login and password as an alternative. I've also specified my password encoding as hashed.
Thanks in advance for any help!!
Hi Aileen
Ah yes, there is a small issue with the provider, when you run it from the console app, you need to set the specific login/pass not the user ID, as the console app have no idea what the ID means. Also, the ID must be set to -1 (yes that is kindda weird, I'll get that fixed in the next maintance release)
/Per
Thanks Per - worked like a charm!
sweet! :)
is working on a reply...