0

I am running MonoDevelop on OS X to develop an ASP.NET web application using Nancy. I downloaded the nancy.dll file and referenced it from my web project.

Inside the web.config I added the line:

<httpHandlers>
  <add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" />
</httpHandlers>

to the system.web section, as described in the documentation of Nancy. However, if I try to run my application, my browser comes up and I see an ASP.NET error message created by Mono that tells me that it

Failed to load httpHandler type `Nancy.Hosting.Aspnet.NancyHttpRequestHandler'

Any idea of what I am doing wrong? Why is Mono not able to find the DLL, although it is there?

1 Answer 1

2

I got it ... I had missed to also download and install the Nancy.Hosting.Aspnet package.

Once I did this and referenced the dll, everything works fine :-)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.