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
2
votes
1 answer

How do I return an empty JSON object for methods of return type void?

Requirement: I am looking for a way to return an empty JSON object (such as {}) when the return type of my ServiceStack service method is void. Reasoning: The reason for wanting to return an empty JSON object for void types is due to the way jQuery…
Scott
  • 21,211
  • 8
  • 65
  • 72
2
votes
0 answers

Why is the DownloadTwitterUserInfo method of IAuthHttpGateway not returning JSON result?

I'm trying to use the TwitterAuthProvider, but it seems like the implementation is deprecated since it uses twitter 1.0, I´m getting the following exception: The remote server returned an error: (410) Gone. It happens after the user auth when…
pedrommuller
  • 15,741
  • 10
  • 76
  • 126
2
votes
0 answers

ServiceStack [XmlSerializerFormat] compatible SOAP Web-service for a legacy client

I would like to replace a WCF Web-service by a new ServiceStack service. WCF service uses basicHttpBinding and it is invoked by a legacy client via SOAP using HTTP POST. The problem I faced to is that the legacy client uses [XmlSerializerFormat]…
Alexf2
  • 39
  • 4
2
votes
1 answer

Can I proxy a ServiceStack Service?

I'm wondering if it's possible to have ServiceStack use an AOP-proxied service, instead of the main implementation. I would like to avoid having the class that inherits from ServiceStack.ServiceInterface.Service simply be a wrapper, if possible. …
cgroneman
  • 21
  • 3
2
votes
1 answer

Deserialize XML with UTF-16 encoding in ServiceStack.Text

I am trying to use ServiceStack.Text to deserialize some XML. Code: var buildEvent = dto.EventXml.FromXml(); The opening xml line is: ServiceStack fails with the following error: The…
2
votes
0 answers

ServiceStack Razor Url Mapping

Have you guys successfully done mapping already? Say, I want to map: /stars/alive/vedder to: /vedder I tried putting this in web.config:
Tom
  • 15,781
  • 14
  • 69
  • 111
1
vote
2 answers

Could not load type 'ServiceStack.Redis.RedisSentinel' from assembly 'ServiceStack.Redis, Version=3.9.48.0, Culture=neutral, PublicKeyToken=null

Currently in my application I am trying to implement application caching for which I have used RedisSentinel. We have a common assembly which is having all code and configurations implemented for Redis, and that assembly is having ServiceStack…
Nirman
  • 6,715
  • 19
  • 72
  • 139
1
vote
1 answer

ServiceStack.Redis v3 and multiple hosts - recommended architecture

We are experiencing an issue where multiple instances of RedisMqServer are tripping up over each other - stopping one server stops the others. Clearly the way we have implemented this is wrong, but I can't identify how one is supposed to use…
nullPainter
  • 2,676
  • 3
  • 22
  • 42
1
vote
1 answer

How can I change the JSON date serialization format for as single service in ServiceStack 3?

I have a number of legacy services in a ServiceStack 3 based middleware application which use the default date serialization format for JSON. The issue is that this is not human readable for debugging. I would like a new service that is being…
SAJ14SAJ
  • 1,698
  • 1
  • 13
  • 32
1
vote
1 answer

Do I have access to the request dto when I'm handling exceptions occuring outside of services?

With ServiceStack, it's important to implement exception handling/logging in two places: Inside of each ServiceRunner. public class MyServiceRunner : ServiceRunner { public override object HandleException(IRequestContext…
Jim G.
  • 15,141
  • 22
  • 103
  • 166
1
vote
1 answer

ServiceStack passing values in service to response attribute

I have a service: [SomeResponse] public class SomeService : ServiceBase { public string[] CacheMemory{ get; set; } //.... } public class SomeResposeAttribute : ResponseFilterAttribute { public override void Execute(IHttpRequest req,…
Tom
  • 15,781
  • 14
  • 69
  • 111
1
vote
1 answer

ServiceStack.OrmLite Create table with table name

I am using ServiceStack.OrmLite version 3.9.71 and I would like to create table with specific table name. So I want to have something similar to the following db.CreateTable("Table Name"); I have found the following relevant question but…
Hossam Barakat
  • 1,399
  • 9
  • 19
1
vote
0 answers

Incorrect deserialisation of a generic list using ServiceStack.Text

I'd like to ask if the following behaviour I get - with either v3 (BSD) or v4 - is a bug. I have a generic list. I serialise it using myList.ToJson(). As a result I get this: "[{\"__type\":\"MyNameSpace.MyType, MyAssembly\", ... (properties)}, {...…
1
vote
1 answer

Can't get NLog 2.0.1 version from NUGet

In Visual Studio 2010, in Package Manager Console I type: Install-Package NLog -Version 2.0.1 And I'm getting 2.0.0 (on disk). On Codeplex there's no 2.0.1 version. Version 2.0.1 is required for ServiceStack.Logging.NLog because of error: Can't…
Tomasito
  • 1,864
  • 1
  • 20
  • 43
1
vote
1 answer

ServiceStack maxReceivedMessageSize

I have a service written using servicestack v3.9. I am trying to return a large result set and am getting an 500 internal server error on my client. If I look at the details of the error I see the results are listed in the exception but are…