visual-studio

Why would Visual Studio/CLR produce a "bad" executable?

This is a weird problem I have started having recently. My team is developing a COTS application and we have a few people with their hands in the code. A few weeks ago, I received an error message when trying to debug (and run the compiled EXE): "Windows cannot access the specified device, path, or file. You may not have the appr...

UAC/VS/W2K8: Why does VS not launch with admin privleges when I am in the Administrators group?

Server 2008 machine with SP1, Visual Studio 2008 with SP1. My user; Developer, is in the local Administrators group. That said, some actions I perform in Visual Studio (use the properties window of a web application to invoke the creation of a virtual directory in local IIS) tell me that Admin privileges are required. It is an annoyance ...

Realign namespace definitions with file structure

Like all developers with OCD I try to organise my namespaces within our project so that they match where the file they are contained within sits of disk. However after a pretty massive refactoring session within VS.NET I've moved files within projects and created new subfolders a plenty, leaving the refactoring of the namespaces to late...

Visual Studio Crashes when using Crystal Reports Group Editor

I have a crystal report in my Visual Studio 2008 ASP.NET project, and when I choose "Group Expert" from the Crystal Reports -> Report menu, Visual Studio crashes / hangs and I have to use Task Manager to close the program. This happens no matter how many times I try, and oddly enough it seems to work fine on another computer with the sa...

Automatically setting up unit test projects in VS2008, need help

I'm beginning to toy with the new ASP.NET MVC framework, and reading around in some tutorials I saw that in addition to creating the MVC project, theres an option to add a Unit Test project, using the Test framework (which I have) thats basically already set up for MVC testing. Its supposed to pop up when you create a new MVC project, an...

Building .Net User Controls

I am currently building a .Net userform using C# and I am populating it with custom user controls. The controls each have an accessor that gets and sets the object that contains the data that the control will be populated with. At runtime, everything works great, but at design time I will get errors in the form designer. The errors ar...

Remove elusive keyboard binding in visual studio

Ever since I installed the free edition of devexpress backslash (Alt Gr++ on my swedish keybaord) is bound to expand selection. While that feature is useful I still prefer backslash when I am to choose between the two. When I check Tools | Options | Environment | Keybaord I can't find the shortcut anywhere and I can re-bind the shortcut...

How do I set the icon for my application in visual studio 2008?

How do I set the executable icon for my C++ application in visual studio 2008? ...

How to view load test reports by individual request in Visual Studio Team edition

When performance testing a web site using the Load Web Test of Visual Studio one gets a summary of the results. Useful measures are shown, like the average response time, maximum response time etc. One thing that intrigues me is being able to drill down to specific requests if needed, answering questions like what was the single reques...

VS2008 Navigate to class definition add-in

Hello, I am looking for a Visual Studio add-in that would analyze the text around the cursor position and navigate to the corresponding class definition. For example I have this XML file that is currently open: <object id="abc" type="MyProject.Foo.Bar, MyProject"/> If I put the cursor somewhere between the double quotes on the type ...

VS2008 debugging with firefox as default browser - how to make the debugger stop/close on exit?

I have Firefox as my default browser on my dev machine and when I start debugging from visual studio Firefox launches as I would expect and all the attributes of the experience are the same as IE except for one thing - when I close the browser. When using IE, when I close the browser visual studio will automatically shut down the debugge...

Visual Studio 2008 Installer Project - Custom Actions not firing

I can't seem to get a custom action working. I might be doing this wrong. Here's what I'm trying to do: I'd like to run a custom action in my application install (Visual Studio Installer project) that runs an executable. The executable simply does some system.io filecopy tasks, and I've confirmed that the executable when ran by itsel...

How to move "Solution Explorer" tab in Visual Studio

Does anyone know how to move the "Solution Explorer" tab in Visual Studio 2005? It's on the left, and I can't move it to the right. Thanks, Alan ...

Visual Studio Project References inside solution

What is the best way to reference a project inside solution. I added references via Add Reference --> Projects. However it links to either release DLL or Debug dll. I want to have project itself in the reference, when we compile the projects, all the references projects must be compiled (through dependencies). How to do this? ...

Any have a Visual Studio shortcut/macro for toggling break on handled/unhandled exceptions?

I've been trying to write a macro do do the equivalent of Hitting Ctrl+Alt+E to bring up the Exceptions window Toggling the textbox in the 'thrown' column for 'Common Language Runtime Exceptions' Hitting OK If I record this, it records only a single line of macro code which doesn't do anything. Anyone know how to do this? ...

.NET Regular Expressions in Infinite Cycle

I'm using .NET Regular Expressions to strip HTML code. Using something like: <title>(?<Title>[\w\W]+?)</title>[\w\W]+?<div class="article">(?<Text>[\w\W]+?)</div> This works for 99% of the time, but sometimes, when parsing... Regex.IsMatch(HTML, Pattern) The parser just blocks and it will continue on this line of code for several ...

Can I set the process title for IIS6's w3wp.exe?

In Visual Studio's "Attach to Process" dialog I can see a Title column for each of the processes available. Is there any way for me to set the title for a specific w3wp.exe process to reflect the application pool it's hosting? PS - I'm aware of iisapp.vbs and the way it enables me to identify which w3wp.exe belongs to which application ...

Problem building a Setup project

I'm working on a tool to simplify an application's deployment. Hence I'm aiming to automate the build of the setup project. The Situation: When I use Visual Studio to build the setup project this, creates the msi and exe files and concludes successfully. The problem occurs when I run a command in the command prompt, I keep getting this ...

Visual Studio Tips on getting headers that are used in a given project?

I have added all the header files from library in path how to get the headers that are only needed for the project ...

Visual Studio C#-settings and StyleCop (MS Source Analysis)

Does anyone have settings for Visual Studio, in XML or a .vssettings-file, that is compatible with StyleCop? I've used the book Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries for guidance on what Microsoft finds to be the correct way to format C# and set my Visual Studio-settings accordingly. ...