Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / August 2005

Tip: Looking for answers? Try searching our database.

like to see somebody explain this one.. unlucky byte-sizes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim_Mac - 08 Aug 2005 13:29 GMT
hi,
i have a winforms app sending dime attachments to a WSE 2.0 web
service.  it reads a set chunksize of bytes of a file into a memory
stream > into the dime attachment > send to the web service.
the web service then reads the stream and appends the bytes to the
file.  it's a large file upload solution.
BUT... when the size of the bytes sent in the dime attachement is
between 48000 and 60000, it fails every time with HTTP status 400 bad
request.
if i go above or below those limits, by a lot or a little, it works
perfectly, every time.
i came across this by chance when i was experimenting the efficiency of
the algorithm with different size of chunks sent each time.

what the?!!

if anyone wants to see the source code i can send them the VS solution.

tim.
p.s. my maxRequestLength in httpruntime (machine.config) is 256000, as
is the microsoft.web.services2 > messaging > maxRequestLength value in
web.config.
[MSFT] - 09 Aug 2005 03:00 GMT
Hello Tim,

It is really a weird problem. Can you post your code here or send me by
email (please remove "online." from my email address). I will test it to
see if I can reproduce it.

Thanks,

Luke
[MSFT] - 09 Aug 2005 11:57 GMT
Hello Tim,

Your code looks perfect and it works well on my server. Have you tested
your code on other computer? It may be server-specified issue, for example,
is there any firewall/proxy on the server?

Luke
Tim_Mac - 09 Aug 2005 17:27 GMT
hi Luke,
thanks for testing it out.  i tried it on a production server (win 2003
enterprise) and it worked fine.  on my XP Pro box, which is causing the
problems, i tried turning off my anti virus (AVG) and Windows Firewall
on the network connection (although i'm browsing localhost anyway) just
to see if that could unearth anything, but there was no change in
behaviour.
i guess i don't mind as long as it works reliably on IIS 6 which is the
only platform i use for production applications anyway.

it's mighty strange, and hard to pin down because it's an IIS error and
there's nothing i can debug my app about.  i have run IIS lockdown on
this box, but that wouldn't be an obvious explanation.

thanks for your help anyway.  i'm happy enough to let it go unless
anyone has further ideas for why this might be happening.  

tim.
[MSFT] - 10 Aug 2005 03:39 GMT
Hell Tim,

If you need further investment on this issue, I suggest you may perform a
network capture to monitor the data transfer between client and server. You
may begin with this article:

http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q247249

Luke

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.