Answered by:
Windows Server 2003 IIS 6.0 doesn't like the Streamed transferMode request

Question
-
Hi,
One of the test environement is keep on failing when we make a WCF request with "Streamed" transferMode. When I test with default "buffered" transferMode then its working fine.
Our Server : Windows 2003 SP1
IIS version: 6.0
I've enabled the trace on both ends. When I looked into the server trace logs, the Activity is showing as empty like below. Its not even reading the request.
IIS emits : 401 Status
date time ==> 2012-04-04 21:58:05
s-sitename ==> W3SVC28
s-ip ==> 10.XXX.XXX.201
cs-method ==> GET
cs-uri-stem ==> /Rejected-By-UrlScan
cs-uri-query ==> ~/NoNameservices.svc
s-port ==> 443
cs-username ==> -
c-ip ==> 10.XXX.XXX.254
cs(User-Agent) ==> -
sc-status ==> 401
sc-substatus ==> 4
sc-win32-status ==> 0I believe some IIS settings only casue this error, but I am not able to figure it out which settings cause this issue. Could anyone help me out on this issue.
- Edited by Developer09 Thursday, April 5, 2012 4:23 PM
Wednesday, April 4, 2012 7:09 PM
Answers
-
Hi Richey Wu,
Thanks for your time.
I've figured out that issue. The problem is URLScan 3.1 security tool rejects the "Streamed" incoming request on my web server. I've done some modifications in the urlscan.ini file in the web server to accept the "Streamed" incoming request. Then its started working.
Thanks
- Proposed as answer by Dragan RadovacBanned Tuesday, April 10, 2012 6:18 PM
- Marked as answer by Yi-Lun Luo Wednesday, April 11, 2012 9:40 AM
Tuesday, April 10, 2012 5:42 PM
All replies
-
Hi,
If the server can’t receive the request you should check your service contract first. When you use the stream transfer at least one of the types of the parameter and return type must be either Stream, Message or IXmlSerializable. Then you can set the tanserferMode with “Streamed”. And you can also set the maxReceiveMessageSize and the maxRequestSize property. The better way is you can post some code about the service contract and the configuration.
You can refer to the below link about how to enable streaming.
http://msdn.microsoft.com/en-us/library/ms789010.aspx
Here is an example about how to use the WCF Streaming.
http://kjellsj.blogspot.com/2007/02/wcf-streaming-upload-files-over-http.html
- Proposed as answer by Dragan RadovacBanned Monday, April 9, 2012 6:56 AM
- Unproposed as answer by Dragan RadovacBanned Tuesday, April 10, 2012 6:18 PM
Monday, April 9, 2012 4:01 AM -
Hi Richey Wu,
Thanks for your time.
I've figured out that issue. The problem is URLScan 3.1 security tool rejects the "Streamed" incoming request on my web server. I've done some modifications in the urlscan.ini file in the web server to accept the "Streamed" incoming request. Then its started working.
Thanks
- Proposed as answer by Dragan RadovacBanned Tuesday, April 10, 2012 6:18 PM
- Marked as answer by Yi-Lun Luo Wednesday, April 11, 2012 9:40 AM
Tuesday, April 10, 2012 5:42 PM