Last post Mar 10, 2009 07:45 AM by Henxon
Mar 10, 2009 06:59 AM|Henxon|LINK
I have tried the new GeneratedImage which is based on a HttpHandler. I can't get it to work and the main problem is that I can't really create a good exception handling, thus I don't know what's wrong. I have an ErrorHandling class in which I send all exceptions,
and it forwards them into the web server log. Is it possible to access other classes in the project from a HttpHandler class?
Mar 10, 2009 07:27 AM|joteke|LINK
If those other classes are precompiled, yes it should be possible. If you can't get it to work instantly you can also just add try...catch and let it write the error to the response...at least that helps dbugging at start
Mar 10, 2009 07:45 AM|Henxon|LINK
Yeah, I just found out that the communication between the classes worked - it was a cache setting that made the code to never run... There are two cache settings, local and server. How does the code know when to show a cached version of the image, and when
to get a new one?