visual-studio

How to debug a threadpool in Visual Studio?

I'm quite new to the multithreading environment and I'm having trouble debugging an application which makes use of a threadpool created by the elapsed event in System.Timers.timer class. I have a breakpoint set inside a method which is called each time by the elapsed event, but Visual Studio's is jumping between lines of code because it ...

Cleaning Visual Studio custom build step output

I've created a custom build step in Visual Studio 2010 that produces multiple files by running a command-line tool. The step creates these files as it should when invoking a build, but on a clean, it only cleans the first file I listed as an output of the step in the "Outputs" field of the custom build step. I've separated individual fil...

Pass an absolute path as preprocessor directive on compiler command line

Hi all, I'd like to pass a MSVC++ 2008 macro into my program via a /D define like so /D__HOME__="\"$(InputDir)\"" then in my program I could do this cout << "__HOME__ => " << __HOME__ << endl; which should print somethine like __HOME__ => c:\mySource\Directory but it doesn't like the back slashes so I actually get: __HOME__ ...

DataSet and Insert statements

Hi there, I'm having some trouble with Visual Studio and the creation of DataSets from a database. Whenever I create a new TableAdapter, the Insert-Methods parameters are, lets just say, fucked up. The database is a MS Access 2000 Database file. If I create a new TabelAdapter, everything works just fine. I select to create DatabaseDir...

Post build event in Vs2010 express edition?

I have been using post build events in VS 2008 up until now, and downloaded out 2010 express edition to check out the new features. in 2008, build events were in projectproperties>compile>build events I dont see that button in 2010 express edition.Is that because it's not included in the express edition or have they moved it? ...

Visual Studio debug window strips output

I'm using Visual Studio 2010 to develop a C# Application. It retrieves a Shoutcast Stream. It reads 256 Bytes in each loop-cycle and is supposed to write them to the debug-output. They are stripped badly. Could this be due to some Unicode-signs? How can I make output-window-safe Strings which won't get stripped? ...

Infragistics license file add itself to project!!?

I have a solution in VB.NET .NET 2 Use Infragistic componets all over the application. One day decided to add floating toolbar support to our Forms. Our forms inherit one base form BaseForm. This base form is used in multiple projects in the solution. So, on the BaseForm was added a UltraToolbarsManager. Since, a nightmare began: th...

Flip a label throught design panel in Visual studio

Is there a peramerter or setting that I can turn on or use to rotate a label 90 degrees? I want to use it through the design panel. I would like to avoid having to do it through code if possible. Im currently using c# as my base ...

Specify CLR namespace of auto-generated web service proxy class

When you add a Web Reference in an ASP.NET project in Visual Studio the web application's root namespace is always added. So, if I add a web reference called MyWebService and the default namespace of the application is MyApplication the namespace of the generated proxy class will be: MyApplication.MyWebService. However, I want to be ab...

Visual Studio 2008 debugging question

I've had an issue with Visual Studio that has been bugging me for some time. Whenever I debug a program that uses the C++ STL and I use Step Into the debugger shows me the code in the files where the data structure I'm using is implemented. How can I turn this feature off? I want the debugger to always stay in the file that I'm debuggin...

"Nested" Visual Studio 2010 Web Applications

I have a Web Application that I regularly update and publish to my website. I also have a /projects directory in various projects I'm working on. Some of these projects are Web Applications (or Web Sites) themselves. Directory Structure is like this: /www default.aspx /static... /bin... /etc... /projects ...

Server.MapPath not working

Hello, I'm trying to access files in a virtual directory I created in IIS for the first time but am getting weird results. OS: Windows XP Pro IIS: 5.1 Development Platform: Visual Studio 2008 Language: C# Virtual Directory Name: portal Local Path: C:\digital_communications_report_portal Default Website Local Path: c:\inetpub\wwwr...

VSPackage load order - load before another VSPackage?

Hi folks. How do you create a VSPackage that has a dependency on functionality in another VSPackage? In other words, if I have VSPackage A that exports a certain feature that I need in VSPackage B, how do I ensure that VSPackage B is loaded first? Thanks Matt ...

Why is VsPerfAspNetCmd throwing the error "Value does not fall within the expected range"?

I am trying to profile an ASP.NET application the Visual Studio 2010 ASP.NET profiler and I get the following output: C:\MyWebApp>VSPerfAspNetCmd /i /Output:MyWebAppSampling.vsp http://localhost/MyWebApp Microsoft (R) VSPerf ASP.NET Command, Version 10.0.0.0 Copyright (C) Microsoft Corporation. All rights reserved. Configuring and att...

Why are my Custom Build steps not running in Visual Studio 2010?

I have a Visual Studio project with several Custom Build steps in it, but some of them are simply failing to run. There are no errors and no warnings, and according to the build logs they are running, but they're definitely not. It was all working in older versions of Visual Studio, but it's now going wrong in Visual Studio 2010. ...

Stopping a LinkButton from being greyed out when disabled in IE

I'm trying to make it so that a LinkButton doesn't get greyed out in IE when Enabled="False". Disabling the postback like they suggest here and here works but doesn't stop the cursor and text colour from changing when you hover over it as if it were a button, like Enabled="False" does. <asp:LinkButton ID="LinkBut1" runat="server" CssCla...

Change the template for a file

When I create a new Unit test in Visual Studio, I always have a few things I do to the standard template. It would be nice when I create the file to have those things done already. Is there a way to modify the template so that when I select Add->New Nest->Unit Test, it will create a file with my modifications already done? ...

VS Setup Project Does Not Make Uninstallable App?

Using VS 2008 SP1 with the GDR update and all updates. I created several Setup projects and each one makes a nice MSI. I can run all 6 and get my software installed (all different parts of a very large system). I made a C# app to look for everything in the Registry at SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall So I could ho...

Meaning of COPY Command Used by Visual Studio Build?

I don't quite understand the \ and \.. syntax in the compile error I'm getting Error 6 The command " copy c:\project\new\.. \new\bin\x64\debug\garmin.dll c:\project\new\bin\x64\Debug\ " exited with a code 1. Can anyone explain this to me? ...

Make Visual Studio ignore exceptions?

I'm using exceptions to validate a control's input in Silverlight 4. When I throw an invalid input exception, VS 2010 displays the popup and stops the program. I ignore this and resume the program, and everything continues fine (since the exception is used to signal a validation error.) Is there a way to mark that one exception as ignore...