PDA

View Full Version : Problems Displaying ASP pages Could it be cache?


Running Bear
10-17-2002, 06:46 PM
I'm having problems with my site (w2k server), sometimes when I make changes to my pages and move them onto the server. The new pages aren't read. Sometimes the old pages are shown and other times I get an error.


HTTP 500 - Internal server error


At the moment I'm getting the error and can't figure out what's wrong.

I've checked the pages on the server and they are the correct ones. The site works perfectly on my development machine, w2k pro.

Could it be a cache problem?

I've edited the websites properties HTTP Headers Tab and checked the option 'Expire Immediately' Stopped the site and restarted it without success.

I've enabled application debugging, and have put the following code into the top of all my asp pages


Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1000


My login page and initial frame set load okay (all .htm files). It falls over when I click login and the first .asp page is called

Does anyone have any ideas? Anything will be gratefully received no matter how basic or stupid (within reason of course) :D

Roelf
10-17-2002, 07:54 PM
i had the same problem a while ago on a server of a customer. When calling asp pages there was no response, when calling html pages they showed up well. Then i tried to rename a working html page to .asp, it wouldn't show. After a while i found out the sys admin restricted the rights in the winnt ffolder to adminstrator, the system couldn't execute the asp.dll anymore. Changing the rights to the winnt folder (and subfolders) to everybody - Full control solved the problem

Running Bear
10-18-2002, 08:05 AM
Roelf,

That's done it. Thanks for your help.
The annoying thing is I've had this problem before although the syntoms were a bit different, solved in the same wayt though.

Very weird cos I was accessing the pages without any problems up till yesterday.

Cheers Al. :thumbsup: