visual-studio-2010

Is there a way to debug ASP.NET MVC code using a symbol server (instead of downloading the source and referencing that)?

Hi folks, Is it possible to step through the official ASP.NET MVC 2 code via using the Symbol Server thingy in visual studio 2010? I know I can download the full open source MVC code from codeplex, build it and then get my code to reference THAT codebase dll's... But i'm wondering if this could be achieved by using the Symbol Server s...

Downgrade C# Project from visual studio 2010 to visual studio 2008

I wrote a visual c# 2008 windows form application ,then i edited the code in a computer which had visual studio 2010,but i can no longer run it in visual 2008,is there a way i can do this? ...

How can I write a plugin for VS2010 using MEF?

I've seen lots of MEF code for plugging into custom apps, but I am yet to find out how to write a plugin for VS2010 using MEF. I was under the impression that the new IDE supported this. Does anyone know if this is supported 'out of the box', or does it require an install. Does anyone have any links, tips, etc to get me started. ...

Has anyone got OverviewMargin to compile with VS2010 RTM?

As I am severely addicted to rockscroll, I'm looking for an replacement for VS2010, I tried downloading OverviewMargin, and it works, but I wanted to have a look at the code to see if I could adapt it to behave more like rockscroll, but I can't get it to compile. Has anyone managed to get it to compile with the latest version for VS2010...

Problem with SQLite related nUnit-tests after upgrade to VS2010 and Re#5

After converting to Visual Studio 2010 with ReSharper5 some of my unit tests started failing. More specifically this applies to all unit tests that use NHibernate with SQLite. The problem seem to be related to SQLite somehow. The unit tests that does not involve NHibernate and SQLite are still running fine. The exception is as follows:...

Visual Studio 2010 RDLC upgrade

I have .net 3.5 project containing some rdlc reports made in Visual Studio 2008. Opening the project with Visual Studio 2010 asks me to update the reports to RDLC 2008 format, at which point the reports dont work. Seems there is an incompatibility. Is there a good way to upgrade? Any workaround? I dont want to have to remake the repor...

Weird mapping error in linq-to-sql dbml file in VS2010

Since I switched to VS2010, several times a day I get a compilation error in my dbml file: DBML1005: Mapping between DbType 'bigint' and Type 'MyNamespace.SecurityToken' in Column 'SecurityToken' of Type 'Employee' is not supported When I restart VS2010 the error disappears. I have no problems running my application using this dbml fi...

VS2010 final does only link project on "rebuild all", not on "build changed"

I've just migrated a solution containing c++ and c# projects from VS2008 to VS2010 and got a strange problem. When I select "rebuild all", everything compiles and links as I would expect it to do. Then I change some c++ source file (just add a space), build the project, I get several thousands of linking errors like these: GDlgPackerL...

Platform configuration for projects in VS 2010

I have a third-party project type in Visual Studio which for some reason only supports the .NET Platform configuration for the build, for all other (standard C#) projects in the solution I only have AnyCPU. Unfortunately, ever since upgrading to VS 2010 it produces following error when built : Error 39 The OutputPath property is ...

VisualStudio2010 Debugging - The process cannot access the file ... because it is being used by another process.

I'm unable to debug a WinForms C# application using the released version of Visual Studio 2010 Prof. I get the following error message after the second debugging run. Error 9 Unable to copy file "obj\x86\Debug\Arrowgrass Reports.exe" to "bin\Debug\Arrowgrass Reports.exe". The process cannot access the file 'bin\Debug\Arrowgrass Repo...

enabling design view in VS 2010

Does anyone know where can I enable the bar that let me switch between different views (Design,split,..) in Visual Studio 2010 ? I can't find it and it is not enables by default ...

% style macros not supported in some C++/CLI project property pages under VS2010?

We're currently evaluating VS2010 and have upgraded our VS2008 C++/CLI project to the new .vcxproj format. I've noticed that a certain property we had set in the project settings did not get translated properly. Under Configuration Properties -> Managed Resources -> Resource Logical Name, we used to have (in VS2008) the setting: $(Int...

Why does Visual Studio 2010 throw this error with Boost 1.42.0?

I'm trying to recompile application, that compiles fine with warning level 4 in visual studio 2005 and visual studio 2008. Since the errors (look below) are coming from std:tr1, I'm thinking there's some conflict, but not sure how to fix. My first thought was to remove all references to boost, such as but then I get an error that it can...

jQuery WCF Service MVC2 VS2010 .NET 4.0 call with parameters fails

In Visual Studio 2010 I created a new Ajax enabled WCF Service [ServiceContract(Namespace = "TestWCFAjax.Bridge")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class Bridge { [OperationContract] public string DoWork() { return "jQuery WCF call without parame...

Conditionally embed ASP.NET MVC2 Views as resources during build in Visual Studio 2010

I have a ASP.NET MVC2 project in VS2010 that can be deployed in two modes: standalone or plugin. In standalone mode, the views should live outside the compiled assembly as .aspx files (the default setup). In plugin mode, the views are switched (currently by hand) to embedded resources and the entire assembly is dropped into a host proj...

Visual Studio 2010's SQL Schema & Data Compare - Can it be accesed from code?

The other day I tried out VS2010's SQL compare tools and thought they were awesome. I am wondering if there is any way to harness these tools in code written in VS 2010. ...

VS 2010 Error “Object reference not set to an instance of an object” when adding Service Reference for WCF Service

I have a VS2010 (RTM) solution which contains: WCF Service project Console WCF client project Class project for DataContracts and members Class project for some simple classes I successfully added a service reference in the console client project and ran the client. I then did a long dev cycle repeatedly modifying the service then u...

EF4 generates invalid script

When I right-click in a .EDMX file and click Generate Database From Model, the resulting script is obviously wrong because of the table names. What it generates is the following script. Note the table names in the DROP TABLE part versus the CREATE TABLE part. Why is this inconsistent? This is obviously not a reusable script. What I cre...

Vertical mouse scrolling wheel not working in VS 2010 Ultimate

The title says it all. I tried it with two different mice- both of which work perfectly fine in all other applications. The mouse is MS Intellimouse Optical. I even tried to speed up the vertical scroll through the mouse utility and still nothing. It barely moves the code a tiny bit and then it stops. I had no problems at all with VS 2...

Undead Windows 7 service

I created a Windows 7 service in Visual Studio 2010. Test install crashed and left lots of debris: service shows in the list of services but will not start ('Referenced file does not exist'), is impossible to uninstall ('Action valid only for services that are installed') and is not shown in the Programs and Features aplet. Is there a ...