visual-studio-2010

Visual Studio 2010 cannot build projects

I have a weird problem. I just installed visual studio 2010 RTM on windows 7 Ultimate. I have two problems! 1) File->New Project returns empty templates. Cannot create a project. But if I open a solution I can add project in the solution. 2) I cannot build the project! No matter what I tried build project returns only ------ Build s...

Timer and 64bit processor, I'm puzzled..

First of all I'm a total newby in visual basic, I needed to hack an application that kept clicking (don't ask). Everything is nice and dandy on my pc, then I compile, move it to its final destination and I doesn't work! At first I thought it was a OS problem, but both machines has win7, I then thought it was a compilation problem, inst...

Can de VS2010 SQL Server 2008 Project type be used to do migrations

I just started using the new project type SQL Server 2008 Database. I can manage the complete schema in detail, but I don't see how I can use the deployment to do versioning like I can with migrations in Ruby on Rails. There is always just one version of a table (CREATE TABLE), and I see no way to go forward and backwards in time with t...

Added a table to a dbml, but it doesn't show up in code

I am using VS2010 with C#, and linq-to-sql. Does anyone have any ideas of where to start looking for a solution? My database has a 'Cats' table and there is a 'Feet' and 'EyeColour' table that are both linked to it with a one-to-one relationship. The 'Feet' table works fine with linq-to-sql, but 'EyeColour' does not. I dragged the Eye...

Code To Create a User and Establish Permissions

I have a C# windows service application that generates a log file that writes to C:\Program Files\Company\Product\log.txt. I am using the installer provided by Visual Studio 2010 and need to have the installer: 1. Create a user named ProductUser 2. Set permission for C:\Program Files\Company\Product\ to allow ProductUser to write to the ...

Visual Studio, Application Settings... rearrange

Silly questions... purely aesthetic... given the picture above. How do you move the values up/down? For example, State belongs grouped with Height/Width/Top/Left (Window Position + state). Not the only project where I later add stuff and it slowly gets out of order. Can delete/re-add, but that gets tedious and error prone. Can just le...

Is it possible to use attributes in unmanaged code?

I have an unmanaged C++ application (unmanaged meaning: not using anything of the the fancy .Net stuff). I want to extend it with some meta information, and it looks like I could use the concept of attributes. What I actually try to achieve is the following. Starting from something a simple class like this: class Book { public: ...

How to late bind a CLR 4.0 assembly from a 3.5 project?

The title is self-explanatory of what I want to accomplish. I have a COM-visible component built in 3.5 and my new projects are 4.0. Code very similar to the one below is what I want to run from the 3.5 component. Assembly a = Assembly.LoadFrom(@"C:\MyCLR4.exe"); Type t = a.GetType("MyCLR4Class"); object o = Acti...

visual studio debug vs release mode

Hi I'm using Visual studio 2010 and I can't figure out one thing. I can debug and set breakpoints in release mode as well as debug mode. so then what's the difference between the two? ...

Debugging ASP.Net MVC in local IIS on Server 2008 R2

I am having issues debugging locally within Visual Studio 2010 on Server 2008 R2 (x64) for a new ASP.Net MVC application. I am able to debug using the VS Development Server (Cassini) but when I change to use the Local IIS Web Server and Create Virtual Directory, I am unable to debug. I get the standard VS message: "Unable to start de...

Is app.config required in .Net 4.0 C# projects?

Much to my annoyance, Visual Studio 2010 added App.config files to all of my .EXE projects when I changed the target from .NET Framework 3.5 to .NET Framework 4.0. So my automated build broke until I checked those new files in. Is there any particular reason I can't just delete these App.config files? Or is Visual Studio going to keep...

how can I remove SVN bindings from folder using GUI SVN tool

I have SVN bound folder that is copied from my colleague's machine. that folder contains svn bound hidden folders which are difficult to remove manualy. Is there a way to remove the svn bindings from folder using tortoise svn GUI tool ...

pdb files appear in website publish folder

I have asp.net website which when published using build > publish website option in VS2010 and even when checking omit debug information option in website publish window,published folder still contains pdb files is there a way to avoid this behavior?. any help would be appreciated Thanks guys... ...

Troubleshooting Internal Error in the .NET Runtime

Several weeks ago, my company laptop started having some strange problems. I could no longer launch the Microsoft Developer Web Server (via Visual Studio->Debug). I later figured out that I couldn't execute any .NET application. In speaking with Microsoft CLR specialist after reviewing my dmp files, he said When loaded into yo...

Performance of C++ applications in VS2010 and VS2008

I'm working on a real-time application (lets call it App1) which is communicating with another application (App2). I used VS2008 and both applications are in C++. Recently I converted the App1 project to VS2010 and right after that it started crashing (I use VS2010 Premium Ver. 10.0.30319.1). Crash dump shows that right before a crash, A...

Why is Visual Studio 2010 mixing up System.Web And System.Web.Abstractions?

Visual Studio 2010 seems to be mixing up the above mentioned libraries. This code sample is from the book "Pro ASP.NET MVC2 Framework" by Steven Sanderson. 01 [TestMethod] 02 public void HomePage_Recognizes_New_Visitor_And_Sets_Cookie() { 03 // Arrange: First prepare some mock context objects 04 var mockContext = new Mock<HttpConte...

Is there a way to prevent Visual Studio 2010 formatting C# code in ASP.NET MVC views?

I'd like Visual Studio to continue automatically formatting my .cs files, but is there a way to prevent it auto-formatting C# code in between the <% %> tags in ASP.NET MVC views because it really makes a mess of it? ...

does Visual Studio 2010 not have a "join lines" keyboard shortcut?

does Visual Studio 2010 not have a "join lines" keyboard shortcut? EDIT - That is when on line X anywhere, I hit a shortcut key once, and then line X+1 joins to line X (eliminating CR between them so to speak) ...

Why my timer program written in VB isn't accurate?

I have been trying to create a timer program with VB 2010 to the accuraccy of 0.05seconds (If possible, 0.01s) I insert a timer into the form (Timer1, Interval - 50). The code when the timer ticks: intdsecond = intdsecond + 5 If intdsecond > 99 Then intdsecond = intdsecond - 100 intsecond = intsecond + 1 En...

Can VC++ 2008/2010 be easily used on the same code?

I really would like to use 2010 if only since they appear to have fixed intellisense, but everyone else on the project don't have it (nor do I, yet). Is there any particular difficulty upgrading a C++ solution? Any other issues apart from having to remember to update both 2k8 and 2k10 project files with new source files? ...