Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8898581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:38:52+00:00 2026-06-15T00:38:52+00:00

ServiceStack recognizes the parameter (RADIUS in my case) if the preceding parameters (latitude and

  • 0

ServiceStack recognizes the parameter (RADIUS in my case) if the preceding parameters (latitude and longitude) does NOT have a decimal in the URL. Once I place the decimal in the latitude or longitude I get a “Handler for Request not found”. Below are my code and error

here is the Location class

public class Location
{
    [DataMember(Name = "Latitude", Order = 5)]
    public double? LATITUDE { get; set; }
    [DataMember(Name = "Longitude", Order = 6)]
    public double? LONGITUDE { get; set; }
    [DataMember(Name = "Radius", Order = 7)]
    public double? RADIUS { get; set; }
}

Here are my AppHost path definitions

Routes.Add<Location>("/Locate/geo/{LATITUDE}/{LONGITUDE}", "GET");
Routes.Add<Location>("/Locate/geo/{LATITUDE}/{LONGITUDE}/rad/{RADIUS}", "GET");
Routes.Add<Location>("/Locate/rad/{RADIUS}/geo/{LATITUDE}/{LONGITUDE}", "GET");

Below are my results

works

http://localhost:2222/api/Locate/geo/30.1783/-96.3911?format=xml
http://localhost:2222/api/Locate/rad/20/geo/30.1783/-96.3911?format=xml

Does not work

http://localhost:2222/api/Locate/geo/30.1783/-96.3911/rad/20?format=xml 

– I get the following error

Handler for Request not found:

Request.ApplicationPath: /

Request.CurrentExecutionFilePath: /api/Locate/geo/30.1783/-96.3911

Request.FilePath: /api/Locate/geo/30.1783/-96.3911

Request.HttpMethod: GET

Request.MapPath(‘~’): C:\Webservices\

Request.Path: /api/Locate/geo/30.1783/-96.3911/rad/20

Request.PathInfo: /rad/20

Request.ResolvedPathInfo: /rad/20

Request.PhysicalPath: C:\Webservices\api\Locate\geo\30.1783-96.3911

Request.PhysicalApplicationPath: C:\Webservices\

Request.QueryString: format=xml

Request.RawUrl: /api/Locate/geo/30.1783/-96.3911/rad/20?format=xml

Request.Url.AbsoluteUri: http://localhost:2222/api/Locate/geo/30.1783/-96.3911
/rad/20?format=xml

Request.Url.AbsolutePath: /api/Locate/geo/30.1783/-96.3911/rad/20

Request.Url.Fragment:

Request.Url.Host: localhost

Request.Url.LocalPath: /api/Locate/geo/30.1783/-96.3911/rad/20

Request.Url.Port: 2222

Request.Url.Query: ?format=xml

Request.Url.Scheme: http

Request.Url.Segments: System.String[]

App.IsIntegratedPipeline: False

App.WebHostPhysicalPath: C:\Webservices

App.DefaultHandler: DefaultHttpHandler

App.DebugLastHandlerArgs: GET|/api/Locate/geo/30.1783/-96.3911|C:\Webservices\api\Locate\geo\30.1783-96.3911

If the decimal is the issue wonder how does the first URL with both Lat & Long works with decimals in place. Pls correct me if any of the AppHost path is wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:38:53+00:00Added an answer on June 15, 2026 at 12:38 am

    From this previous answer:

    There are 2 component separators in ServiceStack’s Routes: . and /, here’s an example showing different Route path ServiceStack supports.

    You can try url encoding the . so its %2E otherwise just add the action as a querystring parameter, e.g: /path/to/me%40example.com?action=action

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started to use ServiceStack which is an amazing library. However, I
As a followup to Does ServiceStack support binary responses? , I'm wondering whether there
I have read a lot of info on ServiceStack and love the simplicity. Using
have created REST service using servicestack and in post request I have return object
I have been tinkering around with ServiceStack to expose some web services and have
I have built a service with ServiceStack (customer example) as per this link: https://docs.google.com/present/view?id=dg3mcfb_213gsvvmmfk
I've been taking a look at ServiceStack and it looks amazing. Although I'm not
ServiceStack RestService has handlers for Get, Put,Post, Patch but not Option. I would like
I am using ServiceStack and have my own handlers in for any exceptions thrown
In ServiceStack this line is not correct. userSession = this.Cache.Get(SessionKey); (Line:28) Cache is null

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.