Images not shown, Winserver STD 2008 (not R2)

0
0

Howdy,

On this machine, images just don’t display, where should I start looking?
I have ALL options of IIS inslalled, as so static content.

Thanks in advanced,

  • You must to post comments
0
0

Hi Jorge,

I’m sorry for this delayed response, the error you’re getting could be a windows related issue, and there’s a simple way to check it out.

You can simply load the Image and save to file using the png format on the server in a .NET app and see if it works. When using the Image property Wisej has to load the image to MemoryStream as png and convert to base64.

And there’s another thing that you can also try, try to use the ImageSource properties instead of ‘Image’, that way the server does nothing and would only serve the file,  an example of that would be Control.ImageSource = “Images/image1.png”, and don’t forget to also deploy the images too!

HTH,

Alaa

  • You must to post comments
0
0

If the websocket connection fails it automatically reverts to http mode. Images don’t come through websocket anyway.  From your test app that we published here (http://uitest-2-2-48-images.somee.com/) where it works without issues (it has the websocket connection error too, which is correct since the hosting provider has it disabled) I can see that the image is the Image of the PictureBox. When you look at the browser in dev tools select the missing image and you will find something like this:

component.wx?sid=41ab8719-ed18-e76e-617b-905c7b34cc2f&x=ewAiAGkAZAAiADoAIgBpAGQAXwA2ACIALAAiAHYAZQByAHMAaQBvAG4AIgA6ACIAMAA4AEQAQQAwAEMARgBEADYAMQA3ADIANQBDAEQARAAiACwAIgBkAGkAcwBwAG8AcwBlACIAOgBmAGEAbABzAGUALAAiAG4AYQBtAGUAIgA6ACIASQBtAGEAZwBlACIAfQA=

Right click on it and select Open  in new Tab. In dev tools you can see why the image link is broken in your installation. If you provide a link that shows the broken image we can look too.

Attachment
  • You must to post comments
0
0

Hi Jorge

Complementing what done Alaa, Im done the nexts steps to verify the problem

Im done a local publis from visual studio for your solution
For the output folder, I done a local IIS Application and works OK
After, the same files on the outputfolder, I uploaded on a server web hosting and also working OK

Here you can check your test app published Test-Wisej-App

All this indicate us that the problem is not a Wisej issue
Regards

 

  • You must to post comments
0
0

Hi Jorge,

Would you be able to check if you indeed have all the resource folders correctly deployed in your application?
Make sure that everything that is not a DLL is located directly into the ROOT of your application folder rather than having it inside the bin folder.

HTH,
Alaa

//

  • Alaa (ITG)
    Do you have any errors in the browser console? If yes, can you please attach a screenshot?
  • Jorge Bastos
    Hi, Well, I have one, could it be this? what is missing? Could it be because IIS doesn’t have websocket, due to being win2008std (not R2), is it? If yes, is there a way to make it work? Firefox can’t establish a connection to the server at ws://bvXXXXXXXXXXXXXX.XXXX/xxx/app.wx?url=http://bvXXXXXXXXXXXXXX.XXXX/xxx/&sid=830d5b27-c16f-d130-a9b1-3c4bdedb59.
  • Alaa (ITG)
    That is probably the cause of the issue, you can either disable web socket by adding “enableWebSocket” : false in your Default.json file, or you can enable WebSocket in IIS through the Add Roles and Features Wizard, you can do so In the Roles pane, under Web Server > Application Development, select WebSocket Protocol and then install it. Let me know if either fixes the issue
  • Jorge Bastos
    Hi, disabled websocket like you said in default.json, but wisej seems to perform it anyway. Since this is a win2008, IIS doesn’t have websocket, so no need to remove it from IIS or so. Anyway, I have this on the browser information, it just says can’t load image, Can it be because the images are PNG? i need them to be PNG because of transparency, 001857 Wisej: WebSocket Request 2 qx.js:174765:25 001858 Wisej: WebSocket Connect ws://domain.pt/xxx/app.wx?url=http://domain.pt/xxx/&sid=b68c0472-5c3e-8948-08b3-967902edb47d qx.js:174765:25 001859 Wisej: WebSocket Waiting for readyState = 1 qx.js:174765:25 Firefox can’t establish a connection to the server at ws://domain.pt/xxx/app.wx?url=http://domain.pt/xxx/&sid=b68c0472-5c3e-8948-08b3-967902edb47d. wisej.js:67329:9 002444 Wisej: WebSocket Error qx.js:174765:25 002445 Wisej: HTTP Request 2 qx.js:174765:25 002445 Wisej: HTTP Connect app.wx?_sc=1649541076724&sid=b68c0472-5c3e-8948-08b3-967902edb47d qx.js:174765:25 002447 Wisej: WebSocket Closed qx.js:174765:25 002513 qx.ui.basic.Image[58-0]: Image could not be loaded: component.wx?sid=b68c0472-5c3e-8948-08b3-967902edb47d&x=ewAiAGkAZAAiADoAIgBpAGQAXwAyACIALAAiAHYAZQByAHMAaQBvAG4AIgA6ACIAMAA4AEQAQQAxAEEANwBCADQARgAyADcARQAyADYAMAAiACwAIgBkAGkAcwBwAG8AcwBlACIAOgBmAGEAbABzAGUALAAiAG4AYQBtAGUAIgA6ACIASQBjAG8AbgAiAH0A 2 qx.js:174765:25 002514 qx.ui.basic.Image[58-0]: Image could not be loaded: component.wx?sid=b68c0472-5c3e-8948-08b3-967902edb47d&x=ewAiAGkAZAAiADoAIgBpAGQAXwAyACIALAAiAHYAZQByAHMAaQBvAG4AIgA6ACIAMAA4AEQAQQAxAEEANwBCADQARgAyADcARQAyADYAMAAiACwAIgBkAGkAcwBwAG8AcwBlACIAOgBmAGEAbABzAGUALAAiAG4AYQBtAGUAIgA6ACIASQBjAG8AbgAiAH0A
  • Jorge Bastos
    Hi, You havent answer again, but i think the problem is win2008 it self, that for some reason doesn’t support png’s, that are the images that are not displaying. Does it make sense? It there an workarround for it?
0
0

were you able to have a clue why the images don’t show on this particular case?

  • You must to post comments
0
0

Hi,

Wisej 2.2x
yes, run’s ok on dev and other server

It’s something that i’m missing on this instalation, not sure what, i have all options from IIS installed.
What could it be?

here’s the sample project, and image on how it ‘s displayed

Attachment
  • You must to post comments
0
0

Hi Jorge
Please, could you provide us with more details about the issue
ie
– wisej version
– the app run ok in other test machine?
– other wisej app works ok in the problem machine?
– send us a small test wisej app that also works wrong on the problem machine

thanks and regards

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.