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

ServiceStack: Self-Host Not finding static files

I have a self hosted service sitting at the following URI: const string listeningOn = "http://*:80/PassengerTracker/"; Note: I want to host it at /PassengerTracker. Is this the best way to do it? I have Razor Views enabled and I have specified the…
CallumVass
  • 11,288
  • 26
  • 84
  • 154
0
votes
1 answer

ServiceStack: URL Re-writing with Self-Hosted application

I have a self-hosted application which has an index.html file at its root. When I run the application and go to localhost:8090 (app is hosted on this port) the URL looks like: http://localhost:8090/index.html. Is there anyway I can make the URL to…
CallumVass
  • 11,288
  • 26
  • 84
  • 154
0
votes
1 answer

Make JsonServiceClient process requests with empty (not null) request objects

How can I configure ServiceStack v3.x JsonServiceClient to serialize an empty request object and call the service? I want to get an exception, but instead the JsonServiceClient returns null. I put a breakpoint at the top of the service, and it's…
Pauli Price
  • 4,187
  • 3
  • 34
  • 62
0
votes
0 answers

Restrict access to DTO to message service and localhost with ServiceStack

I want to restrict the access to a service method to the local message service in ServiceStack v3. I do not want to allow any request from external machines. I am using the in memory IMessageService so all pub/sub is being done within the same…
jruizaranguren
  • 12,679
  • 7
  • 55
  • 73
0
votes
3 answers

ServiceStack.Text.EnumMemberSerializer not working with Swagger plugin

I'm using ServiceStack v 3.9.71 and the ServiceStack.Text.EnumMemberSerializer assembly to serialize enums into readable text. This works great, my enum values are serialized into the name I've specified using the EnumMemberAttribute. The problem,…
Darcy
  • 5,228
  • 12
  • 53
  • 79
0
votes
1 answer

How to access IHttpRequest from my custom serializer in ServiceStack

We have custom serializers for our Models that protect sensitive data depending on the request path. (For instance, if the request does not start with "/admin"). Up until now, we've tried registering the IHttpRequest with the Funq container on a…
Dema
  • 6,867
  • 11
  • 40
  • 48
0
votes
0 answers

Force logout a ServiceStack user by id

I'm implementing "Block user" feature on my ServiceStack 3.9 project, when a site administrator is able to block/remove registered users. But unfortunately I couldn't find a way to close opened session for a blocked (removed) user. Updated: I'm just…
JohanTG
  • 1,335
  • 1
  • 14
  • 23
0
votes
1 answer

How to change sql server connection string dynamically in service stack

I am working on Asp.Net MVC and ServiceStack. I am trying to connect to the sql server database using servicestack ormlite. like var connectionString = ConfigurationManager.ConnectionStrings["AppDb"].ConnectionString; …
0
votes
1 answer

ToOptimizedResult on an HttpResult causes a StackOverflow exception

I'm using v3.9.56.0 and I'm encountering a stack overflow exception when I call ToOptimizedResult (Called from my own service runner) on a returned HttpResult from a service. When I dig deeper I found the exception was coming from the…
kinstephen
  • 721
  • 5
  • 8
0
votes
1 answer

ServiceStack using Service.Db.Exists(object) throws exception when used with OrmLite.SqlServer

I'm expecting that Exists<>() function will check if data exists in database: if (!Service.Db.Exists(applicationObject)) { Service.Db.Insert(applicationObject); } but I'm getting System.NotImplementedException when…
Tomasito
  • 1,864
  • 1
  • 20
  • 43
0
votes
0 answers

ServiceStack: when I throw [MyCustom]Exception in Service I'm getting "[MyCustom]Exception was unhandled by user code"

In Service class I have Post method: public void Post(UpdateAdd request) { try { Service.Db.Insert(some_data); } catch (SqlException e) { switch (e.Number) { …
Tomasito
  • 1,864
  • 1
  • 20
  • 43
0
votes
1 answer

ServiceStack.Client on .NET 3.5

I must use .NET 3.5 for my project and I'm trying to create a client for a ServiceStack .NET 4.0 server. I am Win 7, VS 2010, .NET 3.5. After searching around the web for hours I found an older version of ServiceStack here: …
tradetree
  • 354
  • 3
  • 20
0
votes
1 answer

How do I prevent ServiceStack deserializing empty request parameter values as null?

I have a very simple ServiceStack service which I am invoking it via JSONServiceClient and c# typed API. However, when I have empty arguments in Request params, ServiceStack is deserializing this into null values. I have looked and it seems like in…
0
votes
2 answers

ServiceStack: Property in request DTO becomes null if type is abstract

I have a ServiceStack 3-based client-server architecture. I'm trying to create a service whose request DTO contains a property with an abstract type, with two different concrete classes implementing it. The abstract type could be either an abstract…
Sören Kuklau
  • 19,454
  • 7
  • 52
  • 86
0
votes
1 answer

How to get latest Service Stack v3 build?

Last v3 build published on nuget.org is 3.9.71 - since then there have been lots of fixes that I would like to include in my project. So what is preferred way to do that? Obviously I can add v3 branch from Github as Submodule in my Git, then…
nikib3ro
  • 20,366
  • 24
  • 120
  • 181