Last post Nov 08, 2013 02:51 AM by rune007
Nov 07, 2013 07:35 AM|rune007|LINK
I am experiencing a strange erroneous behavior in Visual Studio with an ASP.NET MVC 4 application.
I have saved previous versions of the same solution as security copies.
My problem is that if I have run a previous version of the solution.
And then return to run the current version of the solution.
Then when I press F5 on the current version to run it, it's actually not the current version which is run. Instead it's the security copy version which I was running just before.
I can stop this behavior by temporarily by deleting the bin and obj folder of the solution, and also deleting the ProjectName.csproj.user file.
But then if I run one of the older security versions of my solution, the problem arises again.
This is not an issue about browser cache, I have checked that.
Somehow Visual Studio picks up on the previous version of the solution run just before, which have the same name. And then when I try to run the real, current version of the solution, Visual Studio runs the solution that was run before.
It almost seems like some kind of Visual Studio cache.
Anybody know how to stop this behavior?
Nov 07, 2013 07:52 AM|rune007|LINK
I might have solved the problem.
The project was set to Use Local IIS Web Server, I went into Properties and set it to
Use Visual Studio Development Server instead. It seems to have solved the problem.
-> Use Visual Studio Development Server
Go to Alex Dove's answer below:
Nov 07, 2013 08:12 PM|Tear09|LINK
Do you try to clean the project? (right click the project and select clean). Then rebuild.
Nov 08, 2013 02:51 AM|rune007|LINK
I am not sure I tried your solution, but the solution I have marked as answer seems to be the solution I was looking for.