visual-studio-2008

How to find the location of the icon in the system tray.

I have a NotifyIcon control that appears in the system tray. How can I find the location (x, y) of the icon on the screen? Thanks ...

Consuming a REST service from WCF

I'm not that familiar with WCF, but I thought I'll learn while trying to consume an existing service. One of the REST APIs I thought of was the Twitter API. I thought of developing a WPF client that will just output to the screen the last 5 tweets by a certain Twitter user. I was wondering if someone could please briefly outline the st...

Connecting to AdventureWorks database (SQL Server 2005 Express) through Visual Studio Professional 2008

I am following the learning ASP.NET 3.5 by O'REILLY to write some ASP.NET 3.5 code using Visual Studio 2008 SP1. I have gotten to the point to where I need to Configure a Data Source using the SqlDataSource control. I chose Microsoft SQL Server (SqlClient) even though I have SQL Server Express 2005 - This seems like the only logical ch...

Visual Studio 2008 Test View Panel Not Showing All Tests

I have a set of 6 MSTest test assemblies. When I bring up the Test View window and group by Project all of my projects show up save one. I cannot seem to make Visual Studio understand that this project is a unit test assembly. Resharper's Unit Test Runner has no problem identifying this sixth assembly. So the assembly is fine from that ...

Is the Visual Studio 2008 Object Test Bench useful for anything?

Is the Visual Studio 2008 Object Test Bench useful for anything? Maybe I'm missing something but aside from a flashy version of the immediate window, it doesn't seem like a developer would actually use it for anything. (And how many people knew it existed in the first place?!) In case you're wondering, the 'Object Test Bench' is loc...

Is it possible to compile libCurl with SSH support using vc8?

I am working on an application, implemented in VC++ 2008 that needs to use sftp through libCurl. In order for this to happen, libCurl needs to be built with ssh support. The problem is that, unlike the mingw makefile, the makefile for vc8 does not have target configurations to build with SSH support. Does anyone know what needs to be ...

How does MbUnit work with VS 2008

I set up MbUnit and have been trying to get it to work with VS 2008 using the MbUnit GUI but every time I run a test it closes and I get a this program needs to close error. I had a similar problem with Gallio where I got a runner exception every time I ran a test. Do I need an addin for VS like testDriven.Net to get this to work? ...

What is the best way to debug a NUnit test?

My platform: Visual C# 2008 Express Edition with NUnit 2.2.7 I have a solution with my code in one project and my NUnit unit tests in a different project in the same solution. I have been struggling hard to debug and single-step through the NUnit tests. I found some references online that suggested calling the following: NUnit.Consol...

VSTO problem - cannot create visual studio excel workbook project

When I try to create a Excel 2007 Workbook project, in Visual Studio 2008, I get the following errormessage: Project cannot be created because the "Excel Visual Studio Design-Time Adaptor Add-in" is not working correctly. Excel might have disabled the add-in or made it inactive, or all add-ins might be disabled in your Trust Center s...

Is it safe and acceptable to install VS.NET on your production server?

Usually, we install VS.NET on our production server, to solve problems easily with our product, if necessary. Is this a good or bad idea? ...

Using VS 2008 (vb.net) I need to create an object I can use in Classic ASP with CreateObject

I am very new to VB.net. I have written these objects in VB6 before. I'm just lost in VB.net, but (kicking and screaming) I have to learn how to do this. I've been googling for hours with only minor steps forward. Can anyone post a link that explains start to finish how to do this? I have managed to write the class object, What I can no...

Beginners introduction to unit testing in Visual Studio 2008

I'm a self-taught developer and my experience is all in small applications that I've developed. I'm currently working on an application that I've made public, and I've realized that I need to start doing good unit testing to catch regressions and generally make sure everything works. I've read up on a previous question. I would like t...

How to stop VS2008 trying to compile .ASP pages as Visual Basic?

I have a website with a mix of ASP (classic) and ASP.NET pages. For some reason Visual Studio (specifically 2008 Pro) keeps trying to compile the ASP classic pages. How do I prevent it from trying to compile the .asp pages? Reason: I'm getting a ton of errors on a specific .asp file that includes a Class. I believe it's trying to comp...

team system unit testing and configuration

In vs team system 2008 unit test, how can i load an application configuration file in the test itself? i have an app.config in the test project, referenced System.Configuration but when running the test, it doesn't see the app.config ...

Compile a version agnostic .DLL in .NET (Using Manifests?)

Hi, SCENARIO: I have two wrappers around Microsoft Office, one for 2003 and one for 2007. Since having two versions of Microsoft Office running side by side is "not officially possible" nor recommended by Microsoft, we have two boxes, one with Office 2003 and the other with Office 2007. We compile the wrappers separately. The DLLs are i...

Cannot build website, Visual Studio 2008 errors on build (temp files)

All of the errors are on auto-generated files, not within the files that were created by me. Here are a few of them: 'Context' is not a member of 'auth_cookies' 'ProcessRequest' cannot be declared 'Overrides' because it does not override a sub in a base class 'Server' is not a member of 'ASP.auth_cookies_aspx' Class 'auth_cookies_aspx'...

Does VS2008 have somewhat C++0x support?

Does VS2008 have somewhat C++0x standard support? DUPLICATE http://stackoverflow.com/questions/146381/visual-studio-support-for-new-c-c-standards ...

Sharing Code Analysis Rules in MSBuild

I am trying my hardest to define a list of CodeAnalysisRules that should be omitted from the Code Analysis tools when MSBuild executes my TFSBuild.proj file. But each time I test it, my list of Code Analysis Rules to exclude are ignored and Team Build just simply honors the Code Analysis Rules settings for each project. Anyone have an ...

An object reference is required for the non-static field, method, or property

Ok. I'm having an issue with the following bit of code: StreamReader arrComputer = new StreamReader(FileDialog.FileName); My first question had been answered already now my second question focuses on the tail end of this code. I'm reading a text file StreamReader that the user selects with a button event using OpenFileDialog priva...

Runtime Error with referenced WCF Service

I have created a reference to an IIS hosted WCF service in my ASP.NET website project on my local workstation through the "Add Service Reference" option in Visual Studio 2008. I was able to execute the service from my local workstation. When I move the ASP.NET web site using the "Copy Web Site" feature in Visual Studio 2008 to the deve...