visual-studio-2008

Anyone using Moles / Pex in production?

Hi all, I did search the forum and did not find a similar question. I'm looking to make a final decision on our mocking framework of choice moving forward as a best practice - I've decided on Moq... untill I just recently discovered MS has finally created a mocking framework called Moles which seems to work similar to TypeMock via the p...

Click Once doesn't create StartMenu entry and Shortcut on Windows 7 x64

I've application that I deploy to share with ClickOnce so other users can install it and use it on their own machines. It worked fine till i noticed that when i install this app on my own machine (Windows 7 x 64) it doesn't add StartMenu (even thou it installs correctly and I have it in Control Panel / Programs). I didn't had that proble...

Visual Studio 2008: how to avoid project file merge hell?

When you're working on a VS C# project with multiple developers which all add new projects and files to the same solution the last one to try and check in his changes gets conflicts on the project solution file which aren't easy to merge. The easiest solution to this problem I've found is to dismiss my own changes and accept the server'...

Intellisense in header files

I just right now "migrated" from C# to C++/CLR. First I was annoyed, that I had to write all class' declarations twice (into .h and .cpp). Then I figured out, that I could place the code also into the h-files - it compiles at least. Well, I deleted all cpp's of my classes and now I realized, VS won't give me any Intellisense when I work ...

Crazy VS Designer Errors

Here's a strange one. After renaming a class, one of my forms began giving me errors in the designer, refusing to open. Funny thing is, the form worked just fine when I ran the program. I began reverting my changes to deduce the problem. I have now reverted completely back to the last commit - in which I know the form was working in ...

What are these orphan IE windows that appear sometimes when debugging in Visual Studio?

I use Visual Studio 2008 on Windows 7. Occasionally (more than once a day), when I launch the debugger via F5 to debug an ASP.NET website a blank Internet Explorer window opens and it hangs. I can stop the debugger, but the IE window doesn't go away. When I try to debug again, a new IE window opens and I can debug in that window just fi...

HttpWebRequest: The request was aborted: The request was canceled.

I've been working on developing a middle man application of sorts, which uploads text to a CMS backend using HTTP post requests for a series of dates (usually 7 at a time). I am using HttpWebRequest to accomplish this. It seems to work fine for the first date, but when it starts the second date I get the System.Net.WebException: The requ...

Setting MinimumSize Attribute for a Control in a TFS WorkItem

Tools used: Visual Studio 2008 SP1 Team Explorer Team Foundation Server Power Tools October 2008 Release. Using the Process Editor in Visual Studio, I am attempting to set the MinimumSize attribute for a control in a WorkItem template to make the default size of the input area larger. I am setting the attribute according to this web...

ASP.net debug hangs until I delete vbproj.user

Intermittently when I start debugging a web application VS hangs (not responding). It will start OK if I run the appllication without debugging. When it has happened once it will do it every time until I delete the vbporj.user file. This problem appeared when I moved to Win7 64bit. I am using VS2008 Pro and everything is patched up...

Debugging instance of another thread altering my data

I have a huge global array of structures. Some regions of the array are tied to individual threads and those threads can modify their regions of the array without having to use critical sections. But there is one special region of the array which all threads may have access to. The code that accesses these parts of the array needs to car...

What are the steps required to install latest Visual Studio 2008, including all updates?

I learnt the hard way that it is not possible to slipstream Visual Studio 2008 (embed all patches to the installation kir) - It will just fail to install properly, without letting you know that. So the only way is to install each patch one by one. What is the right sequence for this? It should include SP1, ATL patch, GDI patch, ... Als...

how to turn visual studio windows forms project into an application?

Hey everyone, I programmed an hour-sheet application and now I would like to publish it so people can install and run it. I've tried the publish function of visual studio 2008 but this gives me a clickOnce application/installer that's really confusing, but it works when I run it, but when I export the installer to another pc it install...

How to: CTRL+ Click -> Go to Definition in VS2008?

How to set Visual Studio 2008, so when I click left mouse button while holding CTRL it triggers action "Go To Definition" ? ...

VS 2008 Solution Auto checks out everytime

We are using "Microsoft Visual Studio 2008 Team Explorer Version 9.0.21022.8" Whenever i open the solution, try to build or try to get latest team explorer automatically checks out the solution. When i try to check-in displays that files are identical and check-in undone by server. what is the reason of this behaviour? ...

Using a VS2008 setup project to install a service

Is there a straightforward way to smoothly upgrade a running service using a VS2008 installer? All I want to do is stop the service and do the install. It seems this wouldn't be too much to ask. If you invoke the ProjectInstaller's Install, and the service has been installed by a previous version, it throws an exception regardless o...

Automatic profiling visual studio 2008

Is there a way to do automatic profiling in visual studio 2008? I know how the profiling works both from the command line and using the GUI in VS08. What I want to accomplish: After my nightly build I want to complete some profiling (instrumental) to see if some functions (will most likely always be the same) have changed in some negat...

how can i prevent vs 2008 express compile all my files but only the one i modify

hello how can i prevent vs 2008 express from compiling all my cpp files if i only modify one cpp file , that is not using the other onecs? ...

Update panels don't work after converting from VS 2005 to VS 2008

I've updated to the latest version of the AjaxControlToolkit, but it still doesn't seem to work. UpdatePanel for example works the first time, but it never hits my endrequesthandler. ...

Custom format document option in visual studio. Formatting CSS tags.

Hi, When i work in VS2008, i use the Ctrl+K+D very often as it saves a lot of time. But in CSS files, this command formats the document in a way i don't quite like. For example when i auto format the document, .Foo { width:1px; height:2px; } However, i like to format tags this way, as it is much more easy to read (in my opinion):...

How can I set MAXLENGTH on input fields automatically?

I'm using ASP.NET MVC RC2. I have a set of classes that were auto-generated "Linq-to-SQL Classes", where each class models a table in my database. I have some default "edit" views that use the neat-o Html.TextBoxFor helper extension to render HTML input fields for the columns in a table. However, I notice that there is no MAXLENGTH attr...