Thread: ISAPI on IIS 10 SendFile problem
|
Replies:
14
-
Last Post:
Jan 9, 2018 10:39 PM
Last Post By: Alexandre Machado
|
Threads:
[
Previous
|
Next
]
|
|
Posts:
15
Registered:
7/13/00
|
|
Hello,
we have problem with IIS10 (W2016 server) and ISAPI made in IW14.x.x. When we try to download large (400MB) file using WebApplication.SendFile, download hangs after approx. 32 mb.
The same application has no problem under IIS 7 and 7.5. Content limits on IIS are 1GB.
Has someone any ideas, where is problem?
Thanks
Zdenek
|
|
|
Posts:
889
Registered:
11/9/03
|
|
Hello,
we have problem with IIS10 (W2016 server) and ISAPI made in IW14.x.x. When we try to download large (400MB) file using WebApplication.SendFile, download hangs after approx. 32 mb.
The same application has no problem under IIS 7 and 7.5. Content limits on IIS are 1GB.
Has someone any ideas, where is problem?
Which exact version are you using? I seem to recall some fixes to file download in a recent version but I can't easily scan the version info at this time.
If you are not using the current version (14.2.3), please update and give it a try. Also, please let us know which IW version and which Delphi version you are using.
Dan
|
|
|
|
Posts:
15
Registered:
7/13/00
|
|
Which exact version are you using? I seem to recall some fixes to file download in a recent version but I can't easily scan the version info at this time.
If you are not using the current version (14.2.3), please update and give it a try. Also, please let us know which IW version and which Delphi version you are using.
I'm using 14.2.3 with Delphi XE7. I check 14.0.59 and same result. All 32bit.
|
|
|
|
Posts:
889
Registered:
11/9/03
|
|
Which exact version are you using? I seem to recall some fixes to file download in a recent version but I can't easily scan the version info at this time.
If you are not using the current version (14.2.3), please update and give it a try. Also, please let us know which IW version and which Delphi version you are using.
I'm using 14.2.3 with Delphi XE7. I check 14.0.59 and same result. All 32bit.
Thanks. I'm certain someone who has done more file download will respond before long, the first thing they would ask is the version you are on so this info gives them a head start.
Thanks
Dan
|
|
|
|
Posts:
15
Registered:
7/13/00
|
|
If I create simple dll with one button with OnClik event like this:
WebApplication.SendFile('c:\......CD1.zip ',false,'application/octet-stream');
App is not working.
|
|
|
|
Posts:
1,754
Registered:
8/10/13
|
|
Hi,
we did extensive testing on IIS 10 and I have just tested a big (500 Mb) file download on IIS 10 and it works as expected. No errors or issues.
Besides that, the fact that the same DLL works flawlessly in another server suggests that the the problem is probably on this particular IIS setup, no?
What exactly are you experiencing? Does the connection breaks and your file is partially downloaded?
|
|
|
|
Posts:
15
Registered:
7/13/00
|
|
Hi,
we did extensive testing on IIS 10 and I have just tested a big (500 Mb) file download on IIS 10 and it works as expected. No errors or issues.
Besides that, the fact that the same DLL works flawlessly in another server suggests that the the problem is probably on this particular IIS setup, no?
This dll works on w2008, windows7 with iis, but not on this w2016 iis10. This is only one differrence i have found. All other config looks same. Firewall, UTM etc.
What exactly are you experiencing? Does the connection breaks and your file is partially downloaded?
Connection breaks, file is partially donwloaded. w3wp process with dll hang in ram. Must be killed manually. If I place file as static file on same web, download work ok.
|
|
|
|
Posts:
15
Registered:
7/13/00
|
|
Now I test on w2012r2 and dll works ok.
|
|
|
|
Posts:
15
Registered:
7/13/00
|
|
I have done lot of investigation and confirm it's not intraweb problem. Plain isapi dll has the same problems. I found it never happens to nonsecure connection. Only with ssl and on w2016 in our virtual machines. On local network it's not so frequent and over wan it always happen.
Thank
Zdenek
|
|
|
|
Posts:
1,754
Registered:
8/10/13
|
|
I have done lot of investigation and confirm it's not intraweb problem. Plain isapi dll has the same problems. I found it never happens to nonsecure connection. Only with ssl and on w2016 in our virtual machines. On local network it's not so frequent and over wan it always happen.
Thank
Zdenek
Hum... so in your case it only happens using HTTPS on WAN, right? Can you confirm that? This is an important piece of information in order to narrow it down....
|
|
|
|
Posts:
15
Registered:
7/13/00
|
|
I have done lot of investigation and confirm it's not intraweb problem. Plain isapi dll has the same problems. I found it never happens to nonsecure connection. Only with ssl and on w2016 in our virtual machines. On local network it's not so frequent and over wan it always happen.
Thank
Zdenek
Hum... so in your case it only happens using HTTPS on WAN, right? Can you confirm that? This is an important piece of information in order to narrow it down....
Yes. I have solved problem by uninstaling latest "nonofficial" update KB4052231. KB4041688 is ok.
|
|
|
|
Posts:
15
Registered:
7/13/00
|
|
I have done lot of investigation and confirm it's not intraweb problem. Plain isapi dll has the same problems. I found it never happens to nonsecure connection. Only with ssl and on w2016 in our virtual machines. On local network it's not so frequent and over wan it always happen.
Thank
Zdenek
Hum... so in your case it only happens using HTTPS on WAN, right? Can you confirm that? This is an important piece of information in order to narrow it down....
Yes. I have solved problem by uninstaling latest "nonofficial" update KB4052231. KB4041688 is ok.
I have problem with SendFile again. Probably after windows 2016 update from 5.1.2018, but not sure. I'm not able to download large file using intraweb SendFile or WebBroker WebModule Response.ContentStream. Download hangs after cca 50 MB. I can download the same file as static file, so I think it's not related to firewall etc.
Both code is verz simple:
procedure TIWForm1.IWButton1Click(Sender: TObject);
begin
WebApplication.SendFile('c:\pom\CD1.zip',false,'application/x-zip-compressed');
end;
or
procedure TWebModule1.WebModule1DefaultHandlerAction(Sender: TObject; Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
begin
Response.ContentStream:=TFileStream.Create('c:\pom\cd1.zip',fmOpenRead);
Response.ContentType:='application/x-zip-compressed';
end;
Does anyone have any ideas?
Thanks a lot
Zdenek
|
|
|
|
Posts:
1,754
Registered:
8/10/13
|
|
I have done lot of investigation and confirm it's not intraweb problem. Plain isapi dll has the same problems. I found it never happens to nonsecure connection. Only with ssl and on w2016 in our virtual machines. On local network it's not so frequent and over wan it always happen.
Thank
Zdenek
Hum... so in your case it only happens using HTTPS on WAN, right? Can you confirm that? This is an important piece of information in order to narrow it down....
Yes. I have solved problem by uninstaling latest "nonofficial" update KB4052231. KB4041688 is ok.
I have problem with SendFile again. Probably after windows 2016 update from 5.1.2018, but not sure. I'm not able to download large file using intraweb SendFile or WebBroker WebModule Response.ContentStream. Download hangs after cca 50 MB. I can download the same file as static file, so I think it's not related to firewall etc.
Both code is verz simple:
procedure TIWForm1.IWButton1Click(Sender: TObject);
begin
WebApplication.SendFile('c:\pom\CD1.zip',false,'application/x-zip-compressed');
end;
or
procedure TWebModule1.WebModule1DefaultHandlerAction(Sender: TObject; Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
begin
Response.ContentStream:=TFileStream.Create('c:\pom\cd1.zip',fmOpenRead);
Response.ContentType:='application/x-zip-compressed';
end;
Does anyone have any ideas?
Thanks a lot
Zdenek
You mentioned WebBroker as well? So it is definitely a IIS/Windows issue...
|
|
|
|
Posts:
15
Registered:
7/13/00
|
|
deleted
Edited by: Zdenek Vasku on Jan 8, 2018 10:38 AM
|
|
|
|
Posts:
15
Registered:
7/13/00
|
|
deleted
Edited by: Zdenek Vasku on Jan 8, 2018 10:38 AM
|
|
|
|
Legend
|
|
Helpful Answer
(5 pts)
|
|
Correct Answer
(10 pts)
|
|
Connect with Us