Solved

IIS Express Cache

Posted on 2015-02-04
3
882 Views
Last Modified: 2015-02-05
I'm developing an ASP.Net Application using Visual Studio Pro 2013.  When I try to debug some JavaScript code the debugger displays cached code.  I found a workaround by changing the name of the JavaScript code file and changing all references in the aspx files.  The is tedious and can be error prone.  Is their and simpler way to deal with this???  I would like for the code break to show the code in the current state.

Thanks
0
Comment
Question by:Ray Turner
3 Comments
 
LVL 26

Assisted Solution

by:Dan McFadden
Dan McFadden earned 250 total points
Comment Utility
I believe the browser is doing the caching of the .js file.  Have you tried purging the IE browser cache (all items), do a build and then debug?

If that doesn't really work, I would do:

1. clear browser cache
2. clear the appropriate ASP.NET temp directory
2a. like = C:\Windows\Microsoft.NET\Framework64\vX.X.X\Temporary ASP.NET Files
2b. like = C:\Windows\Microsoft.NET\Framework\vX.X.X\Temporary ASP.NET Files
3. rebuild app
4. restart IIS Express
5. debug
6. try in IE

Dan
0
 
LVL 11

Accepted Solution

by:
LordWabbit earned 250 total points
Comment Utility
4. Restart IIS Express

it will resolve the problem, also fixes caching of css files.

I find that while developing writing the code 'inline' with the html and then moving the working tested code to a .js is a lot simpler than restarting IIS express all the time.
0
 

Author Closing Comment

by:Ray Turner
Comment Utility
Thanks!  You both confirmed what other colleagues have told me.  It doesn't hurt to get a 2nd (and a 3rd) opinion.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

744 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now