visual-studio-2008

Unknown error while reading AVI files in OpenCV

Hi, whenever i am trying to read out the avi file and converting into grayscal using Opencv 2.1 and VS 2008 in windows xp i don't why i am getting following run time error at the same time i am unable to get the help on it ERROR 1 [NULL @ 0x37da10]Invalid and inefficient vfw-avi packed B frames detected fps=23 frame (w, h) =...

IDE crashes while calling ProjectItems.AddFromFile with TFS connected

Hi, i wrote a Visual Studio 2008 Addin, which generates some code files for me with some settings which i can enter on a UI form. If i execute the addin with a connection to our TFS 2008, the dialog of the TFS appears where the progress bar is shown (file is added to tfs source control). The host IDE (where i call the Addin) crashes w...

Show Unfriendly HTTP 500 Error in Visual Studio

Hey everyone I am writing an app that posts XML to a webservice and am constantly greeted with a WebException claiming a HTTP 500 error on the server. Is there anyway to see the specifics of the error akin to the "unfriendly" error messages in Internet Explorer? The "See details" button doesn't seem to list the exact server response I...

Building C++ CLR app for Platform Toolset v90 in VS2010 requires Visual Studio 2008

I've got a shiny new laptop with the latest Dev tools installed such as Visual Studio 2010. Now I've got a task to build a C++ CLR app targeting the 2.0 runtime (this is well outside my comfort zone). So I've specifed the v90 Platform Toolset but when I build I get:- error MSB8010: Specified platform toolset (v90) requires Visual S...

Visual Studio: Edit XAML file while debugging

The title says it all: I have a WPF application running in debug mode, and I would like to change the XAML while the application is still running. I'm not asking for Edit-and-Continue. I don't mind that I will have to restart the application for the changes to become effective. I just want to be able to make changes to the XAML file whi...

Is the Entity designer in VS 2008 just plain broken?

I was working in L2E with 3 simple tables, whose purposes a fairly straightforward: Users, Users_Roles, Roles. Users had a 1:many relationship with Users_Roles, referenced on the column UserID (a uniqueidentifier). At the time, Roles had no relation to any tables. I brought all 3 tables into the designer, which reflected the mapping of ...

Why do extension methods not work with namespace aliasing?

This may be an ignorant question, but I'm unsure why I can not use namespace aliasing and extension methods together. The following example works just fine: Program.cs using System; using ExtensionMethodTest.Domain; namespace ExtensionMethodTest { class Program { static void Main(string[] args) { v...

Class modifier for automatically generated classes

When I add a new class to a project, the class modifier/access specifier for the newly created class in Visual Studio is ommitted, thereby making it internal. Is there a way I can specify in Visual Studio settings that whenever I ask for a new class to be created, please make the class public? I looked in the Tools->Options menu but co...

Debugging across projects in VS2008?

We have a DLL which provides the data layer for several of our projects. Typically when debugging or adding a new feature to this library, I could run one of the projects and Step Into the function call and continue debugging code in the DLL project. For some reason, that is no longer working since we switched to Visual Studio 2008... ...

How does one have the C# designer know the default property for a Padding or other object/struct in C#

How does one tell the designer the default value of a Property when it is not one of the types supported by DefaultValue()? For instance, a Padding, or a Font. Normally, when you use a Windows Forms control, the default values will be in a normal font in the Properties window, and changed (non-default) values will be in bold. E.g. In...

SSIS - when a connection is down

Hi. I've got a simple SSIS package that I edit in VS2008. What is basically does is run the same SQL StoredProc, residing in different SQL servers, and aggregating their output into a flat file. Simply put, four OLE DB Data Source going to a 'Union All' to output. If one of the servers is down, how can I make the package skip the valid...

Creating msi in vs08 - few questions

I am creating an MSI from inside visual studio 2008. This is what I am doing: (With the project I am creating this for open in Visual Studio) right click Add new project Setup and Deployment > Setup Project Give it a name Right click Application Folder > Add > Project Output: Primary Output Question: does this contain all I need to ru...

Assembly becoming 32bit specific when built in release rather than debug in VS2008

Hi All, I am having a strange issue when building assembly's for one of my modules. I was getting errors when running on 64bit which I traced back to being related to the assembly being 32bit specific. Our modules are(or should) all be built to be bit agnostic. Running CorFlags.exe on the assembly showed the following. Version : ...

Multiple cleanup actions on VS2008 Unit Testing

Hello guys, The questions is pretty straightforward and I need to know how to create multiple cleanup tests. I have some tests, and each test creates a different file. I would like to bind a cleanup action to each, so I can delete the specified files for each test. eg: [TestMethod] public void TestMethodA() { // do stuff } [TestMeth...

Setting a password for a DB in SQL 2005

I am writing a program in VS 2005 and I wanna control the access to one of the DBs in SQL Server 2005 (Express) I mean, I do not like let other applications to connect to this server an access the data in this DB. What can I do? ...

Visual Studio 2008 and Office 2003

I have been interested in using the VSTO but I am running Visual Studio 2008 and I have Office 2003. I know it is possible to use VSTO 2005 SE for Office 2003 but I can't find any information on programming Office 2003 with VS2008. Is this possible? If so how do I do it? ...

How to Inherit from WebBrowser control in x64? Designer Error

I'm having an issue with an application made in Visual Studio 2k5, and we're taking it to 2k8 and 64-bit compilation. It compiles fine, and works fine, but the designer doesn't like us. Whenever I try and start the designer up on the main form of the application, I get this error: Could not find type 'MyNameSpace.MyWebInherited'. Plea...

Visual Studio 2008 Setup Project

I need to build a setup project for an windows application I developed in C#. Along the way, I need the user to be able to set the database server/instance name along with authentication type, and a username /password if they are using SQL authentication. This connection string is stored in my app.config file. Once setup is complete, a ...

ATL project created using wizard does not compile due to unresolved symbols

I have been working on getting a basic ATL project to compile in Visual Studio 2008 and I keep running into errors. Ultimately I have gotten stuck with the following build errors: 1>Linking... 1> Creating library Debug\SomeProject.lib and object Debug\SomeProject.exp 1>dllmain.obj : error LNK2001: unresolved external symbol _LIBID_Som...

CssClass value not found for non-MVC ASP.NET form

I know that people have had some trouble with undefined CssClass values when using partial classes in ASP.NET MVC. My project is not MVC, however, and I am including a .css file that is in the root folder of my project, yet a referenced class value still results in a warning in VS 2008. In my .aspx file: <html xmlns="http://www.w3.org...