visual-studio-2008

Visual Studio 2008 assembly level debugging

In the Disassembly window, I have something like: call dword ptr ds:[6275FCh] What can I type in the address box, in order to go to the indirect address pointed to by [6275FCh], without having to copy-paste it from the Memory window, and of course without tracing into the thing? EDIT: Actually the ultimate dream would be t...

In Visual Studio 2008 - how long before a web.config change "takes"?

I have some settings in a web.config file that I want to override when I'm testing the ASP.NET app locally on my machine. The main part looks like this: <appSettings file="WebAppSettings.config"> <add key="DEBUG" value ="False"/> <add key="PROD" value="TrueInMainConfigFile"/> </appSettings> Now, in my local "WebAppSetting...

Does the user control test container in Visual Studio work on 64-bit OS?

I recently moved to a machine with 64-bit Windows. When I try to debug a winforms user control with the test container that's included in Visual Studio Team System 2008, I just get an empty test container and the user control does not load. Nothing even shows up in the list of controls that can be loaded. I hope that there is something o...

Visual Studio 2008. MFC event wizard broken

OK, so it's almost a programming question - The VS2008 dialog event wizard has stopped working. Double-clicking on a button in an MFC dialog project does not fire the wizard as usual and a right-click to get to the 'Add Event Handler...' shows a dialog with no message types. Further to this the MFC message mapping and virtual class li...

How can I find which classes implement a given interface in my project/solution?

I have a solution. I have an interface. I have several classes that implement the interface. I can use "Find All References" in order to find where the interface is implemented, but it also returns results where the interface is the return type, or where a class explicitly implements an interface's method. Is there a better way to quic...

DllNotFoundException -- VisStudio 2008, C#

This just started happening with an application that has been working: "A first chance exception of type 'System.DllNotFoundException' occurred in PresentationCore.dll A first chance exception of type '.ModuleLoadException' occurred in PresentationCore.dll A first chance exception of type 'System.TypeInitializationException' occurred in...

How to open the red-button menu on Visual Studio (2008) with the keyboard?

When you type something and there's some problem you get a tiny red rectangle at the end of the symbol/word that has the problem and when you hover the mouse over it, you get a button and when you press the button you get a list of possible actions to fix the problem, including adding using statements or refactoring. Is there a way to o...

VS2008: Highlight several words in different colors simultaneously - Possible as plug-in?

Hi, I use GVim and Visual Studio for coding. One of the most missing features in VS compared to GVim is the possibility to highlight several words in different colors simultaneously. See this screenshot of a GVim session for an example (wResult and fBufferLocked are marked) In GVim I use this feature very often to get a quick overview...

Converting VS2008 Website to Web Application

Has anybody ever converted a visual studio website to a web application? I would like to get sln and vbproj files for my website but I can't seem to find the convert. I would hate to have to do this by hand. ...

ASP.NET Configuration doesn't show up in Visual Studio

Hey, I have a problem with VS2008: When I create a new ASP.Net website, no database shows up in the AppData folder. I create a new one via the server browser, and then apply "Add existing item" on the AppData folder to "import" the database. Is this the right way to do it? Plus when I chose Website / ASP.Net configuration, my CPU works ...

Exclude file from Visual Studio Deployment Project depending on Configuration

I have a solution with 3 projects: windows application, class library and setup project (Visual Studio 2008). Solution has 3 configurations: Debug, Release and Release with DLL. I want to include or exclude that DLL depending on current configuration. How can I do that? ...

Get the Exception Trace ( or the Log File) when VS 2008 Crashes

My VS 2008 has a lot of plugins such as Resharper, Syncfusion, Typemock, TestDriven.net and you-name-it. And I am always running all of them on the latest beta versions. The problem is that this morning the VS 2008 crashed when it was loading Windows Form designers. I think it must be due to Syncfusion ( version 7.2.0.20), or its intera...

Visual Studio 2008 custom config xsd intellisense auto complete broken!

Hi, I used to use the intellisense feature within visual studio 2003 for editing a custom .config file against my custom xsd schema. I put the schema in: Common7\Packages\schemas\xml Everything worked happily, no problem. I have just tried to do the same in VS 2008 and there is no intellisense. The schema viewer for the .config file...

Why is Visual Studio telling me I have "compiler generated references" when I try to rename a method?

I have a method called FormattedJoin() in a utility class called ArrayUtil. I tried renaming FormattedJoin() to just Join() because it's behavior is similar to .NET's string.Join() so I figured it made sense to use the same name. However, when I try to use Visual Studio to rename the method, I get this warning: This member may have c...

C#: Resource file refactoring

Does anyone know of a good tool for refactoring resources in a visual studio 2008 solution? We have a number of resource files with translated text in an assembly used for localizing our application. But they have gotten a bit messy... I would like to rename some of the keys, and move some of them into other resource files. And I would ...

When I make a database change, how do I know what needs to be removed and readded to the LinqToSql O/R Designer in Visual Studio?

For example, I alter a column in a table to be not null from null. I need to then delete and readd the table. That part is pretty clear. What about views, functions, and stored procedures that access the table, especially that column in the table? I've tried running diffs against the files generated by SQLMetal with some limited succ...

Unit Testing data from DB2

I have a .NET project (Test project) in VS2008 and am doing some unit tests for the data in DB2. I am finding that the tests are not transactional and I have to phyiscally go and delete the data or run a function to clean the data before I run the test even though I am using ITransaction. Can any one point why? ...

Model class image disappears on mouse-over

I have just added an Entity Framework model to my console project in VS 2008, but when my mouse pointer moves over the only class in the model, in the model designer, the graphic for that class becomes invisible. Anyone else had this problem? ...

Do I need to run devenv.exe /setup twice? [VS 2005 and 2008]

I am writing a VS Integration Package and setup using Visual Studio Setup Package. I have a custom action that runs "devenv.exe /setup" when the package is installed. If the user has VS 2005 and 2008 installed, do I need to run devenv.exe /setup from both directories? Like so: "C:\Program Files\Microsoft\Visual Studio 8\Common7\IDE\dev...

VS2008 C++ app fails to start in Debug mode: This application has failed to start because MSVCR90.dll was not found

I've got a minimal app I just created, using VS 2008 SP1 on Vista x64. Its a Console app, created with the wizard, no MFC or anything, I'm building it in 64bit. When I run the debug exe, on my development box, by pressing F5 in Visual Studio 2008, I get this error: TestApp.exe - Unable To Locate Component This application has failed ...