Questions tagged [servicestack-bsd]

Use this tag for questions specifically regarding the legacy 3.X ServiceStack release, available under the BSD license. For general questions about ServiceStack or questions about the latest releases, use the regular [servicestack] tag.

Documentation for the BSD release is available on the ServiceStackV3 GitHub project. This includes instructions for referencing v3 NuGet packages and an archive of the v3 GitHub wiki.

For general information about ServiceStack, visit https://servicestack.net/.

92 questions
1
vote
1 answer

Configuring web.config in Service Stack 3.9 not working

I'm following a tutorial ServiceStack but I use version 3.9.71 and modify the web.config gives me error. My code is like this:
1
vote
2 answers

Servicestack unauthorized exception after credential authentication is performed

I'm trying to get Servicestack Credentials authentication to work but when I attempt to consume a protected service decorated with [Authenticate] I get an unauthorized exception even after the authentication has been successful. What is being missed…
1
vote
1 answer

Using ServiceStack OrmLite to create Key Value table for dynamic types

I want to create a key value table in my database along the lines of public class KeyValue { public string Id { get; set; } public dynamic Value {get; set; } } Using a slightly modified SqlProvider I have no problems getting…
Chris Marisic
  • 32,487
  • 24
  • 164
  • 258
1
vote
1 answer

Where does the route /json/syncreply come from in ServiceStack?

I'm trying to send a request to a third party api using this DTO: [Route("log_entries", "GET")] public class MyRequest: IReturn { } The client request: string uri = "https://..../api/v1" var jsonClient = new JsonServiceClient(uri); //…
MikeW
  • 4,749
  • 9
  • 42
  • 83
1
vote
1 answer

How do I get around "HttpListenerBase.Instance has already been set" in my ServiceStack-hosted tests?

I've got a project build on ServiceStack 3.9, with extensive test coverage that uses ServiceStack's self-hosting API facility. Lots of my test fixtures look like this: private const string URL_BASE =…
Dylan Beattie
  • 53,688
  • 35
  • 128
  • 197
1
vote
1 answer

ServiceStack ServiceExceptionHandler.Add method does not exists?

I am using ServiceStack version 3.9.71 and I cannot find the "Add" method. Is the documentation on the wiki outdated? What should I do in order to make it work? public override void Configure(Container container) { …
Daniel Gartmann
  • 11,678
  • 12
  • 45
  • 60
1
vote
1 answer

Restrict service to internal network BUT load balancer?

In our ServiceStack (v3)-based API, we have some services that are for internal use only, so we've put a [Restrict(InternalOnly = true)] attribute on all of our internal request DTOs. The problem is that we use load balancing, and the restricted…
Raphael
  • 1,847
  • 1
  • 17
  • 29
1
vote
1 answer

ServiceStack Cookie not setting in browser

I have an application with Razor Enabled and a service like this: public object Post(SelectTerminalRequest request) { var location = base.Request.AbsoluteUri.CombineWith(request.TerminalId, "/flights"); if…
CallumVass
  • 11,288
  • 26
  • 84
  • 154
1
vote
2 answers

Setting user-specific culture in a ServiceStack + MVC web application

I need to set user-specific culture for every web request sent to my web application written using ServiceStack 3 and MVC 4. Each user's culture is stored in their profile in the database, which I retrieve into my own implementation of IAuthSession…
1
vote
1 answer

ServiceStack: Set Root URL for Index page to /

I asked a question a few weeks ago about this, found here: ServiceStack: URL Re-writing with Self-Hosted application However, I'm encountering an issue when I create this application as a windows service. I get the following error when I browse the…
CallumVass
  • 11,288
  • 26
  • 84
  • 154
1
vote
1 answer

ServiceStack Message queue .outq max size is 100?

I'm setting up a message queue using ServiceStack-v3 that looks like this ClaimImport -> Validation -> Success I've added hundreds of ClaimImports with no problem, the .inq count is correct. The issue is I want to see how many claims were imported…
Jason More
  • 6,983
  • 6
  • 43
  • 52
1
vote
1 answer

ServiceStack Dto can't have object[] but int[] is Ok?

Works: [ProtoContract(ImplicitFields = ImplicitFields.AllPublic)] public class ExcelData { public int[] DataObjects { get; set; } } Don't work: [ProtoContract(ImplicitFields = ImplicitFields.AllPublic)] public class ExcelData { public…
Tomasito
  • 1,864
  • 1
  • 20
  • 43
1
vote
1 answer

ServiceStack iterate through all request/response DTO

How can I iterate through all request/response DTOs that are setup with a route? For example a route like this: [Route("/api/something", "GET")] public class SomethingGetRequest : IReturn> { public int SomethingId { get; set;…
user3104423
1
vote
1 answer

Redundancy with self hosted ServiceStack 3.x service

We are running a self hosted AppService with ServiceStack 3.x We would like to have a automatic failover mechanism on the clients if the current service running as master fails. Clients at the moment are strong typed C# using the default SS…
bxbxbx
  • 13
  • 2
1
vote
1 answer

Is RequestFilter Validation client dependent?

Should I expect Request Filter Validation (e.g. FluentValidation) to be triggered when instantiating a reference service via AppHostBase.ResolveService<>? Thus far, I've only successfully received proper error responses to my C# application when…
Jeremy Smith
  • 1,349
  • 8
  • 15