|
FOROS PROFESIONALES WINDEV, WEBDEV y WINDEV Mobile |
| | | | | |
| Apache - IIS - different results |
| Iniciado por guest, 11,may. 2016 06:47 - 5 respuestas |
| |
| | | |
|
| |
| Publicado el 11,mayo 2016 - 06:47 |
Hello All
I have come up against a difficult issue.
This is WebDev 19. Dev env. is using Apache 2.2 Prod is using IIS 7.5 on Window 2008 R2
This *may* be a Windows issue with some patch - but I can't really find any clues.
I have a "list" populated with person information and including a photo (image). When the person is selected - the details are copied to the main part of the page.
This works perfectly in the Dev env (Windows 10 client running local Apache server / and Windows 2008 R2 Server for HFSQL).
Also - I am pretty certain that this *was* working on Prod with IIS but I cannot be 100% certain as this code has not yet been released - there is a possibility that it could be an old issue that was missed.
The list is populated using a Looper control and LooperAddLine code.
When selected (clicked) - the server code assigns the the looper line attributes to the display area (i.e. name, details, and image/photo).
Now - when run on the production server - as soon as the image assignment line is reached - my session just disappears. I get no error condition - only that the next line says that the session was exited normally.
The code involved is simply : IMG_CONTACT_SELECTED = gsImagefile
I have tried many variations - changed the image attributes - checked all server permissions - but I am still clueless as to what is really going on.
I doubt it is a resource problem - as everything else just hums along fine. It simply bombs out when I assign the image value to the image control.
I am really hoping that I have just done something really stupid here that someone can point out - or give a clue as to how to debug this ...
Anyone got any clues? Windows OS? IIS? WebDev?
Thanks for any suggestions ..
Regards Derek |
| |
| |
| | | |
|
| | |
| |
| Publicado el 11,mayo 2016 - 08:08 |
Hi Derek,
What debugging method do you use to find that this particular line of code is actually the last one executed? What do you mean exactly by the session disappears? What happens on screen? Did you check any OnTestMode() code that might interfere? You may try reinstalling the site with a physical media setup package directly on the server. (Optionally delete all resources manually first)
Best regards, Piet |
| |
| |
| | | |
|
| | |
| |
| Publicado el 11,mayo 2016 - 14:33 |
Hi Derek,
Quote DerekM
IMG_CONTACT_SELECTED = gsImagefile
Your code seems to imply that gsImageFile contains a pth, and that the image is on disk, outside the DB.
Is that the case? If yes, WHERE are the images?
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 11,mayo 2016 - 15:16 |
Hi Piet and Fabrice
Thank you for your constructive suggestions
Debugging the old-fashion way with info() lines. The assignment line is the last line that gets executed..
What happens on screen? Nothing happens on screen. The information (sans the image) is displayed. I can see from the WebDev application monitor that the session has just "disappeared" - it just is not there anymore - and if I click anything on the web page - it informs me that there is no session and that it has exited "normally". (Also - there is no application exit code anywhere.)
The only OnTestMode() code is in the connection routines.
I used 2 different routines for the image. Both work in my dev env (Apache). (1) Simply assign the image retrieved and displayed in the Looper and (2) Read the information again - i.e. gsImagefile = fWebDir() + "\" + gnPatid + ".jpg" HReadSeekFirst(PATIENT,PATIENTID,gnPatid,hKeepFilter) IF HFound(PATIENT) THEN res = HExtractMemo(PATIENT,PHOTO,gsImagefile)
The site has been wiped and re-installed a number of times. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 11,mayo 2016 - 16:12 |
Hi again
maybe you are just missing a dll on the prod server, one in charge of managing the images?
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,mayo 2016 - 12:40 |
Hi
It might be the file access right issue in your Win2008 server for domain user(s) and so does file mapped drives, pls chk your IIS user's authetication to see if it helps.
Couldn't think of anything but the security issue on windows server?
HTH
Cheers
King |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|