3 Replies - 503 Views - Last Post: 10 May 2012 - 11:01 AM Rate Topic: -----

#1 apw5020  Icon User is offline

  • D.I.C Addict

Reputation: 78
  • View blog
  • Posts: 666
  • Joined: 26-March 09

Code changes not being recompiled

Posted 08 May 2012 - 11:21 AM

I'm working in Visual Studio 2010 Web Express and I've noticed that quite often when I make changes to a Javascript source file being referenced from a .cshtml file, those changes aren't reflected when I rerun the code.

I've tried the following to no avail:
- Deleting the /obj and /bin folders.
- Cleaning and rebuilding the project and solution.
- Tweaking the build and debug settings.
- Making sure I saved the changes before I compile.
- Clearing the browser cache, cookies, and history.

The only way I can temporarily solve the problem is if I change the Javascript file name and all references to it then recompile. Renaming every time I make a change is very annoying. Even then, if I change the file name back to one I used previously the revisions from that specific file still run! This is very frustrating and is inhibiting my progress. Can someone please help me?

This post has been edited by apw5020: 08 May 2012 - 11:22 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Code changes not being recompiled

#2 trevster344  Icon User is offline

  • The Peasant
  • member icon

Reputation: 209
  • View blog
  • Posts: 1,365
  • Joined: 16-March 11

Re: Code changes not being recompiled

Posted 08 May 2012 - 11:48 AM

Maybe the development server isn't shutting down all the way, check the system tray icons in the bottom right of your screen when you aren't debugging. Happens to me a lot, so I have to refer to shutting down the development server. Often some changes won't display because of browser issues as well.
Was This Post Helpful? 1
  • +
  • -

#3 pradeep1210  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 56
  • Joined: 08-May 12

Re: Code changes not being recompiled

Posted 10 May 2012 - 04:12 AM

Click Start > Run

Type:

IISRESET

and press Enter.

Then run our application again and see if it fixes the problem.
Was This Post Helpful? 1
  • +
  • -

#4 apw5020  Icon User is offline

  • D.I.C Addict

Reputation: 78
  • View blog
  • Posts: 666
  • Joined: 26-March 09

Re: Code changes not being recompiled

Posted 10 May 2012 - 11:01 AM

Thanks for trying to help, I really appreciate it. However the solution was to delete IE browser cache, history, cookies, etc. and in developer mode make sure "Cache->Always refresh from server" is checked. Also, be sure all instances of IE are terminated. Voilą!
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1