Solved

ASP page won't refresh... with a twist

Posted on 2001-07-11
17
2,169 Views
Last Modified: 2011-10-03
OK, I know there was a question just like this a few days ago, but this is VERY strange.

Same deal -- made major, major changes to ONE folder of a website. It had been a subweb, but I've made changes to subwebs before that screwed them up, and recalculating the links, reapplying the server extensions and checking server extensions usually fixed them. Not this time...

I had copied pages from another server, put them into a NEW folder on the website. Worked fine. Renamed the OLD live folder, reanmed the NEW folder to the old folder name, reset up the subweb, reapplied the server extensions, recalculated links/indices. The browser pulled up the OLD pages -- but all the links to graphics were wrong, since no graphics showed up. Moved the old, RENAMED folder to OUTSIDE of the web folders. Still happened. REnamed the OLD files, that seemed to fix it...

So I made my minor changes to the NEW files. Brought them up -- unchanged files showed up. Hmmm... Cleared browser cache. Same thing.

So I changed the cache pages on THAT subweb only to 0, changed include cache to 0 -- nothing. Went through, deleted any/all files with the same names from any/all folders (including the one that had the OLD versions of the files in the _vti_cnf folder. Deleted the ENTIRE vti_cnf folder from the old, RENAMED folder. Nothing.

Converted the subweb to a folder, RENAMED that. STILL pulled up the old pages -- even though the FOLDER didn't exist. The pages that connected to the database generated an error -- but a DATABASE error, not a 404.

The files ARE changed -- when I open them in Notepad, on the server, the changes are made. But the old pages are being pulled from SOMEWHERE. They don't exist on the server -- I did a search, the only pages with those names are the ones I just fixed.

You want to hear the WEIRD part? Other folders on the SAME website, SAME server, don't have this problem. I make changes, hit REFRESH in the browser, BOOM -- new page shows up.

There's obviously some connection that's been broken. What, where, how to change it -- I've got NO clue. Can't find ANYTHING on MS site.

Anybody got any clue?
0
Comment
Question by:webwoman
[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
  • 5
  • 3
  • 2
  • +6
17 Comments
 
LVL 33

Expert Comment

by:hongjun
ID: 6275769
Try this to minimize caching.
http://www.activeserverpages.com/learn/cachenomore.asp

hongjun
0
 
LVL 33

Expert Comment

by:hongjun
ID: 6275772
Perhaps try stopping your web server and then clear all the cache again. Then restart the web server.

hongjun
0
 
LVL 15

Expert Comment

by:robbert
ID: 6275799
Frontpage Server Extensions bug. Had it, too, a couple of times. Better delete the folder (if you can), the web, or the question...
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 20

Expert Comment

by:Silvers5
ID: 6275814
Not that weird:
IIS has caching in it too.. go to your web server propreties in IIS (right click on the web server).. select the server extensions tab.. in performance select the settings tab.. set the cached documents to 0.. from 4092..

and test.. this should do the job..


also you can select in the Internet information the services tab the www master services.. edit.. home directory..  configure button (near the application name)
select the process options tab select the script file cache to 0..

when all is ok you can set that setting back to boost up performance

also read from a developer point..:

Caching is hard to manipulate, (is it o bug or not) you need to add several lines on the client and
server side (although this won't eleminate the problem 100% but will minimise it a lot)
<%..
Response.expires= 0
Response.Expires=-1
Response.Expiresabsolute = Now() - 1
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
%>
<meta http-equiv="PRAGMA" value="NO-CACHE">
<meta http-equiv="Expires" content="Mon, 01 Jan 1990 12:00:00 GMT">


one of the best ways to suppress cache is to redirect to another page with  a querystring at the end
of the url like:

response.redirect "mynocachepage.asp?" & Server.URLEncode(rnd)

For more information see:

   http://www.activeserverpages.com/learn/cachenomore.asp

0
 
LVL 20

Expert Comment

by:Silvers5
ID: 6275827
hmm if you made all these and nothing works then the cache is persistant on the web server even after disabling it.. try to stop and start the IIS.. finally if nothing helps.. do as robbert said..
0
 
LVL 33

Expert Comment

by:hongjun
ID: 6275897
Ya personally I think it is best to try to get rid of the cache first before really going to delete the folder.

hongjun
0
 
LVL 19

Author Comment

by:webwoman
ID: 6276906
It's working now... and it had absolutely NOTHING to do with caching (at least, nothing to do with the caching settings).

It's the folders. There is some kind of strange link between the folders, and I never did find anyway to break it. What I wound up doing was renaming the folders back to their original names, moving the one back into the web, and copying the files from the new to the old.

Then everything works. I update pages, they show up. No cache changes, no restarting anything, no changing any other settings (other than removing the extensions on the subweb and then putting it back -- which I had done a zillion times before with no effect).

Remember -- I HAD changed the cache settings -- zilch. HAD changed the file to no cache -- zilch (the new file didn't even come up, remember? And it really didn't.. once it DID, there was an syntax error in the no-cache asp command. ;-) ) I could DELETE the file, and it would STILL come up. And if it was IIS caching, why did everything ELSE work fine, with those SAME original cache settings?

It's the FOLDERS. Quite possibly rebooting the server would have fixed it, but I didn't have that option (not right now, anyway -- and I suspect it wouldn't have done anything). You can ADD folders, using FP or anything else, and it works just fine. I copy folders over or make new ones all the time. You just can't rename or delete them (it's fine for files) OUTSIDE of FP/IIS.

So now that I know, it's manageable.

If it's OK with everybody, I'd like to reduce this to 0 and PAQ it, and give 10 pts each to robbert, silver5 and hongjun with an A for effort. ;-)  
0
 
LVL 33

Accepted Solution

by:
hongjun earned 10 total points
ID: 6276927
Great that your problem is solved.

hongjun
0
 
LVL 2

Expert Comment

by:elstcb
ID: 6278259
I've had FrontPage extensions do the same to files as well - now I never rename ANYTHING on the server. One to be aware of...!!!
0
 
LVL 2

Expert Comment

by:Lunchy
ID: 6278565
Hi webwoman, I have reduced the points for the split as you requested.  Please post 2 other "Points for" questions for the other two experts in this topic area with a link back here so others know what the points are for.  Then post links from here to the points questions for the experts.

Thanks

Lunchy
Friendly Neighbourhood Community Support Moderator
lunchy@experts-exchange.com
0
 
LVL 33

Expert Comment

by:hongjun
ID: 6279137
Just inform Lunchy, I did not receive any Good Answer email for this question.

Really strange. A bug?

hongjun
0
 
LVL 20

Expert Comment

by:Silvers5
ID: 6279540
when a moderator accespts a comment you don't get one.. It's developed like this it seems.. Webwoman.. I stated to restart IIS too.. anyways glad to see you made it.. if I had such a problem I would've die if I didn't know the real reason behind it..

rgrds
0
 
LVL 2

Expert Comment

by:Lunchy
ID: 6279583
Didn't know that accepting a comment this way doesn't generate Good Answer mail.  If it hasn't been done, I'll report it to engineering.  Thanks.

Lunchy
Friendly Neighbourhood Community Support Moderator


0
 

Expert Comment

by:pbisht
ID: 8292817
Hi webwoman,

I'm facing the same problem that you described above.  However, I wasn't trying to rename a folder.  I just updated some files inside the webfolder, but I cannot see the changes.  My files are located on a shared folder on server1 and the IIS is on a different server (server2) and points to the shared folder on server1.  I have tried several things...

1. Restarted the IIS (on server2)
2. Restarted server1 (contains the shared folder and files)
3. Broke the shared link by "unsharing" the folder temporarily and linked it back again.
...

Nothing seems to work.  To test further, I added a small file "hello.asp" which contained "hello puja" into the folder.  I could see this file on my browser.  Then, I added some more text to the file, but never saw the changes.  I still saw only "hello puja" when I viewed it from the web browser.  Then, I DELETED the file and tried to view it from the browser... I could still SEE it!  ...freaky!

Do you have any suggestions?  Any help would be greatly appreciated!  Thanks.

- Puja
0
 
LVL 19

Author Comment

by:webwoman
ID: 8311095
Recalculate the links in IIS, clear the cache on the server, check the server extensions. If there's a proxy server, that could cause it.

Do that on BOTH servers... the problem could be in either one.
0
 

Expert Comment

by:sjacob
ID: 12218488
Hi all,

We had a similar problem (one sub-web doesn't clear its cache, updates in that folder doesn't show up through browser), and it is with IIS 4. Here is how we solved the problem through IIS.

In "Directory" tab in IIS, check the "Run in seperate memory space" and Apply.


0
 

Expert Comment

by:aaronwk
ID: 12523276
I know this is an old topic but thought i would post our problem / solution for others.

Problem: In IIS 6 users created .asp files with frontpage. Initially the files would load but after saving changes the the old content would still appear even thought the file was correctly changed. I would open the file on the server and it would have the updates but IIS was serving an old version. I would download the file from the server with FTP and re-upload and like magic it would show the new updated content.

Solution: Turn off IIS .asp cache. Open the IIS manager, expand the local computer, right click on 'Web Sites', choose properties, click the Home Directory tab, click on the configuration button, then choose the Cache Options tab at the top. Choose 'do not cache asp files', then apply and ok the changes. Without restarting IIS it should fix the problem, if not though restart IIS.

To me this appears to be a bug in the FP server extentions.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

624 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