visual-studio-2010

Visual Studio 2010 doesn't set .CSHTML (Razor View Engine) as Content

Hi! I've been trying to deploy my ASP.NET MVC 3 Beta Application to my hosting. It supports all the necessary technologies and through trail and error I set the needed references' Copy Local to True. Then I got the error that my app cannot find the view. It listed .cshtml files it tried. I had those files in my project but they weren't ...

asp.net ajax client side framework

Hi, I am completely new to AJAX for ASP.NET. How do I check if AJAX client side framework is installed on my server? I am using Visual Studio 2010 and ASP.NET target framework is 3.5. If it is not installed then is it free to download and install for ASP.NET 2.0? Detailed help would be much appreciated. I am facing the following probl...

Cannot find any coverage data (ASP.NET MVC2)

I am having some issues with getting Code Coverage working with an out-of-the-box ASP.NET MVC2 Web App VS2010 Ultimate, File > New Project > ASP.NET MVC 2 Web Application > Yes, Create unit test project with Visual Studio Unit Test. I then Rebuild All, Run All Unit Tests, Go to Code Coverage and get the following message: "Cannot find ...

Auto-generated files (Silverlight *.g.i.cs files) dont' seem ignored when Treat warnings as errors is on

I'm trying to be a good dev and turn on treat warnings as errors (as I have always done in the past). The biggest difference is that this time, I'm using Silverlight 4 which generates a ton of code. All of the code starts something like this: #pragma checksum <some stuff> //---------------------------------------------------------------...

windows phone 7 Error ON:System.Net

I have build an windows phone library,and i create a test project at the same time,but when i goes the test,ther comes an errror: System.IO.FileNotFoundException: Could not load file or assembly“System.Net, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e” But I did had adden the reference in the project,this is the cod...

C++: how to throw EXCEPTION_FLT_UNDERFLOW?

Ok, it sounds strange, but I need a sample code, that throws EXCEPTION_FLT_UNDERFLOW. I already have code to handle that exception. Now I need sample, that throws this damn EXCEPTION_FLT_UNDERFLOW. Any advises? ...

How do I enable "manage build controllers" dialog in VS2010?

We have migrated a C# project from VS2008 to VS2010. We had a build server set up and running. Now it is somewhat broken and I want to create everything anew. I can not see my old "Manage build agents" dialog in team project build settings, so I start reading and I see that TFS2010 should have Manage Build Controllers item under Build me...

Can Report Viewer 2010 control be used in Visual studio 2008 without problems?

Can Report Viewer 2010 control be used in Visual studio 2008 (ASP.NET apps) without problems? I saw this post about it and wanted to know if this is supported and is OK. ...

Is there a way to open a VS08 solution in VS2010

We have some older projects in VS 2008 format and the newer ones in VS2010. Its reshource hogging to have both open. I am wondering if there is a way to make VS2010 open VS2008 solutions without converting any project/solution files. ...

Visual Studio won't run .NET 4 application.

I changed the target framework of a WPF application to use .NET 4 and now Visual Studio refuses to run it when I press F5. There are no errors, nothing in the build window, it just does nothing. If I run it manually outside Visual Studio, it runs. If I change it back to .NET 3.5, it runs. I tried running with logging enabled, but the l...

Compiling GLUI library, VS2010 gives me a weird namespace error

I've got an OpenGL project for a class I'm in, and it's based on GLUI. The provided GLUI library won't work which is why I'm trying to compile it myself. So, I downloaded the source code from SourceForge and try to compile the _glui library. It gives me this, and I can't find any information on it: 1>ClCompile: 1> algebra3.cpp 1> arcb...

System.OutOfMemoryException when using Visual Studio 2010

Hi guys, I am getting very annoying message called "system.outofmemory.exception" while I do have a lot of unused memory in my laptop. Unless I closed and re-opened the solution, it won't letting me to continue my work. Is there any configuration or service pack that can fix the issue ? Thanks ...

Dynamic allocation with scanf()

My question is exactly the same as this one. That is, I'm trying to use scanf() to receive a string of indeterminate length, and I want scanf() to dynamically allocate memory for it. However, in my situation, I am using VS2010. As far as I can see, MS's scanf() doesn't have an a or m modifier for when scanning for strings. Is there any ...

Autobuild on SVN commit

Currently we are using TortoiseSVN for version control. What I was looking for is a way to run build on svn commit. So whenever a developer tries to commit on svn, it should trigger build (MSBuild script?) and then if possible run all the unit tests before finalizing the commit. Would be great to get some tips or suggestions on this. Pl...

Child window open inside of the main window form

I have create a project with one main form window and also i have to use a number of other forms as well. now i want to open these other forms inside the main window and not outside. I'm using Visual Studio .NET 2010 as developing environment. is there anyone who can assist me on this? Thanks ...

How do I turn off intellisense for javascript?

While editing javascript content VisualStudio is starting to bug me with how it keeps inserting highlighted suggestions. For example it keeps inserting valueOf( if I type val(. This is really annoying. I want to invoke intellisense manually just like I can with C#, is there any way of turning off the auto-complete suggestion or at least...

sharepoint 2010 item selection event on lists

I have read all the list events (and list item events) of sharepoint 2010, but it seems there isn't a way to get an event when a list item gets just selected (or double-clicked, or something like that) I want a method that lets me open a new page when someone selects an item on the list, to display more information regarding the item Is ...

Setting platform target to x86 on my x64 laptop prevent some WPF types to load properly

I have a x64 machine running Windows 7 64 bits. It seems I have a very weird situation since the beginning of the week. If I build and run a WPF application with platform target set as x86, I got a MissingMethodException when trying to create a Grid: var g = new Grid(); However, creating a StackPanel works fine: var s = new StackPan...

How to parameterize with non-breaking space in Microsoft Test Manager 2010?

Hi, I am new in test manager 2010. I have a problem to parameterize the combo field with non-breaking space in between two values. Application type: Web page E.g.: Create a @employeetype with value: 10 Employee Then start recording some action. When I choice a combo field with the value 10 Employee it wouldn’t recognize the field. I b...

T4 to generate Enum from SQL Server table values

What I want to achieve is more or less the inverse of this: http://www.olegsych.com/2008/07/t4-template-for-generating-sql-view-from-csharp-enumeration/ I have a value group table (enum names) and a values table (enum values), and want to turn those into enums. Both are in SQL Server, and both do happen to be in an .edmx (so there woul...