visual-studio-2010

How do you remove visual studio's navigation bar in VB.net

I'm trying to remove visual studio's navigation bar in VB.net, I know how to remove it in c# but unfortunately it has no effect in VB.net. would appreciate any help. i'm trying to remove the bar with DBLoggingProvider and (Declarations) ...

Visual Studio 2010 RC + ASP.NET MVC 2 RTM won't re-target from .NET Framework 4 to 3.5

Per the above I am trying to re-target a fresh ASP.NET MVC 2 application in Visual Studio 2010 RTM. After all sorts of tweaking the closest I am getting is the error below: The primary reference "System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" could not be resolved beca...

[VC++ 2010] Stack around the variable 'xyz' was corrupted.

hi, I'm trying to get some simple piece of code I found on a website to work in VC++ 2010 on windows vista 64: #include "stdafx.h" #include <windows.h> int _tmain(int argc, _TCHAR* argv[]) { DWORD dResult; BOOL result; char oldWallPaper[MAX_PATH]; result = SystemParametersInfo(SPI_GETDESKWALLPAPER, sizeof(oldWallPaper)-1, oldWal...

Don't see Clean solution option in Visual Studio

For one of the solutions, I don't see the Clean Solution option neither in the context menu when I right click on the solution name in the Solution Explorer nor in the Build menu. When I make any changes to the project and debug, VS never hits the break point and I get the "The breakpoint will not currently be hit. The source code is dif...

VS2010 + Resharper 5 performance issues

I have been using VS2010 with Resharper 5 for several weeks and am having a performance issue. Sometimes when typing, the cursor will lag and the keystrokes won't show instantaneously. Also, scrolling will lag at times. There is a forum thread started and JetBrains has been responding. Several people (including myself) have added their...

VS 2010 and Entity Framework: accessing SQL Server 2000 databases

Consider a Visual Studio 2010 project whose requirement is to model the data using Entity Framework. The datasource is a SQL Server 2000 database. The first step is creating a new ADO.NET Entity Data Model item. The Entity Data Model Wizard prompts for a Data Connection. When creating a new Connection, you will need to use a provide...

Get Visual Studio to produce the same DLL for the same C# source

I noticed that when I build a given C# or VB.NET source to produce a DLL, the binary output is different each time. It would be helpful for our build / deployment process if this was not the case. Can I control this? ...

Visual Studio 2010 database project does not recognize SQL 2008 geography data type

I've created a new SQL 2008 database project in Visual Studio 2010 and filled it with the contents of a local SQL Express database. When I try to build the database project I get this error: SQL03006: Column: [dbo].[table1].[geog] has an unresolved reference to Sql Type [dbo].[geography] I've done some searching and it may be missing a ...

Proxy problems when adding Service Reference in VS 2010

Hi everyone, I was able to add a Service Reference in VS2008 with no problems at all. However, on the same machine within the same network, I couldn't do that in VS2010. It got a (407) response, Proxy Authentication Required. Has anyone else encountered this problem before? Are there new settings in VS2010 that need tweaking? Thanks, ...

Fix indention in Visual Studio when pasting from eBook

Hi All, Every time I paste code from an Adobe reader eBook into Visual Studio it ends up looking like the image below. The only way I know to fix it is to go on each and every line and manually tab/backspace it all back in order. Source formatting does nothing (Edit>Advanced>Format Document) Anyone know how to fix the indention in thi...

How/can do you connect VS2010 to Codeplex's TFS?

I've gone to Team-->Connect and tried to enter the details for the TFS on the CddePlex site: https://tfs05.codeplex.com Then it asks for the user name and password - which I assume is something like [email protected] + my codeplex password. But is doesn't let me sign in? What assumption is making an ass of me? ...

Cannot add SourceSafe Database as Visual Studio 2010 source control.

My issue is that I cannot add SourceSafe Database for source control within Visual Studio 2010. Our team was initially using VSS for source control in Visual Studio 2010. During an evaluation of TFS, I switched my source control to TFS. It will be a few weeks before a decision is made on TFS, so I needed to switch my source control ...

Suggestion for chkstk.asm stackoverflow exception in C++ with Visual Studio 2010

I am working with an implementation of merge sort. I am doing C++ Visual Studio 2010. But when I took a array of 300000 integers for timing, it is showing an unhandled stackoverflow exception and taking me to a readonly file named "chkstk.asm". I reduced the size to 200000 and it worked. Again the same code worked with C-free 4 editor (...

Should I pick VS 2010 or 2008 for F# development?

And is F# support included Express editions of Visual Studio? ...

"IntelliTrace debugging not available" error in Visual Studio 2010

In XP 32bit Visual Studio 2010 I get the error below when I start debugging with IntelliTrace enabled. Doesn't IntelliTrace work in Windows XP or is there some setting which causes this error? UPDATE: The error occurs when I choose the second option to add call information in the IntelliTrace settings. There's nothing in the event log...

NAnt errors when generating assembly info after project is upgraded to VS2010

I have a project I recently upgraded to VS2010 - the project/solution files are updated, but I'm still targeting .NET 3.5. Until now, my standard NAnt build script has not given me any trouble. However, it appears that after updating the project, and updating the NAnt config to be aware of the new tooling, I am now receiving an error wh...

Visual studio 2010 Errors out on starting "-832" is not a valid value for property "width"

My Visual Studio 2010 was working fine this morning (I run in in XP sP3 under Paralles) I restarted the entire laptop and I started getting this error. I even uninstalled VS2010, deleted the Visual Studio 20010 directory on the My Documents area and reinstalled it, and it is still giving me that error every time I try to start it. I'm no...

How to generate C# documentation to a CHM or HTML file?

Is there a way to generate a readable document file from the documentation on the code directly from Visual Studio? (also considering 2010) If there isn't, what should I use to create a CHM or HTML file? Code example: /// <summary> /// Convert a number to string /// </summary> /// <param name="number">An integer number to be converted...

Why does a newly created EF-entity throw an ID is null exception when trying to save?

I´m trying out entity framework included in VS2010 but ´ve hit a problem with my database/model generated from the graphical interface. When I do: user = dataset.UserSet.CreateObject(); user.Id = Guid.NewGuid(); dataset.UserSet.AddObject(user); dataset.SaveChanges(); {"Cannot insert the value NULL into column 'Id', table 'BarSoc2.dbo...

How to: Inline assembler in C++ (under Visual Studio 2010)

I'm writing a performance-critical, number-crunching C++ project where 70% of the time is used by the 200 line core module. I'd like to optimize the core using inline assembly, but I'm completely new to this. I do, however, know some x86 assembly languages including the one used by GCC and NASM. All I know: I have to put the assemble...