I have a HttpHandler called Handler that I compile into a DLL and put in the /bin folder of my ASP.NET app. Then I have a .ashx file:
<% @ webhandler language="C#" class="Handler" %>
but I get a cannot create type 'Handler' error.
However, if I wrap Handler in a gratuitous namespace, say foo, and change the .ashx to
<% @ webhandler language="C#" class="foo.Handler" %>
it works fine. Why can't I use no namespace, er, the default namespace? Microsoft omits a namespace in many examples of HttpHandlers on the msdn website.