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_EO F
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. 2 1642
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.c om... 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_EO F 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.
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.c om> 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.c om... 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_EO F 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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
|
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 UTC+0100 200" to type 'Date' is
not valid(System.InvalidCastException)
Any help on this will be appreciated
|
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 , deleting the contents of the
\{web-app}\bin\
directory and re-opening the web-app.
|
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 into "2h 35m"
"180 into "3h 0m"
|
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 interactive mode Ctrl+C is passed:
bash-3.2$ python
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) on win
| |
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 the log file, I found a lots and lots
of entries where an "include_path" parameter was included in the URL of the
PHP page, as shown below:
69.94.36.155 - - "GET...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |