IIS Express Windows Authentication

I’m trying to use IIS Express with VS2010 to host a silverlight application. I modified my applicationhost.config file to allow for modification of the proper configuration settings. I have the following in my web.config: <location path=””> <system.webServer> <security> <authentication> <anonymousAuthentication enabled=”false” /> <windowsAuthentication enabled=”true” /> </authentication> </security> </system.webServer> </location> I am not being authenticated and … Read more

Cannot obtain value of local or argument as it is not available at this instruction pointer, possibly because it has been optimized away

Visual Studio 2010 kills (there is no other word) data in one of the arguments of the function in the unsafe block. What could cause this error? The following message shows by the debugger. Cannot obtain value of local or argument as it is not available at this instruction pointer, possibly because it has been … Read more

How to debug a single thread in Visual Studio?

I have a solution with some projects. There are several break-points in different projects. I want to trace the first thread hit one of these break-points and continue tracing that single thread despite of other threads entering the same code-blocks. I know this is possible through defining a condition on the break-point, that is, thread … Read more

Auto select file in Solution Explorer from its open tab

Normally, many files in Visual Studio 2010 are opened in many tabs, while massively working on a project. Many times, I find myself right-clicking on a tab title and searching for Show/Select/Scroll-to this file in Solution Explorer, and I can’t find it. Is there a way to automatically select an opened file in Solution Explorer? 13 Answers … Read more

Is std::unique_ptr required to know the full definition of T?

I have some code in a header that looks like this: #include <memory> class Thing; class MyClass { std::unique_ptr< Thing > my_thing; }; If I include this header in a cpp that does not include the Thing type definition, then this does not compile under VS2010-SP1: 1>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(2067): error C2027: use … Read more

Visual Studio 2010 – recommended extensions [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more