Does IIS 6/7 lock image files whilst they're being served?

后端 未结 5 408
清歌不尽
清歌不尽 2021-01-14 06:58

I am writing a piece of .NET code which needs to overwrite image files in a website hosted on IIS 6 or 7. The only processes that should be touching the images are IIS and m

5条回答
  •  执笔经年
    2021-01-14 07:23

    IIS will lock the files.

    How about writing an HttpHandler for images, so that you have direct control over how the images are served and where from.

    Since you then control how the images are served and how the images are replaced, all you need to design is a common locking mechanism to maintain order.

提交回复
热议问题