I'm using code from this article on a thumbnail handler, but when I reference my handler in a URL, something hangs. A breakpoint on the first line, int _width = 0;
is never hit, and FF keeps waiting for the page. When I place exactly the same code in a page's code-behind, and reference that page in the img URL, it works as expected. What could I be doing wrong with the handler?
Working client page:
<img src="ThumbnailPage.aspx?ImgFilePath=photos/modeling/modeling___MG_9024.JPG" />
Hanging client page:
<img src="ThumbnailHandler.ashx?ImgFilePath=photos/modeling/modeling___MG_9024.JPG" />
ADDED:
A funny thing happened on the way to fix the above link to the handler code: I removed the handler and all references to it from my project, yet when I browsed to a page referring to my thumbnail page (.apsx), my project still hung. When I tried toi pause debugging, VS couldn't find the source for the handler (.ashx). I had to close VS to resolve this issue.
ADDED:
After restarting VS, my handler is also working. I'm keeping this question open so long, because it would be nice to know if there is anything I could have done to cause this hangup. I have changed none of the thumbnail code, just restarted VS.