visual-studio-2010

Problems debugging (breakpoints not being hit)

I'm facing problems when i try to debugging with Visual Studio 2010. My breakpoints don't work and gives the message: The breakpoint will not currently be hit. The source code is different then the original version I've go to tools and enabled "Enable Just My Code" but now i get the message: Breakpoint will not currently be hit. No s...

Windows 7, VS2010, .NET and AxMSCommLib

I have a project that is referencing the AxMSCommLib in VS2010 C#.. My Windows 7 Dev machine doesn't have or can't find this reference. Does anyone have any info on where to get this reference to make it work? ...

AxMSMAPI Windows 7 C# .NET Interop Missing

I have a project that is referencing the AxMSMAPI in VS2010 C#.. My Windows 7 Dev machine doesn't have or can't find this reference. Does anyone have any info on where to get this reference to make it work? ...

cmath compilation error when compiling old C++ code in VS2010

I've inherited a few C++ files and an accompanying makefile, which I'm trying to bring into VS2010 as a solution. I've created an empty project and added the appropriate C++ and header (.hpp) files for one of the makefile targets. When I try to compile the project, however, I immediately get a large number of C2061 (syntax error identi...

GoogleMock and GoogleTest in Visual Studio 2010

Has anyone successfully built gmock and gtest in Visual Studio 2010? I've tried with version 1.5.0, but I only get incomprehensible compilation errors. ...

supporting for each loop in classes

hi how can i add "for each" support for my class in c++0x and visual studio 2010? ...

VS2010 Unit Tests - thrown exceptions are blank

Hopefully a nice n simple one for you Running some tests in VS2010's testing framework. When an exception is thrown somewhere inside it, the results screen shows nothing of the details. Simplest example: [TestMethod] public void DoTest() { int y = 10 - 10; int x = 10 / y; } Test method MyProj.DoTest threw exception: ... Y...

How do I suspend ReSharper 5.0 AND get back the default key settings in Visual Studio 2010?

I have a project with many projects that performs miserably with ReSharper enabled, even on a pretty decent machine (8GB RAM, hybrid solid state hard drive, Core 2 Duo processor). I was able to find out how to suspend ReSharper, but none of the default key bindings for Visual Studio (e.g. Ctrl-[comma] to navigate to type) seem to be w...

VS2010 - ASP.NET Configuration Won't Open

I have a standard ASP.NET project. I have created a login control on the page and now I would like to start adding the option to register as a member on my page. My problem is that when I click "Asp.net Configuration" in the solution explorer or under the Projects tab. Nothing opens up. I have made sure that my project is not running, ...

How to add "visual studio"-reference to WIX in Visual Studio 2010?

Hello, I've got a solution with many projects and WIX setup project. I'm using WIX 3.5. One project (that is referenced from WIX setup project) contains a reference (an ordinary reference in VS) to: C:\Program Files\WPF Toolkit\v3.5.50211.1\WPFToolkit.dll (simply: setup project --- reference --> another project in solution --- ref...

SQL possibly not returning values for a query in visual basic

In my code I enter a string in a text box and have the query check the server for the entry. If it exists it returns the string and the date into two separate variables. The database only has TrackingNumber and Date. Below is the code. As of right now i get "Invalid attempt to read when no data is present." at the "If (sdr("TrackingNumbe...

How do you "re-include" a file that was excluded from source control?

I excluded a file from source control a week ago, and I would like to re-include it into my VS 2010 project. I can't find a single way to do this, I am completely stumped. I deleted the file, checked everything in, then re-added, checked that in, but I still get the red symbol next to the file saying it is excluded from source control....

Why does the VS 2010 ASP .NET ReportViewer fail to render parameters when a custom RoleProvider is specified?

I have taken a sample SSRS report from http://gotreportviewer.com/. The report displays some customer data and the "City" parameter. The report also uses the "City" parameter to filter the data. This report runs just fine unless I enable a custom RoleProvider through web.config. I have set break points in all of the methods of my custom ...

Problems upgrading VS2008 to VS2010 with Managed and Unmanaged C++

I have a VS2008 Professional solution that I tried to convert to VS2010 Professional (RTM from MSDN download) today and I am experiencing some problems with some unmanaged and managed C++ DLLs that are referenced by a C# application. The C# application is set to target .NET 3.5 (as it was in the VS2008 version) but when I try and compil...

Visual Studio 2010 Shell Package installation

I have created a visual studio 2010 add-in using the "Visual Studio Package" template which comes with the VS 2010 SDK. I can see the add-in operate with F5. How do I permanently deploy this as an add-in to the Add-in Manager? ...

Git Extensions: No Windows Explorer shell on Windows 7 and all commands disabled in vs 2010 plugin?

Hi there, Just installed git extensions. All appeared to go well but if i right click in windows explorer there is no context sensitive menu for GIT as shown in the screenshots via the site. It seems to be missing. I have launched the Git Extensions applications and managed to clone a repository so i know its working but the integratio...

Visual Studio 2010 Solution Crashes when Opening

The "Preparing Solution" window come up as normal. Then about two seconds after it goes away Visual Studio crashes. It only happens to one specific solution. How do I troubleshoot this problem? ...

How Do I Unit Test Silverlight 3 in VS2010?

I am currently working on a project that uses the Silverlight 3 SDK and I want to create unit tests for my Silverlight code. I want these tests to not have to run in a browser context. I have referenced the Silverlight Unit Testing binaries that come in the SDK (Microsoft.Silverlight.Testing and Microsoft.VisualStudio.QualityTools.UnitTe...

Visual Studio 2010 debugger skipping

Occasionally during debugging the debugger skips forward randomly. Sometimes I Step into a function inside of another function and instead of going to the next line it skips through to a seemly random place in the future. sometimes to a line partway through another function. It always seems to respect breakpoints though, i.e. if a breakp...

How to Profiler unit test in Visual Studio 2010?

Can I use VS 2010 Profiler to profile unit test (MSTest)? If yes, how? Thanks, Michael ...