Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/19/2009 6:03 AM |
|
When I ask what is returned, I am also implying you put this in a new browser window:- --put your site portal alias here--/DesktopModules/SimpleGallery/ImageHandler.ashx?width=200&height=100&HomeDirectory=%2FPortals%2F1%2FGallery%2FAlbum%2F1&fileName=JCL-ProdShot-0.jpg&portalid=1&i=1&q=1 |
|
Scott McCulloch Site Administrator |
|
|
Rob Woz Registered Users
 Ventrian Super Newbie Posts:18

 |
| 6/19/2009 6:51 AM |
|
Results from putting that into a new browser window are that the home page is returned. Yes, I agree that it 'feels' like a permissions thing. And [smiling] Ha!... Yes, I know this module functions well all over the world. It and your other modules are among the best there is for DNN. Your work is without doubt, excellent. But errm... I dunno. It's very exhasperating. |
|
After months of testing and many long discussions with the vendors over pricing, I've reached the conclusion that HelloWorld is an over-rated product. I think we should replace it with GoodnightVienna. |
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/19/2009 6:54 AM |
|
| You got redirected to the homepage? Hmm, do you have rewriting rules in your portal, e.g. are you using a 3rd party rewriter? |
|
Scott McCulloch Site Administrator |
|
|
Rob Woz Registered Users
 Ventrian Super Newbie Posts:18

 |
| 6/19/2009 7:00 AM |
|
| No. Nothing like that. This is a clean install and this will be the only portal on it. |
|
After months of testing and many long discussions with the vendors over pricing, I've reached the conclusion that HelloWorld is an over-rated product. I think we should replace it with GoodnightVienna. |
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/19/2009 7:02 AM |
|
There is nothing in the handler that redirects. This could only happen if something was intercepting the request, e.g. a rewriting rule or maybe a customErrors entry in web.config. |
|
Scott McCulloch Site Administrator |
|
|
Rob Woz Registered Users
 Ventrian Super Newbie Posts:18

 |
| 6/19/2009 7:10 AM |
|
I've removed the old version of SG and replaced it with v2.4.14. If it's all broke, I might as well have the new one. I've mentioned this next bit before but I think it might be a big clue. On adding a gallery to the page - the 'untitled gallery' is showing naturally, but the image on the front is a broken image link to placeholder-600.jpg So all this thinking about adding images to the gallery is a red herring. It's already broke as soon as I put it on the page. That's a clue right? I mean... if this were a murder scene, that would be a smoking gun would it not? |
|
After months of testing and many long discussions with the vendors over pricing, I've reached the conclusion that HelloWorld is an over-rated product. I think we should replace it with GoodnightVienna. |
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/19/2009 7:19 AM |
|
The image handlers are the issue, redirecting to the home page is causing the handlers to be broken. If I setup a new install locally and install simple gallery working, so I'm not sure what is wrong in your environment. |
|
Scott McCulloch Site Administrator |
|
|
Rob Woz Registered Users
 Ventrian Super Newbie Posts:18

 |
| 6/19/2009 7:22 AM |
|
Your code uses Server.MapPath to turn a relative path into a physical path. I wonder if IIS is giving a path based on some factor not yet thought of. This is II5 and the root folder of the DNN installation is the Default website for the machine (DEV3). |
|
After months of testing and many long discussions with the vendors over pricing, I've reached the conclusion that HelloWorld is an over-rated product. I think we should replace it with GoodnightVienna. |
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/19/2009 7:23 AM |
|
| Yes, but wouldn't it throw an error instead of redirecting? |
|
Scott McCulloch Site Administrator |
|
|
Rob Woz Registered Users
 Ventrian Super Newbie Posts:18

 |
| 6/19/2009 7:23 AM |
|
| I meant DEV2, but no matter. |
|
After months of testing and many long discussions with the vendors over pricing, I've reached the conclusion that HelloWorld is an over-rated product. I think we should replace it with GoodnightVienna. |
|
|
Rob Woz Registered Users
 Ventrian Super Newbie Posts:18

 |
| 6/19/2009 7:43 AM |
|
Yes you're right of course. But my money is on IIS. I reckon it's killed the vicar, passed the gun to a very surprised SG module and then run off into the garden. I'm off to check up on IIS and ashx. The only thing is that this IIS has been on this machine since before the old king died so-to-speak, so why now. This is a ripple effect from a small change made to some unrelated thing and your module was in the way, got too close... like Bruce Willis... it was the wrong module... in the wrong place... at the wrong time. Thanks for your replies Scott. I'll post if I solve the problem. My coffee machine broke yesterday too. So, this week is now officially a wash-out. Rob |
|
After months of testing and many long discussions with the vendors over pricing, I've reached the conclusion that HelloWorld is an over-rated product. I think we should replace it with GoodnightVienna. |
|
|
Rob Woz Registered Users
 Ventrian Super Newbie Posts:18

 |
| 6/19/2009 8:58 AM |
|
IIS is in the clear I think. DNN seems to be redirecting the request. See...
http://dev2/DesktopModules/SimpleGallery/HelloWorld.ashx Result: Redirect to home page
http://dev2/DesktopModules/HelloWorld.ashx Result: Redirect to home page
http://dev2/HelloWorld.ashx Result: 'Hello World'
http://dev2/Portals/1/HelloWorld.ashx Result: 'Hello World'
Why is DNN redirecting the request away from the DesktopModules folder? How? where's the setting?
Rob
|
|
After months of testing and many long discussions with the vendors over pricing, I've reached the conclusion that HelloWorld is an over-rated product. I think we should replace it with GoodnightVienna. |
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/21/2009 6:58 AM |
|
| Hmm, that is strange - I think if you sort out the redirect, you should be able to work out what is going on. Do you have customErrors turned on in web.config? |
|
Scott McCulloch Site Administrator |
|
|
Rob Woz Registered Users
 Ventrian Super Newbie Posts:18

 |
| 6/21/2009 11:45 PM |
|
Mystery Solved! It seems that DNN has some code which takes it upon itself to redirect the page. If you examine the code, you'll see it's intended to be helpful, but under certain circumstances it carries out a redirect when it should not. It will exhibit this behaviour if you've either set your home page to redirect to another page (not sure why you'd want to do that but never mind), OR, as I have found - If you leave your home page undefined in site settings. In my case I had told DNN which page is the home page, but I'd then redesigned the menu structure and DNN saw that I'd demoted that page to a sub-menu, so it assumed it was no longer the home page. So the home page became undefined in site settings. Anyway, that's an aside. The SimpleGallery module is NOT at fault but is in fact a victim of this bug in DNN, and so the original title of this topic is not correct. I'll post that last statement to the top of this topic if I can to save anyone looking at it some time. Basically this is how to recreate the problem. Pop a SG module on any page that is not the first top level page, and then leave your home page undefined in site settings. The chap who's post (on the DNN community forums) solved my problem is below. He has raised it as a bug. He points out that the behaviour is connected with redirecting your home page. He didn't know it is also caused if you leave the home page undefined. http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/160/threadid/302456/scope/posts/threadpage/1/Default.aspx I'd also like to point out that although the above post contained the answer... the answer is useless unless you know the question. Thank you very much Scott for giving your time to this thread and helping to eliminate all other factors. You were extreamly helpful indeed. Thank you. Regards Rob |
|
After months of testing and many long discussions with the vendors over pricing, I've reached the conclusion that HelloWorld is an over-rated product. I think we should replace it with GoodnightVienna. |
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/22/2009 8:49 AM |
|
| Great! Glad you got it working |
|
Scott McCulloch Site Administrator |
|
|