That looks like you need to use the IIS URL rewrite module. Never used it before, so not much help.
If you get to a point where you'd like some kind of framework, but not something overbearing and prescriptive, check out Nancy - here's their wiki page on defining route handlers https://github.com/NancyFx/Nancy/wiki/Defining-routes. It was designed around Ruby's Sinatra or Python's Flask - basically just annotate a function with the route that it should respond to then run the framework to have it just work. You can return a string, bytes, or just a response code. You also have the raw request object should you need it, plus you can also self-host the whole thing without IIS. On 29 September 2014 22:13, Greg Keogh <[email protected]> wrote: > I'm pleased to see others have bypassed the plumbing as well. I forgot about > http.sys and although I can't think of a use for it, it's nice to be > reminded it's there. > > I'm stuck with one irritation at the moment that I'm wondering if anyone > knows how to fix. My ashx file is working fine, but the url looks like this: > > http://www.blah.com.au/foobar.ashx/user/get?id=1234 > > Does anyone know how to "hide" the ashx part? There is probably a trick in > IIS configuration I'm not aware of. Setting a default document doesn't work. > > Greg K > > > > On 30 September 2014 03:39, Mark Hurd <[email protected]> wrote: >> >> And I produced a web service, using a simple pass-through aspx label: >> >> http://stackoverflow.com/a/2817637/256431 >> >> -- >> Regards, >> Mark Hurd, B.Sc.(Ma.)(Hons.) > >
