visual-studio-2008

Using dlls compiled in Visual Studio 2010 with target .NET Franework 4.0 in Visual Studio 2008

I know it's a bit close to Can I use .NET 4.0 beta in Visual Studio 2008? But my question is a bit different. I have a project that now uses .NET 4.0 (target .NET Framework 4.0) in Visual Studio 2010. Is it possible to use the project compiled dlls in Visual Studio 2008? How? I don't want to use .NET4.0 directly in Visual Studio 2008, ...

using Visual Studio 2008 to test an x64 .NET binary

I have an x64 managed C++ class that needs to be tested using Visual Studio 2008. This class links to a x64 unmanaged lib I'm not able to run my my tests because vstesthost.exe (the exe Visual Studio hosts my test) is x86 and not x64. Ideas? the error generated is rror: System.BadImageFormatException: Could not load file or assembl...

Get logged in user details in sharepoint c# webpart

Hi, After much wrangling I have a development environment for building sharepoint webparts in c#. I'm completely new to SP development, so I haven't quite found the various API docs, so I'm hoping someone can help get me started. Eventually, I want to write a simple web part that allows its user to display different content depending ...

How to remove Test List Editor window from visual studio start-up.

Hi, when I run some project via Visual Studio 2008 Team System SP1, first thing I can see is empty window "Test List Editor". It slowing down loading time. Can I somehow disable it? Thanks for any help, Kamilos ...

How to increase error limit in Visual Studio?

When building an app. VS will complain of exceeded error count: fatal error C1003: error count exceeds 100; stopping compilation Is there a way to increase the limit? Thanks in advance, - Oleksii Skidan ...

How to find where program crashed

I have a program that crashes (attempting to read a bad memory address) while running the "release" version but does not report any problems while running the "debug" version in the visual studio debugger. When the program crashes the OS asks if I'd like to open up the debugger, and if I say yes then I see an arrow pointing to where I a...

Fast way to code forms in C# which is bind to SQL data

I am coming from MS-ACESS world and their programing habits, There was nice utility to make form from table, You can simply hit right click on table and make form for it. Now I looking for something similar for Visual Studio and WinForms. I am trying to develop simple application for which I need to have more then 30 forms for handling d...

Visual studio 2008 ignoring ajax calls in load test results

In visual studio 2008 load tests can I collect averages only for other than ajax calls (ones that don't have x-microsoftajax: Delta=true header)? ...

Hiding private fields without using attributes.

There are two problems with [DebuggerBrowsable]. First, it needs to be on all your fields. And second, if your using auto properties, you don't have fields. Is there any way to (temporarily) get the debugger to only show public properties, or atleast hide the auto-generated backing field of c#'s auto properties? I'm probably dreaming, ...

f# mutable variables don't show up in VS 2008 Local debug window

I'm using VS2008 with F# integration (April 2010 Community Technology Preview) When I declare a normal variable, e.g. let x = 4 then x will show up in the Local debug window when I set a breakpoint However, if I use a mutable variable let mutable x = 4 then x will not appear in the same window Any advice? ...

CLR SQL Assembly: Get the Bytestream?!

I have a SQL CLR dll I want to deploy, but have found you can embed the byte stream/varbinary_literal/ varbinary_expression/assembly bits into a text file to get around the messy hassle of packaging a DLL and making sure it's accessible for the CREATE ASSEMBLY command. But what I have yet to find is how to get that byte stream/varbinary...

Gridview Datasource Server error

I am developing a C# VS 2008 and SQL Server 2008 website. However, I get the below error now when I first run this: The DataSourceID of 'GridView1' must be the ID of a control of type IDataSource. A control with ID 'AdventureWorks3.mdf' could not be found What is causing this error? Here is my default.aspx file. I have configured...

How to display table in ASP.NET website?

I am developing a C# VS 2008 / SQL Server 2008 website, but now I cannot display the Gridview containing my table. I included the Default.aspx and aspx.cs files below. What do I need to do to fix this? I am not getting any errors now; just that this grid does not show up. Thanks! ASPX file: <%@ Page Language="C#" MasterPageFile="~/...

Type '_Default' already contains a definition

I am developing a C# VS 2008 / SQL Server 2008 website. I have a Gridview. I included the Default.aspx and aspx.cs files below. But when I build this I get the below error: The Type '_Default' already contains a definition for 'btnOWrite' What do I need to do to fix this? I am not getting any errors now; just that this grid does...

Could not load type 'Default.DataMatch' in DataMatch.aspx file

I am developing a C# VS 2008 / SQL Server 2008 website, but now I am getting the above error when I build it. I included the Default.aspx, Default.aspx.cs, DataMatch.aspx, and DataMatch.aspx.cs files below. What do I need to do to fix this? Default.aspx: <%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" C...

How to load a type in parent-child website

I am developing a C# VS 2008 / SQL Server 2008 website. Although this same code compiles in the Project version, the website version does not compile. Many of their files are the same so I do not understand even where to look. The only compile error I get is: Could not load type 'DataMatch' in my DataMatch.aspx file. Is the problem...

VS2010 and VS2008 together in a Team

Hi, I'm in a team that all members have VS2008 installed on their machine, we have tortois svn as source control system. Is there a solution that I can work with them with VS2010 installed on my machine? Or I have to install VS2008 to work with the other members? thanks. ...

VC++ addon that renames the file along with the class

I'm using VisualAssistX for some refactoring tasks in VC++2008. When I autorename a class, I want the filename to also be updated automatically. Any addon that does that? (Yes, I do only put one class per cpp/h pair) ...

Where can I find the project templates for ASP.NET MVC 1.0?

I would like to edit the ASP.NET MVC templates for Visual Studio so that any new action or controller created has a specific piece of code within it by default. For instance, I'd like to replace the generated: public ActionResult MyAction() { return View(); } with a specific coding standard we prefer to use within...

VC++2008 Debugger doesn't find library sources

An exception got thrown from a lib I use in my project. As I looked at the callstack, I clicked at the lib function that threw the exception. An "Open File" dialog popped up, prompting me to tell it where the lib source is located. Now clearly something is wrong. This should happen automatically somehow. How do I tell VS where to look fo...