Solved

IIS Express Cache

Posted on 2015-02-04
3
1,495 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
[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
3 Comments
 
LVL 28

Assisted Solution

by:Dan McFadden
Dan McFadden earned 250 total points
ID: 40590609
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
ID: 40590620
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
ID: 40590883
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
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…
Suggested Courses

617 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