Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

UWS different result from IIS
Jasoncar
#1 Posted : Wednesday, May 22, 2013 1:22:19 AM(UTC)
Groups: Member
Joined: 5/22/2013(UTC)
Posts: 3
Location: Redmond

I am using both IIS and UWS (CLR 4+). In my app I must use the webbrowser to get an image of a webpage. In IIS the HTML loads correctly all the page looks normal, with UWS the scripts does not seem to run and the webpage does not look the same. Why would this be different?

Jasoncar attached the following image(s):
Jasoncar attached the following image(s): UWS.jpg
Jasoncar attached the following image(s): IIS.jpg
Ultidev Team
#2 Posted : Wednesday, May 22, 2013 9:49:58 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi,

We can't think of anything that would lead to this discrepancy. Could you please run Fiddler to see the difference in responses for the mangled picture? If it's possible to attach the project to your response for us to test, we'd be happy to assist.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Jasoncar
#3 Posted : Wednesday, May 22, 2013 5:50:29 PM(UTC)
Groups: Member
Joined: 5/22/2013(UTC)
Posts: 3
Location: Redmond

I created a quick sample project.
File Attachment(s):
UWS Image Test.zip (768kb) downloaded 81 time(s).
Ultidev Team
#4 Posted : Thursday, May 23, 2013 11:28:58 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi,

The project you have provided does not build as it has multiple 3rd party components referenced but not included. Could you please provide a project that can be built out of the box, or include all components as NuGet packages?

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Jasoncar
#5 Posted : Friday, May 24, 2013 10:44:11 AM(UTC)
Groups: Member
Joined: 5/22/2013(UTC)
Posts: 3
Location: Redmond

Sorry, I was unable to upload the project with the NuGet packages due to size limitations on your attachments. You can right click on the solution and select NeGet restore and it will fix the NuGet packages.
Ultidev Team
#6 Posted : Monday, May 27, 2013 2:02:55 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi,

Thank you for additional information. We were able to build the project investigated the problem. Here's what we have found.

- We were unable to see distorted version under UWS - see first attachment. It worked same as under IIS/WebDev.
- An attempt to open the ".mhtml" file directly from file system by double-clicking produces distorted version (see 2nd screenshot), until "Allow blocked content" button is clicked (3rd screenshot).

We have tried different settings in UWS for the application, and we were unable to make it produce corrupted image.

Please let us know if this information was helpful.

Best regards,
UltiDev Team.
File Attachment(s):
mHtml Thumb Memstream in UWS 1.png (587kb) downloaded 76 time(s).
mHtml Thumb Memstream in UWS 2.png (716kb) downloaded 69 time(s).
mHtml Thumb Memstream in UWS 3.png (480kb) downloaded 71 time(s).
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#7 Posted : Monday, May 27, 2013 3:00:23 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Thank you. Maybe it is a Windows 8 thing, I will try will Windows 7 or Server. As you can see from my images I continue to get a different result. Even in your images you can see that image 3 is different than image 1. It is interesting that IE pops this warning since there is no ActiveX control. What OS are you using? What version of IE is on your machine? I have Win8 and IE10.
Ultidev Team
#8 Posted : Monday, May 27, 2013 3:01:46 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi,

Same here, Windows 8 and IE10.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#9 Posted : Monday, May 27, 2013 5:36:38 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Interesting, If I start from UWS Explorer I get the correct result.
Ultidev Team
#10 Posted : Monday, May 27, 2013 7:39:56 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

Could you please clarify what does starting form UWS is, and how what do you do to get different result?

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#11 Posted : Monday, May 27, 2013 8:55:25 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

If I just run UWS.InteractiveServer.Clr4AnyCPU.exe as admin and specify my physical dir, I get the incorrect image. If I start the WS from UWS Explorer (Web Application Manager) I get the correct image. Both are pointing to the same physical dir.
Ultidev Team
#12 Posted : Tuesday, May 28, 2013 10:09:48 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

Thank you for the clarification - it was an important step. Unfortunately, we can't even get what you see - a broken image as we don't reach the breakpoint at the top of GetImage() with an exception in .NET Framework. We will investigate, but you can work around by using WebDev server ad development time, UWS in production.

Thank you,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#13 Posted : Friday, March 30, 2018 9:51:02 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Rss Feed  Atom Feed
Users browsing this topic
Guest (7)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.