Solved

IExplorer or IIS locks the file after viewing it

Posted on 1998-06-12
7
561 Views
Last Modified: 2013-12-25
I am using MS IIS v4 from the Option Pack, and viewing the web with IExplorer 4. After viewing a file located on my server, either Explorer or IIS locks the file and I can't change it for about a minute. This is very annoying when creating a web and finetuning the layout. Does anyone recognize the problem?

Thanks for any help,
Martin
0
Comment
Question by:mnprsd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 70 total points
ID: 1858301
This is a known but in IIS4, there are several ways to get around it:

1. edit the registry:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters\

Change or add (DWORD): ObjectCacheTTL and set it to 0
Change or add: DisableMemoryCache and set it to 0

2.
Those were not in enough in some cases I have seen. Then there an additional (hard way) solution: let IIS4 treat HTML files as ASP (because ASP does not have that problem)

That can be done in the IIS-manager, properties. I don't have it here right now, but one of the tabs shows a list of which extensions should be run by which application. Add .htm and .html and let it be handled by asp.dll (just like .asp and .asa that are already there.







0
 

Author Comment

by:mnprsd
ID: 1858302
Hmm... I must say that I was really positive when I saw your answer, but it didn't work. I tried both the registry settings, and the changes for the .html/.htm application. It is the ISAPI applications, right?

If you know any thing that might cause this problem, please reply.
0
 
LVL 28

Expert Comment

by:sybe
ID: 1858303
you'll have to restart after changing the setting, did you ?
0
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 
LVL 28

Expert Comment

by:sybe
ID: 1858304
I'll look at it after the weekend when i am at work, I have solved this problem several times.
0
 

Author Comment

by:mnprsd
ID: 1858305
Yeah. First I only restarted the services, but since that didn't work I restarted the whole computer. Still nothing. You didn't explicitly say that the DisableMemoryCache should be a DWORD, but I assumed it.


0
 
LVL 28

Expert Comment

by:sybe
ID: 1858306
I checked at my pc at work, and I got DisableMemoryCache set to 1 (not to 0 as i first said). That works fine with me.

About IIS4 setting:
- chose properties of a website
- select Home Directory
- click on "configuration"

There you see a list of extensions which will be handled by external exe or dll files.
Add .htm and .html and let them run over asp.dll (just like .asp and .asa)

Hope this works.

0
 

Author Comment

by:mnprsd
ID: 1858307
It worked, really. I was enough to set the registry settings. Thanks!!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question