I have an HttpHandler called Handler, which I compile in a DLL and put in the / bin folder of my ASP.NET application. Then I have a .ashx file:
<% @ webhandler language="C#" class="Handler" %>
but I get that I cannot create an error like Handler.
However, if I move the handler to a free namespace, say foo and change .ashx to
<% @ webhandler language="C#" class="foo.Handler" %>
It works great. Why can't I use the default namespace, er, namespace? Microsoft omits the namespace in many of the HttpHandlers examples on the msdn website.
source share