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

Servicestack - Multiple IReturn on Request DTO

Is it possible to have multiple IReturn<> on a request DTO? For example following route: [Route("/api/whatever", "GET,POST,PUT,DELETE")] public class WhateverRequest : IReturn, IReturn> { public string WhateverId { get; set;…
user3104423
1
vote
1 answer

Why are my ServiceStack.Razor pages not refreshing until I rebuild my app?

I've got an API project hosted in ServiceStack (3.9), and I've added a /docs folder containing two Razor files, _layout.cshtml and default.cshtml I have configured no caching; my AppHost class looks like this: public class AppHost : AppHostBase { …
Dylan Beattie
  • 53,688
  • 35
  • 128
  • 197
1
vote
1 answer

ServiceStack Session is null in self-hosted server

There is problem with Session in Service, Session is null on second call (solved, see bottom of the post). I have self-hosted server and client that makes calls to server via JsonServiceClient and ProtoBufServiceClient. On start of client…
Tomasito
  • 1,864
  • 1
  • 20
  • 43
0
votes
1 answer

Identify type of exception in ExceptionHandler of Servicestack

The ExceptionHandler(set inside the overridden Configure method of AppHostBase) of servicestack has the 'exception' parameter of generic Exception type in the lambda. this.ExceptionHandler = (httpReq, httpResp, operationName, exception) => { …
ronilk
  • 303
  • 2
  • 4
  • 14
0
votes
1 answer

Can I register a servicestack response filter inside web.config?

I am using servicestack v3. I have two websites(Public services and Storage services) in IIS where the servicestack services are deployed. In the public services website we need to use certain response filters. Whereas they are not required in…
ronilk
  • 303
  • 2
  • 4
  • 14
0
votes
0 answers

ServiceStack.Redis deserialization issue - sometimes JSON is corrupted

I got a service that uses ServiceStack.Redis for storing objects (serialized with JSON). There's a key that's updated with each HTTP request - the flow is simple: get value for the key, deserialize it to a list, add/remove items, write modified list…
chester89
  • 8,328
  • 17
  • 68
  • 113
0
votes
1 answer

Have the ServiceStack v3 libraries been removed from Nuget?

Does anyone know how I can get the V3 version of ServiceStack.Client off Nuget? This wiki page appears to suggest that they should be there: https://github.com/ServiceStackV3/ServiceStackV3 I need to create a new project to interact with a legacy v3…
Rebecca
  • 13,914
  • 10
  • 95
  • 136
0
votes
1 answer

How to change response encoding?

By default my ServiceStack service returns json responses in UTF-8 encoding. How to change it to ASCII? I think this shouldn't be difficult, but I have no idea how to do it.
Artem Ustimov
  • 98
  • 1
  • 5
0
votes
1 answer

ServiceStack 3 service not able to be called

I'm working on a legacy ServiceStack application, and I'm trying to add a new endpoint. It's a servicestack 3 application. I created new Response, Request, and Service classes for it, like I've done countless times for other endpoints, but for…
Alex Kibler
  • 4,674
  • 9
  • 44
  • 74
0
votes
1 answer

Getting a 404 when trying to serve Markdown Content Pages with ServiceStack.net

I'm having a very strange issue. In our app, I have Content Pages, in Help folder in the root of the app. Within the help folder I have a bunch of Markdown files with a .md extension. These are served with the a route, for…
legion
  • 497
  • 1
  • 5
  • 15
0
votes
1 answer

ServiceStack 3.9.17.0 Implementing IAsyncService

I am attempting to implement the IAsyncService interface with ServiceStack 3.9.17.0. Here is the code for my service definition: public class TestService : IAsyncService { object IAsyncService.ExecuteAsync(int request) { …
0
votes
1 answer

Postpone message excution to specific time using RedisMqHost

Is it possible to use RedisMqServer as simple task scheduler? For example to publish a message and execute it in feature (at specific time)?
marcinn
  • 1,879
  • 2
  • 22
  • 46
0
votes
0 answers

ServiceStack OrmLite bind variables appears to be hurting performance

I appears that using bind variables in my queries is hurting performance, some examples by as much as a factor of 5. The following example takes on average about 0.5 seconds to complete. string strId = "abcd"; using (var db =…
0
votes
1 answer

Service class has a public property that is not resolving

I'm having a little trouble understanding why my Manager class is null within the context of the request handling through this example POST method in the Service class. I registered the Manager and it's dependencies like this example and it seems to…
melmack
  • 95
  • 7
0
votes
1 answer

How best to code in self-hosted ServiceStack when we can't have session due to null request?

I'm using ServiceStack 3.9.71. I'm going into the self-hosted route to be able to deploy on Linux and still be able to avoid the memory leak issues plaguing Mono. The thing with self-hosted service is we no longer have the request. Without it, we…
boyan
  • 1,115
  • 1
  • 8
  • 11