473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

WebRequest problem ("200,38")

Hello,

I'm running an ASP.NET client app which requests a jpg image from the
server location. This image file is constantly updated by another app
at the same server machine - update frequency varies between 200-500
msecs.
The problem: the response the client gets is always "200", aka "OK",
but, when I look into the W3SVC1 logfile, there exist regularly the
following condition: "200,38" instead of the wanted "200,0" state.
Looking up the IIS logging syntax, the "38" next to the "200" code
means that this is a 'Reached hte end of file' / ERROR_HANDLE_EOF
case. I suspect that those are the occasions that the file was in a
locked state by the updating app.
It is noticeable at the client: the image viewing sometimes misses a
scene.
How can I access this '38' error code (called WINNT Status Code in the
IIS manual) so that I can handle this situation - or does somebody
have another suggestion?

Thanks,
victor.
Jan 3 '06 #1
2 1623
currently you are using IIS's default file handling. you can tke over by
supplying an isapi filter or handler. you could also remap images to asp.net
and write a .net module to handle it. though the performance of a .net
module is much lower than the other options.

-- bruce (sqlwork.com)
<victor> wrote in message news:b6********************************@4ax.com...
Hello,

I'm running an ASP.NET client app which requests a jpg image from the
server location. This image file is constantly updated by another app
at the same server machine - update frequency varies between 200-500
msecs.
The problem: the response the client gets is always "200", aka "OK",
but, when I look into the W3SVC1 logfile, there exist regularly the
following condition: "200,38" instead of the wanted "200,0" state.
Looking up the IIS logging syntax, the "38" next to the "200" code
means that this is a 'Reached hte end of file' / ERROR_HANDLE_EOF
case. I suspect that those are the occasions that the file was in a
locked state by the updating app.
It is noticeable at the client: the image viewing sometimes misses a
scene.
How can I access this '38' error code (called WINNT Status Code in the
IIS manual) so that I can handle this situation - or does somebody
have another suggestion?

Thanks,
victor.

Jan 3 '06 #2
Hi Bruce,
Thank you for responding and pointing to a solution.
I'm not a experienced web designer (this is my first app), hence I'm
now in the course of finding info (on the net, msdn) on how to carry
out your advise of overtaking IIS with an ISAPI handler.
If, by chance, you have an example / code snippet ... I'll appreciate
it.

greetz,
victor

On Tue, 3 Jan 2006 09:09:10 -0800, "Bruce Barker"
<br******************@safeco.com> wrote:
currently you are using IIS's default file handling. you can tke over by
supplying an isapi filter or handler. you could also remap images to asp.net
and write a .net module to handle it. though the performance of a .net
module is much lower than the other options.

-- bruce (sqlwork.com)
<victor> wrote in message news:b6********************************@4ax.com...
Hello,

I'm running an ASP.NET client app which requests a jpg image from the
server location. This image file is constantly updated by another app
at the same server machine - update frequency varies between 200-500
msecs.
The problem: the response the client gets is always "200", aka "OK",
but, when I look into the W3SVC1 logfile, there exist regularly the
following condition: "200,38" instead of the wanted "200,0" state.
Looking up the IIS logging syntax, the "38" next to the "200" code
means that this is a 'Reached hte end of file' / ERROR_HANDLE_EOF
case. I suspect that those are the occasions that the file was in a
locked state by the updating app.
It is noticeable at the client: the image viewing sometimes misses a
scene.
How can I access this '38' error code (called WINNT Status Code in the
IIS manual) so that I can handle this situation - or does somebody
have another suggestion?

Thanks,
victor.


Jan 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Xiangliang Meng | last post by:
Hi, all. I see a very strange fragment code today. Uint32 enum { a = 100; b = 200; }; NOTE: Uint32 is defined to be 'unsigned' in other source files.
1
by: Kiran | last post by:
Hi, I am trying to convert a string(Thu Jul 21 00:00:00 UTC+0100 200) which I get from javascript to date using cdate(string). I get the following error Cast from string "Thu Jul 21 00:00:00...
9
by: John Grandy | last post by:
Open a .sln containing a web-app and receive the "ASP.NET 1.1 not installed .... " error ..... I've never know the root cause of this error. I've always dealt with it by closing the web-app ,...
7
by: Dave | last post by:
Greetings, I am attempting to take a number that is currently in minutes and turn it into a string that will list the hours followed by minutes. Some more examples: "30" into "0h 30m" "155...
3
by: Alexander Eisenhuth | last post by:
Hello, Ctrl+C is not passed to the interpreter (i guess it) while I'm executing a script. Instead i get: forrtl: error (200): program aborting due to control-C event If I start python in...
9
by: Charles Crume | last post by:
Hello Everyone; My site was hacked the other day -- someone was able to rename my index.shtml file and put their own index.html file on my server. Not sure how it was done, but looking through...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.