473,405 Members | 2,262 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

HttpHandler not getting called

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
3 3437
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: vinny | last post by:
hi, After calling my httphandlers , i want the default httphandler also to be called. How do i call the default httphandler? Because the pages where i am using my own httphandler, returns a...
2
by: rpale | last post by:
We want to create server-side code that will retrieve the user requested pages, then manipulate the content of those pages just before being sent back to the user. We tried the following: ...
3
by: Ralf Müller | last post by:
hi all! in my custom HttpHandler HttpContext.Current.Session is not set - why? greetings, ralf
9
by: Jared Tullis | last post by:
We have an .NET 1.1 application running on 4 2K3 load balanced servers (using WLBS). IIS has the .NET aspnet_isapi.dll mapped as a wildcard application map. The web.config points *.html to a...
3
by: Hitesh | last post by:
Hi, I am getting the response from another Website by using the HttpHandler in my current site. I am getting the page but all the images on that page are not appearing only placeholder are...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
2
by: wickedHangover | last post by:
I'm writing some code to act as a proof of concept which at this point works ok, there is a minor issue I would like to resolve. What I have is an image database being served in an academic...
6
by: David | last post by:
Hi, I'm very new to ASP.NET. I have over 10 years of C++ experience in MFC and Games programming etc, but web programming is something I have just started. Sorry for the rather silly...
3
by: Tomasz J | last post by:
Hello Developers, I have a following problem: I need to write a HttpHandler rewriting requests like: /Resource.axd?resid=1 to /someimage.gif My HttpHandler is listed in the web.config, its...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.