visual-studio-2008

Visual Studio 2008 hangs if connection string set incorrectly

When opening a web site in Visual Studio 2008 with SQL Express 2008 on Windows 7 64-bit, it would open fine. In fact, several files would also often open fine. But when opening a particular control, VS would hang. 0% CPU usage reported, but watching the Resource Monitor showed that it was often "Waiting on Network I/O"; not always--somet...

Extracting visual studio theme?

I want to save my theme out of visual studio so that if(when) i need to reformat my computer my theme is available for use. How can i do that? ...

How do i test an "if(somecondition) return;" statement?

Using NUnit 2.5 in VS 2008, i'm not sure how to test that a function simply return;s when some condition is set. Is there an Assert method that serves my purpose, or is this not testable? ...

Visual Studio 2008 imports WSDL with wrong data type

Hi all, I'm trying to use a web service and thus added a web service reference to my project using the service's WSDL service description. All is well, there were no error message, but I noticed that one field is declared as string in my web service reference while it should be int. Going through the WSDL service description, I notice...

How to change how a User Control is dragged and dropped into source pane

In Visual Studio 2008, if I wanted to drag a user control (that I have created) into the current page/control, I have to switch to Design view before dragging it into the pane. If I try to do it when the document is in Source view, it sends the markup as a hyperlink and not as the <%@ Register etc.. %> with the <uc1:usercontrol ... whe...

Visual Studion 2008 App_Data defaults

Is it possible to use the App_Data folder in conjunction with SQL Server 2005? When I try it specifies Express even though I have changed the Tools>Options>Database>Data Connections to the correct server. I have downloaded SQLEXPR32_x86_ENU.exe Version 10.0.1600.22 file locally and have gone through 7 installs and deinstalls with a var...

Win32_Printer ManagementObjectSearcher Error (VS2008 C#)

First, this code worked in VS2005. The code in VS2008 crashes with an UnauthorizedAccessException whenever I try stepping over the foreach loop and assign a ManagementObject. public static List<string> GetPrintersCollection() { if (printers == null) { printers = new List<string>(); string searchQuery = "SELECT * FROM Win32_Pr...

How to Bootstrap SQL Server 2008 Express SP1?

I am trying to bootstrap SQL Server 2008 Express SP1 into my application. Previously I used Wise for Windows to perform the prerequisite installation, but Wise doesn't support Windows Installer 4.5 yet. I am now trying to use the Visual Studio 2008 bootstrap technology with WiX 3.0, and have had good success getting the SQL Server prer...

VS2008 javascript debugger in usercontrol

Hi In a VS2008 web project I have a usercontrol with some javascript that I want to debug. When I try to set a breakpoint I get "This is not a valid location for a breakpoint". I tried this on a regular aspx page and was able to set the breakpoint just fine. Is there some limitation for setting javascript breakpoints in usercontrols? ...

How do I dismiss a modal window created during a Visual Studio 2008 macro?

I am trying to create a macro in Visual Studio 2008 to attach to my local webdev server for an asp.net mvc project. Here's the current macro code: Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports System.Diagnostics Imports System.IO Public Module Macros ' This subroutine attaches to the first Development Web...

Event toaster for visual studio 2008

I often use visual studio 2005 side-by-side with visual studio 2008. Do you remember the visual studio 2005 power-toy event toaster? You could configure it to pop a balloon in the system tray when a build was complete. Is there a FREE plug-in for visual studio 2008 that does the same thing ? I really miss the event toaster. I used to z...

What are the best debugging techniques available in visual studio 2008 to save a lot of time finding the exact reason of the problem?

What are the best debugging techniques available in visual studio 2008 to save a lot of time finding the exact reason of the problem? ...

Do I have to install IIS on my development PC in order to develop WCF Services with Visual Studio?

I am trying to teach myself WCF (using "Learning WCF" by Michele Leroux Bustamante), and so far the book is very instructive. The application that I eventually want to develop is a web service, hosted in IIS, and so "Hosting a Service in IIS", which is a section in Chapter 1, is exactly what I want. BUT it seems that I need IIS install...

How to prevent project files appearing in Visual Studio MRU?

I'd love to know whether and how the Visual Studio IDE can be prevented from adding project files to the Recent Projects MRU when adding an existing project to a solution. I know it's a bit trivial, but it's a PITA that when populating a new solution with several projects most/all of the MRU's useful solution list is replaced. ...

using App_WebReferences on a webpage (webservice)

I am trying to call a webservice from my webpage. I have used the menu to add a web reference and now I want to call it from the a .cs file. I tried doing it in a forms application and had no problem doing it since the applicationname could be used as a namespace. From what I know of webpages this can not be done in a webpage. the Web ...

dos command in visual studio installer project

i want to execute a command say "net start "servicename" from within installer, i can't use custom actions any ideas? ...

Where are these dots coming from? How to get rid of them?

For the life of me, I don't know when and how these "dots" started showing up in my IDE. I'm not sure if it's Visual Studio OR Code Rush from DevExpress that is doing it. If anyone knows how to make them go away, please help! =) ...

How do I fix my C# Express pre/post build events?

I have 2 machines that have the Express version of C# on them. On one, I can build my solution and my build events execute perfectly. On the other, no matter what is put in the event it always fails. The build output has "C:\Documents in not a valid path" or something to that effect, and points to the line in Microsoft.Common.target...

Visual Studio 2008 Macro for Building does not block thread

Hello, I am trying to write a macro for Building my application, kicking off an external tool, and ataching the debugger to that external tool. Everything is working except for the building. It builds, but it is not blocking the thread so the external tool gets kicked off before it can finish. Is there a way I can run ExecuteCommand an...

Visual Studio 2008 Bug - F10 not stepping through any code?

When I go into debugging, normally when you hit a break point you can press f10 to continuously step through the code, but when I press f10, it does nothing and it highlights the file dropdown at the top as if im hitting the alt key. another issue is when i try to move over variables and click the + to expand into them they just disappe...