Visual Studio using old app.config value or setting

Once in a blue moon, I will run into a problem with Visual Studio 2012 where the App.config for a console application is getting cached somewhere and there’s no way to release it. So the App.config is stuck with old values which aren’t correct for the application today. It’s happened maybe twice this year to me.

The App.config in my solution shows the correct values. The one that’s been put in the output directories for Debug and Release both look good, but my quick little console application is pulling ghost values from an App.config from last week. I’ve tried building, rebuilding, and finally, all to no avail.

The only thing I could think of to fix this ( which did work ) was:

  • Copying the contents of the App.config file from within Visual Studio
  • then delete the file from within Visual Studio
  • Then re-add the config file
  • Then paste in the contents.
  • Rebuild and run.

I’m going to chalk this one up to ghosts in the machine.

Continue reading

Debug JavaScript in PHP or JSP Pages with Visual Studio 2008

Fresh from my IM, Kirk Allen Evans blog details how to debug javascript for any kind of page in Visual Studio 2008. This has already existed for awhile with the Firebug extension for debugging Javascript in Firefox. But it’s nice to have choices. And it’s cool if you’re developing within Visual Studio to have all your tools in one place.

You don’t have to shell out the big dollars for Visual Studio to get this debugging either, you can get it with the freebie version of Visual Studio Express.

Continue reading

Yes you, Mr. ASP.NET developer can use a hosted open source Subversion source control for your projects also

For some reason, most .NET devs that I run into insist on using closed source applications for everything they do. I have no idea why. I guess it’s a culture thing. That’s why I love it when a mostly ASP.NET fellow starts using something open source, like Subversion source code control. All the tools are in place to do what you need, the TortoiseSVN windows explorer plug-inthe Ankh Visual Studio plug-in. It’s all there.
Plus, I’ve really fallen in love with the concept of a hosted subversion solution. For me, I host my own at my provider. But for my side projects, its great to be able to access them from multiple computers. If I can get to the internet, I can get to my project code.

Continue reading