473,669 Members | 2,420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HttpHandler issues

6 New Member
I have some images which are served using an HttpHandler for several reasons. I've registered the .img extension with ASP.NET and added an <ADD> directive in the web.config file so that I can reference any image in HTML using the following syntax:

<img src="http://mydomain.com/images/1234.img?size=t humbnail" />

Every piece of that web site works fine.


Now I'm creating a second web site located on a different server. When I use the same syntax as before:

<img src="http://mydomain.com/images/1234.img?size=t humbnail" />

the image is not loaded correctly. It almost seems as though the browser won't display images from external sites unless their extension is recognizable or something weird like that. Has anyone else had any experience with this sort of thing? Any ideas on how to fix this? Am I missing something fairly obvious?

Thanks in advance!

P.S.
Yes, the two sites have to be on separate servers.
No, I cannot put the images on both servers.
Yes, I do have to use an HttpHandler to serve the images.
Dec 9 '08 #1
1 1050
latortugamorada
6 New Member
It may also be helpful to know that if I just type the URL directly into a browser:

http://mydomain.com/images/1234.img?size=thumbnail

the image appears as expected. If after doing that I go back to a page with an HTML reference to the image:

<img src="http://mydomain.com/images/1234.img?size=t humbnail" />

The image appears successfully on any computer. To me this clearly makes it a server issue.
Dec 9 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2857
by: Earl Teigrob | last post by:
My company sells software and wants to provide downloadable product. Some of these downloads will be full CD's of over 550M I had everything working fine using Response.filewrite() but when we tested it with large files, it blew up. (crashed the server, well documented problem) I can download a file just fine if I just point to the download file and let IIS generate the download dialog (but with no security, of course)
3
7957
by: Jed | last post by:
I have written an HttpHandler which I invoke through an ashx page. The HttpHandler does various things to process the request, then it is supposed to redirect to a confirmation page. Everything up to the redirect works fine, but I can't get the redirect to work. If I do a ... context.Response.Write("Hello World"); .... the HttpHandler works great and the browser loads the text fine, but if I change it to ...
0
1107
by: Steven | last post by:
I am using a HttpHandler (the ASP.NET 1.1 DynamicImage control from MSDN -- http://msdn.microsoft.com/msdnmag/issues/04/04/CuttingEdge/default.aspx) to handle all calls to cachedimageservice.axd. When using HTTP, the ProcessRequest() method gets fired and everything works fine, however when using HTTPS the ProcessRequest() method never gets fired! If anyone has any ideas I'd love to hear them. Thanks!
14
2083
by: qwerty | last post by:
Hi, I am using a third party win 2003 iis 6.0 to serve my website. The web site has a httphandler which does some custom jobs. When I try to invoke the httphandler from some url call, it won't start and give a 404 error on the url. I personally create a plain win 2003 iis 6.0 server locally. The
7
2911
by: Adam | last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have developed the handler, 1. installed it into the gac 2. added it to the machine.config: <httpHandlers> <add verb="*" path="*.sgf" type="CustomExtensionHandler, Extenders.CustomExtensionHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d831d925597c1031" validate="True"/> </httpHandlers>
4
3022
by: ms | last post by:
Something weird is going on here, an HttpHandler works perfectly, exect when I post a form to it using the post method it gives me an file not found 404 error, if I post to it using the get method works perfectly. Can someone help?? thanks in advance Jose Suero
4
1582
by: Victor | last post by:
Hi Guys I have a problem with my httphandler here. I have several httphandler in my application. each of them do the different job. but I found sometimes it really slow down the performance. Is there a way I can specify that one handler can only be used on certain pages? like httphandler A is used on page A,B and httphandler B is only used on Page C, D? Cheers Victor
5
4311
by: zlf | last post by:
Hello, I try to use a custom HttpHandler to add something to session, then display the original page. public void ProcessRequest(HttpContext context) { context.Session = "test"; } But, a empty page is rendered with this HttpHandler, should I add some
5
169
by: Joe | last post by:
Is it possible to return a page in the ProcessRequest method? For example if someone enters www.mydomain.com/user/joe I want to return a page user.aspx?user=joe but I don't want the URL to show in the browser. I tried context.Server.Transfer but it always returns an error. context.Request.Redirect works but then the URL changes. Any ideas? Thnaks, Joe
0
8383
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8895
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8809
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8658
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7407
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6210
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4386
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.