|
-
Nov 30th, 2011, 03:36 PM
#1
Thread Starter
Fanatic Member
Bit off topic but ...
I'm desperate. I have a .net web site only accessed by company users - and they all use IE.
The site uses a style sheet called GAstyles.css
If I look in the Temporary Internet Folder it says it was last modified on 20th October 2010. I have modified the css file in the web site today and published the site.
On a user's box the css changes I have made have not appeared. I have deleted the Temporary Internet Folder (a laugh in IE 8.0 - half the times the files just stay there!) and, eventually, got rid of the existing css file. Accessed the site again, css file appears in Temporary Internet Folder - but it's the old one, modified on 20th October 2010. If I change a page on the site to use GAStylesCopy.css - it downloads that file okay to the browser - and you can see the modified date is today.
What is going on? Where is the old css file reappearing from? After all, I have deleted it from the Temporary Internet Folder - and emptied the recycle bin. But, next time I open the site, the old css file appears again in the Temporary Internet folder.
(I hate css - and I hate IE and, on days like this, I want to be a farmer). Sorry it's off topic but if any of you guys can help - I'd be grateful. Cheers.
-
Nov 30th, 2011, 07:00 PM
#2
Re: Bit off topic but ...
If everything is going wrong try to delete the whole project from IIS and start a fresh one.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Dec 1st, 2011, 01:26 AM
#3
Re: Bit off topic but ...
If it's only a css problem, how about creating your own css then store it in another folder, then call the css file pointing to that specific folder..
Greg
-
Dec 1st, 2011, 04:08 AM
#4
Thread Starter
Fanatic Member
Re: Bit off topic but ...
Thanks for your replies ... what I really want to know is ...
On a user's machine:
I empty the Temporary Internet Folder
I empty the Recyle bin
I check in the Temporary Internet Folder - it is empty
I check on the server - the css file on there has a modified date of 30/11/2011
I open IE on the user's machine and load the web site
I look in the Temporary Internet Folder - and the css file that is in there has a modified date of 30/10/2010
So, clearly, the css file is not be deleted from the Temporary Internet Folder - it is being kept, somewhere, and being retrieved again when the site is visited - instead of the newer one being downloaded from the server - despite having 'check for newer versions every time I visit the page'.
When I look in the Recycle Bin - it shows the 'Previous Location' of the files. But, instead of showing ... local\windows\microsoft\temporary internet files\
it shows (something like)
...local\windows\microsoft\temporary internet files\IE5.0\filename
If I use Windows Explorer to look at the Temporary Internet Folder - there are no folders inside (I am viewing hidden folders) - yet, when I look in the Recycle bin it says the previous location of the deleted files was a folder called IE5.0 inside the Temporary Internet Folder.
Must say I've often had this trouble testing sites in IE over the (long, long) years - it seems to make its own mind up when it will download a newer css file from the server.
-
Dec 1st, 2011, 04:25 AM
#5
Re: Bit off topic but ...
Hmmmm,
Sounds like the previous developer of that intranet site must have some special configurations done so that the css file is kept.
Just a few question, is the server part of the domain controller? If yes, maybe there's a windows script that loads the css file when this website is opened.
Or it could be that a class library or dll has a code that will load the original css file.
Another thing, do all users experience the same issue of having the same old css file when they opened the site?
Greg
Greg
-
Dec 1st, 2011, 04:50 AM
#6
Thread Starter
Fanatic Member
Re: Bit off topic but ...
 Originally Posted by KGComputers
