By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,829 Members | 1,798 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,829 IT Pros & Developers. It's quick & easy.

HttpHandler not getting called

P: n/a
Hi All,

Using vs 2005, c#, ms sql 2005 asp.net web site.

Using httphandler to generate dynamic image from sql server database. Going
according to instructions from msn:

I'm using is Resuable and Process Request procedures. ProcessRequest has
logging code and calls System.Diagnostics.Debugger.launch() - never get gets
called.
I call the photo using image.Src = "abc.xyz=" + "x.y?keyid=9". I have
everything set up in Web.Config in <httpHandlersto register the
httpHandler. This thing just refuses to work.

Please any ideas?

thnx,
Joe

I



Jun 5 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Joe,

The Src attribute doesn't look correct. It appears like "page.extension" +
"page.extension?keyid=9". Is this correct?

When you view the source of the page, does the URL appear correct to what
you had set up in Web.Config?
Steve

"Joe Reiss" <jo******@bellsouth.netwrote in message
news:dFl9i.21894$dy1.13129@bigfe9...
Hi All,

Using vs 2005, c#, ms sql 2005 asp.net web site.

Using httphandler to generate dynamic image from sql server database.
Going according to instructions from msn:

I'm using is Resuable and Process Request procedures. ProcessRequest has
logging code and calls System.Diagnostics.Debugger.launch() - never get
gets called.
I call the photo using image.Src = "abc.xyz=" + "x.y?keyid=9". I have
everything set up in Web.Config in <httpHandlersto register the
httpHandler. This thing just refuses to work.

Please any ideas?

thnx,
Joe

I



Jun 6 '07 #2

P: n/a
Yes its correct.

Its a page + "?" + imageHandler.PublicVar + "=" + KeyID

something like.. page.aspx?keyid=10

When I view the source html output it's exactly right.
"PlatinumBay" <st*******@community.nospamwrote in message
news:Oj****************@TK2MSFTNGP03.phx.gbl...
Joe,

The Src attribute doesn't look correct. It appears like "page.extension"
+ "page.extension?keyid=9". Is this correct?

When you view the source of the page, does the URL appear correct to what
you had set up in Web.Config?
Steve

"Joe Reiss" <jo******@bellsouth.netwrote in message
news:dFl9i.21894$dy1.13129@bigfe9...
>Hi All,

Using vs 2005, c#, ms sql 2005 asp.net web site.

Using httphandler to generate dynamic image from sql server database.
Going according to instructions from msn:

I'm using is Resuable and Process Request procedures. ProcessRequest has
logging code and calls System.Diagnostics.Debugger.launch() - never get
gets called.
I call the photo using image.Src = "abc.xyz=" + "x.y?keyid=9". I have
everything set up in Web.Config in <httpHandlersto register the
httpHandler. This thing just refuses to work.

Please any ideas?

thnx,
Joe

I




Jun 6 '07 #3

P: n/a
Joe,

Could you post the web.config section? Also, for this purpose I have often
used a generic handler (ashx file).

Just as ASPX files can be compiled on the fly (just-in-time), so can
handlers. Generic handlers have an extension of ASHX. They're equivalent to
custom handlers written in C Sharp or Visual Basic.NET in that they contain
classes that fully implement IHttpHandler. They're convenient in the same
way ASPX files are convenient. You simply surf to them and they're compiled
automatically.
(from
http://www.brainbell.com/tutorials/A...HX_Files).html)

You can also check out:
http://blogs.msdn.com/delay/archive/...tom-image.aspx

Hope this helps,
Steve

"Joe Reiss" <jo******@bellsouth.netwrote in message
news:JR************@bignews3.bellsouth.net...
Yes its correct.

Its a page + "?" + imageHandler.PublicVar + "=" + KeyID

something like.. page.aspx?keyid=10

When I view the source html output it's exactly right.
"PlatinumBay" <st*******@community.nospamwrote in message
news:Oj****************@TK2MSFTNGP03.phx.gbl...
>Joe,

The Src attribute doesn't look correct. It appears like "page.extension"
+ "page.extension?keyid=9". Is this correct?

When you view the source of the page, does the URL appear correct to what
you had set up in Web.Config?
Steve

"Joe Reiss" <jo******@bellsouth.netwrote in message
news:dFl9i.21894$dy1.13129@bigfe9...
>>Hi All,

Using vs 2005, c#, ms sql 2005 asp.net web site.

Using httphandler to generate dynamic image from sql server database.
Going according to instructions from msn:

I'm using is Resuable and Process Request procedures. ProcessRequest
has logging code and calls System.Diagnostics.Debugger.launch() - never
get gets called.
I call the photo using image.Src = "abc.xyz=" + "x.y?keyid=9". I have
everything set up in Web.Config in <httpHandlersto register the
httpHandler. This thing just refuses to work.

Please any ideas?

thnx,
Joe

I





Jun 6 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.