visual-studio-2008

Managed C++ vs C# Performance for CodeModel and other COM Objects

I am creating an extension for Visual Studio 2008, and because I didn't want to write my own parser for C++ (I'm not masochistic) I am using VCCodeModel. Getting a simple field from these COM objects takes orders of magnitude more time than any of the other operations I am doing, and since I am drilling down to the method level of very ...

Using VS2008 with C/C++

I've decided to dive into some code written in C and I'd like to use VS I have VS08 Pro which I'm using now primarily for C#, but I've noticed that there are no options for C in VS. Also I've noticed that although VS has projects, and whatnot for C++ that the build options are all greyed out so I cannot build C++. What do I need to bui...

Switching Visual Studio to C#?

trying to get my first windows form running with controls. I havent been able to figure anything out. . . and then i realized duh, it's all in VB. How do I switch the generated files to C#? Am I confused? This is what I'm getting when I try to add my first control for Button_Start: Public Class Form1 Private Sub Form1_Load(ByVal se...

Visual Studio ASP .Net MVC Intellisense

the vs 2008 intellisense doesn't work if i use it inside html attribute. example <form method="post" action="<%= Url.Action %>" while i'm typing Url.Action the code hint doesn't work, instead it gave me options of files that can be used for the "action" value. Is it normal that the intellisense doesn't work inside html attribute? or...

The provider is not compatible with the version of Oracle client error when using Oracle.DataClient

Hi, I'm using Visual Studio 2008 Express Edition, and I'm trying my hand in developing a small application using Oracle.DataClient. I'm getting the above mentioned error, when trying to connect to the database in the target system. I've added a reference to Oracle ODP.net provider for Oracle 10gR2, and in the target machine I have ...

Visual Studio 2008 not showing member values of structure pointer

I'm writing C code and sometimes when debugging, Visual Studio 2008 will not display any data when I hover over certain variables. It seems random, and although it's seldom, I'm in a tough spot when it does happen. Does anyone know how to fix or avoid this? Thank you very much! ...

Weird Visual Studio 2008 behaviour: build failed, no error message!!?

EDIT: It's VS 2008 NOT VS 2005. Sorry for the typo. While trying to build two fairly big projects solution on Visual Studio 2008 (2 projects: 6686 files), and after making sure that everything is OK, my projects wouldn't build. VS informs me that the build failed but it doesn't tell me what I'm erring!? I tried cleaning, rebuilding, reb...

Windows.Forms Visual Studio, How to open a second window directly over the first window?

How can I open a second window directly over the first, and not slightly diagonally down-right or back at the default position? I'm just trying to make a few screens to be clicked through. Is there another way I should be doing this? why doesnt CenterParent do it? What does CenterParent do then? ...

Windows.Forms Visual Studio C# - Why would/should I use a settings windows instead of saving in a file?

Why would/should I use a ".settings" file instead of taking the information and storing it in a flat file? How do I access and modify the settings from this window from my application windows. Do I need to create an instance of the file or is it static? ...

Visual Studio 2008 Team System Upgrade Removes Code Snippets

I've been using VS 2008 for several months now and received a copy of VSTS 08 from work and installed without any issues. I upgraded VS 08 to VSTS 08 by running the VSTS installer without uninstalling VS 08. A few hours of after the install, I attempted to create a snippet in a VB project (Try Catch: Ctrl+K,Ctrl+X) and nothing happened. ...

When starting a MVC project, no Test project is created

When creating a new MVC Project in VS2008 Professional (SP1 installed), I do not get prompted for a Unit Test project. I have searched and found this solution (http://stackoverflow.com/questions/294117/creating-new-asp-net-mvc-project-unit-test-dialog-does-not-show-up) BUT I have already installed the Testing Tools and still no Unit Tes...

Which features & shortcuts for Visual Studio 2008 I might be missing, and how can I find out?

I recently got a job working for a company who uses several programming languages but mainly focuses on C#, and thus uses Visual Studio 2008. As lame as it sounds, I don't know how to use it productively. I don't know any of the keyboard shortcuts, I didn't know you could restrict builds to certain parts of a solution until someone sho...

How would you associate a work item to a previous check-in in TFS

I checked-in my codes in TFS but I forgot to associate a work item. I tried to go to check-in history and opened the check-in change set details but when I clicked on the Work Items button, it says that there is no work items associated and it does not give me an option to associate one. ...

Can't see the I've installed Visual Studio Team System 2008 Database Edition Power Tools but can't see Checksum Unit Tests

I've installed the Visual Studio Team System 2008 Database Edition Power Tools but can't see Unit Tests Conditions ChecksumCondition & ExpectedSchemaTestCondition I believe that it installed OK & I can see the new refactor commands so at least a part of it worked. Is there something I need to do to get the 2 new test conditions to disp...

Delete newly added files when shelving them

When shelving a set of changes, I uncheck "Preserve pending changes locally". The changed files revert to their previous version, but the newly added files remain in my project directory. To keep working on the application without these new changes, I then have to manually delete all the new files that I have added. Is this normal beh...

Can't get Log4Net to work in my ASP.NET website :(

Hi folks, really simple question -> i can't seem to get any data from Log4Net in my ASP.NET application. I've got a simple ASP.NET website, which references a class library. In this class library, I have some lines that call the logger. I'm trying to read the log4net output data in my Visual Studio 2008 debugging Output window. Here's...

CLSCompliant(true) drags in unused references

Can anyone explain the following behavior? In summary, if you create multiple CLS compliant libraries in Visual Studio 2008 and have them share a common namespace root, a library referencing another library will require references to that library's references even though it doesn't consume them. It's pretty difficult to explain in a si...

Insert record into db using linq2sql/datacontext

Hi there, I am trying to insert a standard record into my db using linq2db, but i keep seeing examples to ADD method which i don't appear to have ... what i have currently is the following, as you can see i have my datacontext.... (no add method) ... the Reservation class is a separate class i created as a DTO - i presume this is correc...

Received an unexpected EOF or 0 bytes from the transport stream when adding web reference to third party web service in VS2008

I am getting following error when I am adding the web reference to the third party web service to the web site in VS2008: There was an error downloading 'https://webservice-url?wsdl'. The underlying connection was closed: An unexpected error occurred on a send. Received an unexpected EOF or 0 bytes from the transport stream. VS complai...

Post Build in SSIS Project

I am trying to have a PostBuildEvent in my SSIS project. This is my original .DTProj file from a test project with one test package. <?xml version="1.0" encoding="utf-8"?> <Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; <ProductVersion>10.0.2531.0</ProductVersion> <Sche...