Jeffrey Kevin Pry
Jeffrey Kevin Pry

Reputation: 3296

VS 2010 Debugging old build

I have a visual studio 2010 web project that when I publish it in debug mode the application works fine and is the latest build.

However, when I try to click the play button/debug mode (in the same build configuration as what I published in) the assembly version is older than the most current one. As mentioned, this is a asp.net application using a c# class library as a reference (also in the solution) and I am debugging using Visual Studio's built-in web server.

I've tried everything I could think of at first in all different combinations as follows:

I tried to use a different browser and cleaned my cache as well.

Has this happened to anyone? How can I correct this issue?

Upvotes: 0

Views: 446

Answers (3)

Mrchief
Mrchief

Reputation: 76218

Don't forget to clean your Temporary ASP.Net (c:\WINDOWS\Microsoft.NET\Framework[version]\Temporary ASP.NET Files) files.

After that, do a rebuild and try.

Also, for local development, if you can, then do not GAC assemblies. GAC them while deploying to integration environment. THis will help speed up development a bit.

Upvotes: 0

Gregory A Beamer
Gregory A Beamer

Reputation: 17010

It is most likely not set to build. To test this, try build then debug and see if things work. If so, then it is definitely not set to build.

To solve this, open up the Solution Properties. Go to Configuration Properties >> Configuration. Then run down to the project in question and check the Build checkbox. You will then be able to debug again.

This one bit me when a coworker decided the build of the UI was taking too long for his testing and removed it from the build. After discovering the issue, I had him create a separate solution to test in isolation. Yes, multiple solutions can contain the same project(s).

Upvotes: 1

Muad'Dib
Muad'Dib

Reputation: 29216

did you try deleting your bin and obj folders and removing your assemblies from the GAC? I would guess that THIS is the problem.

Upvotes: 1

Related Questions