visual-studio-2010

VSDBCMD returns "An unexpected failure occurred: Object reference not set to an instance of an object."

I have been succesfully using the command line database deployment tool VSDBCMD on my dev and test environments but the tool fails in our integration environmrnt. I am using the VS 2010 version of the tool. The servers have all of the prerequisites including: .net 4.0 sql server compact edition 3.5 sp1 (as well as the full edition of 2...

Why is "use custom server" option disabled in Visual studio 2010?

I have DotnetNuke loaded in Visual studio 2010. The 'use custom server' option under 'Start Options' is disabled. Why is it disabled? What does 'Use Default Web server' default to? How do I change what the default is? In earlier versions of VS i was able to switch between IIS and the internal web server (Cassini). Now it's more confusin...

"Unable to start debugging on the web server" error message in Visual Studio 2010 and app runs fine without debugging

I get error message "Unable to start debugging on the web server" in Visual Studio 2010 (Windows 7). The app works fine if running without the debugger. I can also manually attach to the aspnet_wp.exe process and have a breakpoint hit in the app. I have debug=true in web.config. Why do I get the error message? ...

Where is the restart icon in Visual Studio 2010?

In Visual Studio 2008 I often used the "restart" button but it is missing in Visual Studio 2010, at least in Visual Web Developer 2010 Express, I assume it's the same in the standard version as well. Where is the restart icon in Visual Studio 2010? Added: Ok, I was able to add it in "Customize", but after adding it, it is greyed out...

How do I manually edit table mappings in ADO.NET in Visual Studio 2010?

I can't seem to find the answer to what I think is an easy question. I have a Entity model I just created and I want to set the name of the table and the columns by hand. I can see the "mapping details," but how do I edit them or add to them? ...

Why would Visual Studio 2010 say it can't show a variable during debug?

In Visual Studio 2010 sometimes when I want to get the value of a variable while debugging, it tells me that it "does not exist in this context" when it obviously does. I have found that if I use the variable, as in the screenshot below, then it is able to show it. Has anyone experienced this? Visual Studio 2008 never did this. How ca...

How can I speed up Visual Studio 2010 text editor render speed?

Visual Studio 2010 moved to using WPF for rendering the editor. This is leading to slowdowns while I am editing code, especially if I'm running something else that uses other video capabilities. How can I speed this up? A new video card? New drivers? Settings? What technologies does WPF use to render and what video card would compl...

Compile error when trying to debug a Visual Studio integration project

I'm currently working on a Visual Studio integration project for VS2010 (a custom highlighter) I'm using Irony and the LanguageServiceTemplate from this Code project article. However that template is build for 2008 and the changes made in VS2010 when it comes to integrating breaks the template. When I try to compile I get the following...

Does Visual Studio run Tests with a less privileged process?

I have an application that is supposed to read from the Registry and when executing a console application my registry access works perfectly. However when I move it over to a test this returns null: var masterKey = Registry.LocalMachine.OpenSubKey("path_to_my_key"); So my question is: Does Visual Studio run Tests with a less privile...

Visual Studio 2010 shortcut to select word / expression / line / section / method?

There is a shortcut Ctrl+Shift+W to select the entire word at the current cursor position. Is there a similar shortcut that keeps expanding the selected region every time I apply it? I mean, is there a shortcut which selects the word when applied once (same as Ctrl+Shift+W) and selects the entire line when applied twice in a row and ...

New projects not built when target platform is set explicitly

I create a new solution with one project, and then change the target platform from "Any CPU" to "x86". After this new projects added doesn't get built by default, and their target platform doesn't follow the global settings. Why?! Looking at the configuration manager new projects added are not checked to "Build", and they get target pl...

Visual Studio 2010 randomly crashes when editing XAML

Visual Studio 2010 RTM randomly crashes when editing XAML in a WPF application. I'm running it on Win 7 fully updated. The installed extensions/addons are: Resharper PowerCommands The crash log is: Faulting application name: devenv.exe, version: 10.0.30319.1, time stamp: 0x4ba1fab3 Faulting module name: clr.dll, version: 4.0.30319.1...

NerdDinner Visual Web Developer 2010 Settings

I'm following steps of the NerdDinner tutorial. In the dinner Model class where I have error and validation handling for CRUD instead of error notifications in browser I get some kind of debugger dialog. Why is that? ...

Why is the dictionary debug visualizer less useful in Visual Studio 2010 for Silverlight debugging?

I was debugging in Visual Studio 2010, which we just installed and trying to look at a dictionary in the quick watch window. I see Keys and Values, but drilling into those shows the Count and Non-Public members, Non-Public members continues the trail and I never see the values in the dictionary. I can run test.Take(10) and see the values...

Visual Studio HTML Cursor-within-HTML-Element Syntax-highlighting color

I can't, for the life of me, figure out how to change grey highlight color in the screenshot below to something that will make the text a little more legible. Does anyone know what the "Display Item" name is that I need to change? To get to the "theme editor" select Tools => Options => Environment => Fonts and Colors. I can't find what ...

How to change color of selected references

Visual Studio 2010 highlights all references to the same variable (or class) when your cursor is placed over it. with the theme I use highlighted references are white on white - making them virtually impossible to read. what is the name of "display item" in Options-> Environment Fonts and Colors that is responsible for that color? chan...

How does one use OpenFileDialog in C# in visual Studio 2010

I have written a custom dialog (form) that I can use in a C# program that behaves much like a "File - Open" menu command and brings up a window where a user can select a file or directory. The question I have is this. It has "My Computer" as its root. How can I have it so that it searches on a Network? If the file or directory is loc...

Instead of buying VS 2010 what options will you use for .net development in the future?

Given the recent release of VS 2010 I was shocked to see the pricing structure for the different versions of the product. I was lucky enough to receive free versions of VS 2005 and 2008 from attending various MS events. For the hacking I do at home I'm not sure I'm going to spend the money to purchase the IDE and wanted to see what other...

C# - Disable Dynamic Keyword

Is there any way to disable the use of the "dynamic" keyword in .net 4? I thought the Code Analysis feature of VS2010 might have a rule to fail the build if the dynamic keyword is used but I couldn't fine one. ...

STL operator= behavior change with Visual Studio 2010?

Hi, I am attempting to compile QtScriptGenerator (gitorious) with Visual Studio 2010 (C++) and have run into a compile error. In searching for a solution, I have seen occasional references to compile breakages introduced since VS2008 due to changes in VS2010's implementation of STL and/or c++0x conformance changes. Any ideas what is h...