visual-studio-2008

Exclude whole files based on configuration from build in VS2008

I have three different configurations on my project, all three do not require all files to be build into the application. Actually I'd prefer if I could exclude those files from the build, which would make my application a little more lightweight. What I'm looking for is #if MYCONFIG or #if DEBUG statement but for files. I've already re...

Which batch file command launches and builds and compiles a VS2008 solution file?

I am writing a Windows batch script in order to automate the process of launching Visual Studio 2008, building and compiling the solution file, so that instead of manually launching VS2008 and then pressing F5, I can just run my batch file (or perhaps call it). However, the command below doesn't seem to do the job: devenv /build de...

Flat File Connection Manager in SSIS package shows "Valid File Name Must be Selected"

(Flat File Location) Samba Share | Windows Share (SSIS) _______________________________ | | XP 32bit | Works | Works | | 2003 Serv 32bit | Works | Works | | Vista 64bit ...

Batch file to launch VS2008 and compile a solution file

I have written the batch file below, in order to automate the process of launching Visual Studio 2008, and then building and compiling the solution file, so that instead of manually starting up VS2008 and then pressing F5, I can just run my solution file: START CMD.EXE cd C:\Program Files\MobileRobots\Aria\examples mbuild myProg.sln ...

Visual Studio debugger problem

In Visual Studio 2008, after debugging about 1-2 minutes, when I press F10 (Step Over), the debugger hangs and Visual Studio freezes for 5-10 seconds and then go to the next line. Then whatever I do (F10, F5, F11, etc), the debugger continues the execution as if i pressed F5 and all my forms that I was debugging close. I always have to...

Include all localized resources in MSI - VS2008

I am building an MSI for a windows service application that has a set of satellite assemblies with localized resource data in them. I can manually include the Localized content from the projects but since my application contains several projects with localized data, do i need to manually include them in the VS2008 msi file system view o...

What's the use of XML file associated with office interop assembly?

When I add a reference to Microsoft.Office.Interop.Word.dll and compile the C# project, a XML file with the same name is generated in the output folder. It seems that there is no use of this file. I deleted it and the project is still working fine. I wanted to know why VS generate this XML file and what is it's use? ...

IIS: There was a problem reading metadata from 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

I am having this most annoying issue when I try to rebuild my solution I get 4 lines of: There was a problem reading metadata from 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\MyWebSiteName... I tried restarting IIS, so I could delete the temp files, but they're locked. How can I fix this annoyance, it only ...

Problem with VB .Net 08 ConfigurationErrorsException was unhandled error

Hi there friends I'm doing a project for partial fulfillment of my under graduation. In the program the front end is VB >net 08 and back end is MS Access. The problem is ConfigurationErrorsException was unhandled error. My project is based on gas agency. In this project I take 3 input from user for adding customer details , gas booking a...

how to open *.sdf files ?

i used to open sdf (sqlCE) files with visual-studio ?? or sql-server ?? i really don't remember. now i can't open this sdf file with what program do i need to open it ? ...

Add Service Reference is generating Message Contracts

OK, this has been haunting me for a while, can't find much on Google and I am starting to lose hope so I am reverting to the SO community. When I import a given service using "Add service Reference" on Visual Studio 2008 (SP1) all the Request/Response messages are being unnecessarily wrapped into Message Contracts (named as --> "operat...

How to check whether my custom hashing is good in hash_map?

I've written a custom hashing for my custom key in stdext::hash_map and would like to check whether the hasher is good. I'm using STL supplied with VS 2008. A typical check, as I know, is to check the uniformity of distribution among buckets. How should I organize such a check correctly? A solution that comes to my mind is to modify ST...

Visual Studio crashes when I debug a project with a certain form open in design mode..."Catastrophic failure"

As the title says, VS2008 keeps crashing on me whenever I debug a project when a certain form is open. I attached another VS2008 instance to it and found the following exception to be the culprit: System.Runtime.InteropServices.COMException occurred Message="Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))" ...

How do i edit Values in Visual Studio 2008?

hello im making a application and i need to know how to change the values of address's for example : Memory Address : 0xB7CE50 Value : 100000 Is there a wiki page or a function for this? if so what is it? ...

Mix Enviroment Debugging ( C# Fortran) in VS 2008

I have two visual studio projects, one written in C#, another written in fortran unmanaged code ( Intel Fortran compiler). Both of them are attached to one solution. The C# is the frontend winform, whereas the fortran project is the backend. Is there any tutorials that teach on how to step into code direct from C#? ...

securing connectionstring

What's the best method for securing connectionstring information in an app.config file for deployed winforms applications? reference ...

How to add SQL Server plugins to Visual Studio 2008 ?

Hi Everybody, I have a SQL Server 2008 database which is located on a distant server (I have full access to this server however). On my computer I have Visual Studio 2008 installed, and I need to load a solution which contains projects that have been created using plugins from SQL Server. Those plugins are : - SQL Server Analysis Servic...

Dynamically setting the IISUrl of a Web Application Project

I have a web application project that I'd like to be able to branch and develop on a totally separate IIS site and not have to keep editing the vbproj IISUrl setting each time I do it. I have tried adding an import of some standard properties so I can maintain them outside of the WAP file but when I reference them in the element it does...

Running an exe file from another exe file

I need to create a setup where there are two exe files in it and one exe must run after the other exe file. Is there way to do this without including a bat file? (Currently I'm using Visual Studio 2008 to create my setup) ...

VS2008: Projects now take forever to open

Hello, yesterday afternoon Visual Studio 2008 suddenly started taking a really long time to open ASP.NET (Web Forms) projects, after several months with no problems. This problem seemed to begin after I tried adding references to "CrystalDecisions.Enterprise.dll" and "CrystalDecisions.Enterprise.Framework.dll" to my main work project. H...