Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...HttpHandlerHttpHandler
Previous
 
Next
New Post
1/28/2011 1:33 PM
 
Chris Hammond wrote:
Rob,
Have you confirmed that the handlers are both still registered in the web.config file?

Hi Chris,
That was the first thing I checked and yes, both handlers were still registered.

William Severance wrote:
Rob,

That's a consequence of the upgrade to 5.06.00 and the changes that were made to the UrlRewriteModule to support automatic portal alias mapping. Check your PortalAlias table for extra entries. I suspect that there will be some there for the handler that is no longer working. Some of these un-intended effects were fixed in the recently released 5.06.01 but I'm not certain that an upgrade will take care of this issue for you.

I would be especially interest in knowing what is different between the url's being processed by the two handlers in determining why one continues to work and the other does not. In particular, is the TabID or PortalID being passed in the querystring to one and not the other?

Hi William,

You're quite correct, the upgrade to 5.06.01 won't take care of it as it was in fact that version that I upgraded to.

The only real difference between the two handlers is that one uses a path of "*PropertyImage.jpg" and the other uses "*PropertyReport.pdf", as you can see they are both registered in the web config file with a wild card so that any paths ending with one of those two file names should be handled, however, only the .jpg handler is working, no matter what path I enter, as long as it ends with PropertyImage.jpg it is correctly handled. The pdf handler on the other hand always returns this from DNN...
Domain Name localhost/PropertyReport.pdf Does Not Exist In The Database

Regardless of where you bury it in the path...
Domain Name localhost/reports/property/PropertyReport.pdf Does Not Exist In The Database

I have come up with a workaround that seems to work but it doesn't look very good from a client perspective, I changed that file extension from pdf to axd (jpg worked too but didn't look very good requesting a jpg and getting back a pdf!) in the web config registration and obviously associated links in the module. The handler springs back into action and serves up the pdf document once more. I'd rather not have had to have done this but for now it seemed like this was the only way I could get it to work. Maybe the URLRewriteModule should check registered handlers to see if there is a handler for the requested resource prior to it applying its other rules?

Regards,
Rob


 
New Post
1/28/2011 2:09 PM
 
Rob,

The .jpg extension as well as .axd is specifically excluded from proceessing by the UrlRewriteModule so that's the difference between the working and non-working handler.

Would you be able to try adding either a portalid or tabid key (and appropriate value) to the querystring when creating the link used to send a request to the pdf handler (registered in web.config to use PropertyReport.pdf rather than PropertyReport.axd)?

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
1/29/2011 10:08 AM
 
William Severance wrote:
Rob,

The .jpg extension as well as .axd is specifically excluded from proceessing by the UrlRewriteModule so that's the difference between the working and non-working handler.

Would you be able to try adding either a portalid or tabid key (and appropriate value) to the querystring when creating the link used to send a request to the pdf handler (registered in web.config to use PropertyReport.pdf rather than PropertyReport.axd)?

William,
I thought that would be the reason for the difference between the two, as the pdf handler would work for any image file extension.

I tried your suggestion of adding the portalid and tabid's to the query string...
http://localhost/dnn/PropertyReport.p... threw an object not set... from the URLRewriteModule.
http://localhost/dnn/PropertyReport.p... gave the domain name not in db error.
http://localhost/dnn/portalid/0/Prope... gave the domain name not in db error.
http://localhost/dnn/tabid/61/Propert...?p=3&l=en-GB loads the DNN page.

I have found that adding localhost/dnn/propertyreport.pdf as an alias for the portal brings the handler back into life but that would mean that I would need to add an alias for each of my portals aliases with propertyreport.pdf at the end of it. Now the site where this particular module is currently used only has three aliases for different domain names but if I wanted to use the above method for this handler that would increase to 6, I'm not going to go on as I'm sure you get the picture.

If the URLRewriteModule has exclusions for particular file extensions surely it could check the web.config for paths to be excluded too?


Rob


 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...HttpHandlerHttpHandler


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out