visual-studio-2008

Debug ASp.NET MVC with IIS5 in Visual Studio 2008

Hello, I have been trying this for some time but could not figure out yet. Is there a way to choose IIS5 as the web server instead of the default Cassini which comes with Visual Studio 2008? I have web flow(request, response) from my web site to a 3rd party provider and would like to know what I am getting back from the 3rd party. Ri...

Web Application + Silverlight project in TFS, .xap file keeps being checked in, can I avoid it?

When I look at my ASP.NET application that hosts a Silverlight project, it has a Clientbin folder, inside of which there is a .xap file, the one being compiled from my Silverlight project. This file keeps being checked into TFS. Is there a way for me to tell TFS to just plan ignore it? The reason is that once the file is checked in, if...

The Build toolbar no longer shows in Visual Studio 2008 Team Suite

I'm using Visual Studio 2008 Team Suite and have always had the Build toolbar enabled and in constant use. Today after logging in I saw the toolbar wasn't there. It is available but even after disabling and reenabling it it still doesn't appear. I have tried: repairing my installation of Visual Studio resetting my settings (and have...

How to attach a datafile to a windows app installation

I'm writing a windows application in c#,FW3.5 & Visual Studio 2008. I need to attach one or more datafiles to the installation. The requirement is that when the end user installs the application, a folder will be created and the datafile will be put in this folder. Is there a way to do this by amending the publish settings in Visual St...

VS2008 Setup Project

I have a C# project, built using VS2008. It has a number of third party dependencies. However, when I create a set-up project for it, the “Detected Dependencies” folder is empty. How do I either force it to detect these dependencies, or manually add them? ...

Debug heap memory leak detection - strange results?

I think my C++ application is tight and doesn't leak any memory. Long running stress tests and static code analyzers seem to indicate as much. However, when exercising a very complex usage szenario the Visual Studio 2008 built in debug heap will show a couple of warnings like the following on exit: Detected memory leaks! Dumping objects...

Visual Studio: Attaching to development server creates a new one

Here is what happens: I Click "View in browser" which starts up a new asp.net development server. Go to Debug > Attach to Process, and select that dev server instance (it's the only one running) Watch as a new development server starts up on a new port. The debugger still attaches to the correct instance of the dev server, the new on...

How do I build all configurations of a Visual Studio 2008 C++ project on the command line?

I'd like to build all the configurations of a VS 2008 C++ project on the command line. Something like: devenv TheProject.vcproj /build /nologo But this doesn't work because the /build command insists on having a configuration following it like this: devenv TheProject.vcproj /build "Release|Win32" /nologo Is there a way to get...

How do I reset Visual Studio so that it once again searches for source files of DLLs while debugging?

Hallo! In the process of debugging my WPF project, I regularly encounter thrown exceptions. When these exceptions fire, if the exception is thrown by my application's code, I am able to browse the source code. All is well. HOWEVER, if an exception is thrown by code hosted in another assembly (that we built), I am unable to browse for t...

Remove environmental variable programmatically

I need to write a unit test for some C++ code that checks for the presence of an environmental variable. I'm using MSVS 2008 and gtest as my framework. I add the environmental variable using putenv, I check the environmental variable using getevn, but I can't figure out how to remove it so that no other test will see it. I realize this i...

Problem Deploying Web Service in C# that uses VC++ dll

I created a web service using VS 2008 C# that uses VC++ dll, In my development enviroment it works, but when I deploy it to the IIS I get this error: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1) [COMExcept...

Visual Studio 2008 Intellisense Priority Settings

Is there someway to get VS 2008 intellisense to default to Properties over Classes in a name collision? Example: Within my scope I have a property Foo, but I'm also using a class Foo. When writing code, if I start to type F o, VS2008 intellisense will think I mean the class Foo. I want it to think I mean the property Foo instead. ...

How do I set Environmental variable for my application while profiling it under visual studio 2008

I have an application. I compile it using vs2008 team system. To run this app some certain environmental variables need to be set, such as SYSTEM_MODULE_PATH. My app loads system modules from there. Without this variable it wont run. So When I profile it, I want to set this variable so that my application runs properly. Now my question...

Breakpoint Problem in VS2008

I have an ASP.NET web site project that I want to debug, but when I try to debug it Visual Studio gives the message "The breakpoint will not currently be hit. No symbols have been loaded for this document". Does anyone know of a solution to this that does not involve reinstalling everything. Debug is enabled on those files. Edit: manual...

Running executable from VS2008 crashes with error "Application was unable to start correctly (0x000007b)" x64

This error is present in both Debug/Release. So the original problem was that it had 32 bit library that I did not link to 64 version of it. (Previous version of this question) I fixed that. And application works on Windows Server Standard 2008R2 x64. I tried running application on Windows Server Enterprise but got above (title) menti...

Enable Unmanaged Debugging always causes Visual Studio crash

Never before had any problems with enabling unmanaged debugging. I'm using Vista, VS Team System 2008 (9.0 30729.1 SP) and VS 2005 Team Edition for Software Developers (8.0.50727.867). Starting today I cannot debug unmanaged code from C#! I cannot even set a check on enabling unmanaged debugging for an empty C# console project with no...

Getting 64-bit CPUID sample code to compile in VS2008

I'm trying to get some c & ASM sample code I found running in Visual Studio 2008. I don't think the problem is the difference between VS 2005-2008. This example is supposed to get the CPUID on 64-bit systems. (My attempts getting the ASM-only 32-bit examples to compile failed too) I can copy and paste this code into a new project, bu...

Visual Studio 2008 with SQL Server 2005 Developer Edition

I am trying to add a database to the App_Data location in an ASP.NET MVC 2 application in Visual Studio 2008 (VS). I have SQL Server 2005 Developer Edition installed on the local machine. However when adding the database VS complains that SQL Server 2005 Express is required. I configured VS to use the local server instance (MSSQLSERVER)...

How to build an addin for visual studio 2008

I have a cms that exposes most its data through a somewhat kludgy mostly xml driven api. I want to build something like the LINQ to SQL Classes data context but for this cms. How can I add something to the new item list so that I can handle its designer window? Does that make sense? I would be happy to clarify if anything is unclear...

DevelopmentServerPort merge conflict

I have a team of people working on a Visual Studio (C#) project, and we keep running into this problem where there is a merge conflict in the project file on the DevelopmentServerPort. Apparently the DevelopmentServerPort is saved in the project file, rather than in user settings. Is there any way to solve this, other than forcing it...