I have some problems using a derived RegisterService (ServiceStack.Auth) when called from inside my ServiceStack host.
My setup:
standard net core installation of ServiceStack and MVC
I have a service defined which I resolve (TryResolve in the controller)
service is resolved, and within that service I resolve the internal RegisterService
With that I get following error:
This AppHost does not support accessing the current Request via a Singleton
Any idea how to resolve this.
For the moment I am “fixing” it by creating a JsonHttpClient and then call the same service via the rest interface but this seems a bit of overkill.
Thanks.
Still having issue, but not related to the mentioned error.
Because I am calling the RegisterService (basically want to create a new user for application), I now am logged out from the website… Most probably the RegisterService is performing a login? I passed the AutoLogin = false to the service but it seems to clear my cookie in the admin portal. Any suggestions?