Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am using Umbraco 7.6.5. I have a bunch of httphandlers, one for handling robots.txt, one for sitemap and one for pdf files. The first 2 fire fine, however my pdf one does not fire. My web.config looks like
<add name="FileRedirectHandler" verb="GET" path="*.pdf" type="OneCms.BusinessLogic.Handlers.FileRedirectHandler, OneCms.BusinessLogic" /> <add name="RobotsHandler" verb="GET" path="robots.txt" type="OneCms.BusinessLogic.Handlers.RobotsHandler, OneCms.BusinessLogic" /> <add verb="*" name="sitemap.xml" path="/sitemap.xml" type="OneCms.BusinessLogic.Handlers.SitemapHandler, OneCms.BusinessLogic" />
Anyone any ideas?
Regards
Ismail
Hi Ismail,
Are your pdf in the media folder ? That has it's own web.config. Maybe the handlers section get's overwritten there ?
Dave
Hey Ismail
I would say it's related to static files handling, please have a look at this
https://www.hanselman.com/blog/ConditionallyServeFilesStaticallyOrDynamicallyWithHttpHandlers.aspx
Your request to pdf file probably never reach ASP.Net and it's served as a static file straight from the IIS
Cheers
Pawel as mentioned by dave there is config file in media folder im guessing issue is there. So Dave i should my handler there?
I would add it there as well.
bingo, can you add another coffee on that tab, ill get em for you when u come uk or pl fest lol.
That's going to be one hell of a cafeine shot :-D
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
HttpHandler not firing
I am using Umbraco 7.6.5. I have a bunch of httphandlers, one for handling robots.txt, one for sitemap and one for pdf files. The first 2 fire fine, however my pdf one does not fire. My web.config looks like
Anyone any ideas?
Regards
Ismail
Hi Ismail,
Are your pdf in the media folder ? That has it's own web.config. Maybe the handlers section get's overwritten there ?
Dave
Hey Ismail
I would say it's related to static files handling, please have a look at this
https://www.hanselman.com/blog/ConditionallyServeFilesStaticallyOrDynamicallyWithHttpHandlers.aspx
Your request to pdf file probably never reach ASP.Net and it's served as a static file straight from the IIS
Cheers
Pawel as mentioned by dave there is config file in media folder im guessing issue is there. So Dave i should my handler there?
Regards
Ismail
Hi Ismail,
I would add it there as well.
Dave
bingo, can you add another coffee on that tab, ill get em for you when u come uk or pl fest lol.
That's going to be one hell of a cafeine shot :-D
Dave
is working on a reply...