Hmmmm,
Sounds like the previous developer of that intranet site must have some special configurations done so that the css file is kept.
Just a few question, is the server part of the domain controller? If yes, maybe there's a windows script that loads the css file when this website is opened.
Or it could be that a class library or dll has a code that will load the original css file.
Another thing, do all users experience the same issue of having the same old css file when they opened the site?
Greg
Greg
Hi and thanks for your reply.
I'm the 'previous' developer - I developed the site from scratch.
Yes the server is part of the domain controller - but there are no windows scripts doing anything.
And, yes, it happens to all users. It seems IE does not want to delete the old version of the css file and fetch the new one from the server ... unless ... latest update, if you turn a machine off and on again - having deleted the Temporary Internet Folder before turning off - then go back to the site - the new css file is loaded.
So, it seems a reboot is needed to get the new css file to be fetched from the server.
I like your signature - "I was forced to be a programmer" - I sort of fell into it - one day I was a project manager in construction, then I was made redundant, then I learnt a bit of desk top publishing on a Mac my wife was using at home (for work), then I learnt a bit about FileMaker pro, then they wanted to publish some stuff straight from a database, then the data was on a windows machine so I had to learn a bit about Access - then some bloke said 'can you do us a web site because we want to publish our prices on line' and I said 'of course' even though I had no idea ... and now I sit in front of a computer 12 hours (most days) with Visual Studio and SqlServer as my only friends! (Sorry about that, get fed up with this lark sometimes ... a smallholding has always been the dream - can't afford one and getting too old to work one. Now the dream is a motor caravan and the open road - no laptop and no mobile phone either.)
-
Dec 1st, 2011, 08:23 AM
#7
Re: Bit off topic but ...
Usually when developing intranet asp.net sites, we usually placed the markup files and css external files
in the server, in that way, all users would have no issue of viewing the site whether using different IE versions.
I don't see any problem with this, maybe you have to coordinate w/ the network manager to check on domain users or something. But basically, there is no issue here.
LOL on liking my signature..I was a teacher before,then stumbled on software development... :-D
-
Dec 1st, 2011, 07:32 PM
#8
Re: Bit off topic but ...
Hi.Maybe try to delete everything on iexplorer not just temp files.I mean history,cookie,etc.That usually works for me when i change some script.js files.
Other than that i only use iexplorer to check for compatibility issues that effect the design of the site(usual iexplorer 7 will mock me in the face if i do a zoom in zoom out).
About programming.It's unappreciated here.There are tons of programmers but a small portion of at least adequate ones, so a company will get the cheapest programmer then fire him then get another cheap one, he will mess up then get fired then another cheap one, etc.So it's not about programmers hating programming it's about programming hating programmers,or something 
I was in that situation a couple of years ago, a company let me go because i was expensive then they hired 2 cheap ones then fired them and till recent year that i still had some inside info of the company they couldn't find a cheap and good one.But guess again!Economic crisis!Yeah,aha!Ye-yeah!We are going to work for 300Euros and like it in the years to come!So i think i will go solo or make my own company or rob a bank.Whichever comes first. (note to negative feedback lovers, the previous topic contain sense of humor or at least a try for it,please don't be generous( and leave negatives or live negative)
Last edited by sapator; Dec 1st, 2011 at 07:36 PM.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Dec 2nd, 2011, 04:30 AM
#9
Thread Starter
Fanatic Member
Re: Bit off topic but ...
 Originally Posted by sapator
Hi.Maybe try to delete everything on iexplorer not just temp files.I mean history,cookie,etc.That usually works for me when i change some script.js files.
Other than that i only use iexplorer to check for compatibility issues that effect the design of the site(usual iexplorer 7 will mock me in the face if i do a zoom in zoom out).
About programming.It's unappreciated here.There are tons of programmers but a small portion of at least adequate ones, so a company will get the cheapest programmer then fire him then get another cheap one, he will mess up then get fired then another cheap one, etc.So it's not about programmers hating programming it's about programming hating programmers,or something 
I was in that situation a couple of years ago, a company let me go because i was expensive then they hired 2 cheap ones then fired them and till recent year that i still had some inside info of the company they couldn't find a cheap and good one.But guess again!Economic crisis!Yeah,aha!Ye-yeah!We are going to work for 300Euros and like it in the years to come!So i think i will go solo or make my own company or rob a bank.Whichever comes first.  (note to negative feedback lovers, the previous topic contain sense of humor or at least a try for it,please don't be generous( and leave negatives or live negative)
I have deleted everything out of IE - history, cookies, temporary internet files - the lot. But, still, you load the site and the old css file reappears - unless, as I said somewhere in a later post, I reboot the machine.
If I look in IE - it says the files are stored in:
C:\Users\PCName\AppData\Local\Microsoft\Windows\Temporary Internet Files
and if I look in that location in Windows Explorer - the files are there. If I delete them and then look in the recycle bin it says the Original Location of the files (which, in the Recycle bin, now have '[1]' added to the end of each file's name) is:
C:\Users\PCName\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\
But, if I look in the Temporary Internet Folder - there is no folder called 'Content.IE5'
-------------------
regarding programming - when you say working for 300 euros - you mean 300 euros a day? Yes?
-
Dec 2nd, 2011, 06:42 PM
#10
Re: Bit off topic but ...
I can't help as i see you use windows7.What i wrote works on xp or server 2003.
Are you sure you delete the right user?I mean you don't log with user rights but with admin rights,er,right?
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Dec 5th, 2011, 02:43 AM
#11
Re: Bit off topic but ...
Hello,
Out of interest, does this also happen if you use another browser? I know you said that they are all intranet users, and all use IE, but humour me.
Trying to isolate whether this is a browser problem, or whether this is a problem on the server.
Gary
-
Dec 5th, 2011, 07:59 AM
#12
Thread Starter
Fanatic Member
Re: Bit off topic but ...
 Originally Posted by gep13
Hello,
Out of interest, does this also happen if you use another browser? I know you said that they are all intranet users, and all use IE, but humour me.
Trying to isolate whether this is a browser problem, or whether this is a problem on the server.
Gary
Hi Gary
The site doesn't work with other browsers - uses ActiveX objects - so it is very IE specific - to the point where I detect browsers on the home page and kick users out if they are using anything other than IE.
-
Dec 5th, 2011, 05:34 PM
#13
Re: Bit off topic but ...
Why not add a version # to the filename of the css stylesheet and change the .aspx page to access that name...
That way you force a new css download - regardless of workstation settings or issues.
-
Dec 6th, 2011, 02:03 AM
#14
Re: Bit off topic but ...
That's a great idea!
For more information, see here:
http://www.prelovac.com/vladimir/add...theme-css-file
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|