visual-studio-2008

Visual Studio 2008 WPF designer won't load my forms

I'm trying to see a form developed by someone else (ex-employee) in Visual Studio 2008 but keep running into the following error when I try and look at MainForm.xaml (it fails to load in the designer view): Error Could not create an instance of type 'NumericTextBox'. D:\MySolution\GUI\MainForm.xaml My solution is organised somethin...

Return a multidimensional array from pointer function in Visual C++

Hello, I wrote following code to return multidimensional array from pointer function.Input parameter of this function is one dimensional array, output is pointer that point multidimensional array. double **function( array< double>^ data,int width,int height ) {int i; //define returning variable that point multidimensional arr...

Can't use "this" keyword or some objects in WPF Project (identifier expected)

I have a WPF project. When I add a class and a method, and write "this.", I get no intellisense. There is a message in the bottom tab of Visual Studio that an identifier is expected, but that doesn't make sense. Furthermore, I can't access some methods/objects. Take the following example: DbProviderFactory factory = DbProv...

Using LINQ with express version of visual studio

Is it possible to use LINQ in the express version of visual studio? I am planning on refactoring my project to use LINQ, but I am the only person in my group that has a copy of visual studio pro. Will that cause any problems if someone using the express version has to modified my code? Edit I realize that the graphical tools are not ava...

Change output path

I have mutipule web projects (please don't ask me why with multipule namespaces within them, I didn't create it. lol) and the dlls need to be compiled to the main web project. The problem is that I cannot give a disk directory path because we build on another machine and that directory path is different. Is there a way that I can dynam...

Why does my typed dataset not like temporary tables?

I am attempting add a tableadapter to a stored procedure in my SQL Server 2005 Express. The stored procedure, however, uses a temporary table called #temp. When creating the table adapter, Visual Studio complains "Unknown Object '#temp'" and says that the stored procedure returns 0 columns. This is problematic because I use that stored p...

Visual Studio 2008 crashes when I open a Javascript file?

Visual Studio Team system 2008 crashes without any error messages whenever I try to open a specific Javscript file. I found this thread on social.msdn but installing the KB958502 hotfix didn't fix the problem. Has anyone else experienced this and solved it? ...

Running unit tests in parallel

Hi. Does anyone know if there is a way to run different [TestMethods] in Visual studio in parallel? ...

How to add SQL Server 2008 Express to List of Prerequisites

How can I add SQL Server 2008 Express to the list of Pre-requisites in Visual Studio 2008 SP1 MSI Installer Project. Thanks Kishore ...

How can I have design time support for my custom user controls in Visual Studio 2008?

I'm an creating a custom user control for .NET Compact Framework and I want to keep design time support. I'd like to think in Visual Studio 2008 that this is not the crazy almost impossible task it once used to be. And I'm hoping there is a simple tutorial somewhere that will show me, it is a snap. Any chance? ...

Timeout problem running WatiN tests as part of TFS build

I've gotten a simple WatiN web test running on my dev environment and am trying to get it working on the TFS build server. It is failing when just trying to load a page with the following exception: WatiN.Core.Exceptions.TimeoutException: Timeout while Internet Explorer busy. I've set the test timeout to 3 minutes which should be plenty...

What makes an app console or Windows Form application?

[Visual Studio 2008] I created a new project for console application and modified it to look like this: class Program { static void Main (string[] args) { Thread.Sleep (2000); } } Then I created another project for Windows Form application and modified it: static class Program { //[STAThread] commented this line...

What advantage have other testing libraries over the one provided by Visual Studio 2008?

Or in another way, is there any reason to install NUnit or any other library and use it instead of the one that comes with Visual Studio 2008? ...

Unable to attach to asp.net worker process as it is not in the process list

I have been succesfully debugging my asp.net site using the Visual Studio 2008 virtual server however all of a sudden it has started timing out when connecting to the debugger with the following message: "Unable to start debugging on the web server. The web server did not respond in a timely manner. This may be because another debugger ...

TDD Unit testing (VS 2008) WCF services - Symbols not loaded for debuging test

Hi there, Can anyone help, i have been succesfully testing with the built in tdd that ships with vs 2008. But now i wish to test my wcf... I added a default.aspx in the wcf service (you need to do this according the ms) ... now when i put a break point in my test.. and click the icon debug test in current context, all goes well ..,the t...

How to resolve the following linker errors in Visual Studio?

Here is My scenario. I have a project which contains 30 subprojects. In one of the projects I have used CLR (common language runtime) so I modified its runtime with /mdd (multi threaded debug DLL). Individually all the projects are built successfully. But when I try to compile the main project I am getting the following linker errors: ...

Remote Pair Programming in Visual Studio

Does anyone know of a Visual Studio add-in that allows remote pair programming in Visual Studio? Something along the lines of SubEthaEdit, where all users can edit the same document, live, in realtime. A shared/remote desktop connection where multiple users are in control of the keyboard and mouse is a step in the right direction. Howe...

IE8 + Visual studio error

I finally let windows nag me into upgrading from IE6 to 8. Now in visual studio 2008 when I try and edit an MFC dialog box, I get a "an error has occured on this page - continue running scripts? error" The add variable screen has a warning "an add-on for this website failed to run" Does Visual Studio 2008 work with IE8? Is this some my...

Threading issue with running WatiN tests under VSTestHost

I've gotten a simple WatiN web test running on my dev environment and am trying to get it working on the TFS build server. WatiN is firing an exception: System.Threading.ThreadStateException: The CurrentThread needs to have it's ApartmentState set to ApartmentState.STA to be able to automate Internet Explorer. The test runner, VSTe...

Using ObjectDataProvider in XAML to bind property crashes VS

Sorry for a very specific question, bot why VS2008 and VS2010 crashes with this code? I though it's a common to use ObjectDataProvider to bind property. I seen examples in many places on the web, but werether I try to use it I get exception and my VS closes. So, what is wrong with my code? Should I register a bug for VS? <Window x:Cla...