Oki, I have figured out how to get it working, although I am not entirely sure this is correct/expected behaviour.
Although I was trying to integrate into an ASP.NET WebForms Web Application I decided to read the documentation for integrating into an MVC application. In this part of the documentation, it currently (2014/05/02) states that you need to include the custom base path within the root path of your modules.
So in my case my module definition changes from:
public class HelloWorldModule : NancyModule
{
public HelloWorldModule()
: base("/helloworld")
{
Get["/"] = _ => "Hello world!";
}
}
To:
public class HelloWorldModule : NancyModule
{
public HelloWorldModule()
: base("/nancy/helloworld")
{
Get["/"] = _ => "Hello world!";
}
}
Now when I hit the url '/nancy/helloworld' I get back the expected response. This is not ideal as my compiled modules will need to know about a dynamic configuration variable. As I am building a set of reusable Nancy modules for our codebase this is a bit of a problem for me, but it is one that I can look into solving now that I at least know how my solution needs to be configured.
I have created an example working project for download: https://www.dropbox.com/s/v895gk3slnz0ggv/Bob.zip