Variable does not exist in the current context while debugging

It’s possible the local variables have been optimised away by the JIT compiler. Since you’re using Visual Studio you might be able to switch the configuration to Debug and rebuild. If not, you can configure the JIT compiler to disable optimisations and generate tracking information – see here on how to set the configuration. This … Read more

How do I stop Visual Studio from automatically adding the end-of-comment characters when I start a new comment in a CSS file

I’m afraid there isn’t an option to change this in Visual Studio, at least not one I can see. I’ve had the same issue sometimes, and generally use three ways around it: Select the lines to comment out and use the keyboard shortcut: CTRL+K, C Cut the closing */ and paste it at the end … Read more

How do I add a fakes assembly in VS 2012 Professional RC?

Update: VS2012 Update 2 will include Fakes support in Premium. See http://blogs.msdn.com/b/bharry/archive/2013/01/30/announcing-visual-studio-2012-update-2-vs2012-2.aspx I asked this question in the Microsoft Connect portal…and the answer is disappointing: The RC documentation was incorrect. Fakes are available only in VS Ultimate. I have passed your concerns on the Fakes team. At the moment, we don’t have any information about … Read more

Productivity Power Tools for Visual Studio 2012

Productivity Power Tools for Visual Studio 2012 were released on Nov 7, 2012 – as announced on The Visual Studio Blog. Aside from 2010 features, there are several new ones: Quick Tasks (instantly perform common tasks – uses Quick Launch). Power Commands (speeds up how you interact with code) Color Printing (now you don’t need … Read more

Use Visual Studio 2012 and compile with older platform toolset?

According to this page on MSDN, you need to have the corresponding version of Visual Studio (2008 or 2010), or the relevant Windows SDK for the “Platform Toolset” drop down to list those versions: To change the target platform toolset, you must have the associated version of Visual Studio or the Windows Platform SDK installed. … Read more

Cannot start IIS Express

For me this problem was due to a misconfiguration in the project which manifested itself in IISExpress’ applicationHost.config file. I had both the http and https ports setup as the same. <site name=”{projectname}” id=”3″> <application path=”https://stackoverflow.com/” applicationPool=”Clr4IntegratedAppPool”> <virtualDirectory path=”https://stackoverflow.com/” physicalPath=”{myPath}” /> </application> <bindings> <binding protocol=”https” bindingInformation=”*:57287:localhost” /> <binding protocol=”http” bindingInformation=”*:57287:localhost” /> </bindings> </site> To solve … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)