3

I am developing a Web API application. I have followed the Elmah setup. However when I want to have access to the log file by browsing to the url on my local machine I got the following error:

<Error>
<Message>
No HTTP resource was found that matches the request URI 'http://api.smsgh.local/elmah.axd'.
</Message>
<MessageDetail>
No type was found that matches the controller named 'elmah.axd'.
</MessageDetail>
</Error>

Please assit me solving this.

Thank you very much

1
  • Did you remember to add the http handler processing the request for /elmah.axd? Commented Sep 27, 2013 at 17:31

1 Answer 1

1

you need to tell the routing configuration to ignore *.axd:

routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

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.