visual-studio-2010

Why does cast always returns zero only when debugging in VS2010?

Only on my machine this happens. Basically if i run the following all is as expected: double d = 500.22; int i = (int)d; Console.WriteLine(i.ToString()); Output is 500. However if i put a breakpoint on the first line and step through, i always reverts to zero and the output is 0. I've tested this on other mac...

How to design an ASP.NET Framework in VS 2010 TFS

Hi all, I have a rather loaded question regarding a library/framework my company uses to build websites from that I hope I can convey without too much trouble. Present Situation: Currently, we have a solution in VS 2010 that has a Web Project, "Framework_Web", which currently contains all the web pages in the application as well as o...

Creating class template diagram in VS2010 Ultimate

Is there an option in VS2010 Ultimate in UML tools to create class diagram which would indicate that this class is a template (with types and how many of them) in the way class template diagram according to UML 2.0 looks? ...

Build FAILED for Notepad++ with message PostBuildEvent: The system cannot find the file specified

I get a build failure due to a post build event failure when building Notepad++ in VS 2010. Here's the message from Output window: PostBuildEvent: The system cannot find the file specified. The system cannot find the file specified. The system cannot find the file specified. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Micro...

Create file/folder structure in VS 2010

Hello. I am somewhat of a novice and am seeking some help. I am working in Visual Studios 2010 and have my solution that has my project that I am currently working on. Specifically I am working on a Win32 Project. I don't know if that is important to know or not. I have made a file/folder structure in the directory I am working on to h...

How do I programmatically insert, or edit, a pie chart in a Word 2007 document, using vs 2010, c#?

I need to programmatically insert, or edit, a pie chart in a Word 2007 document, using vs 2010, c# ... everything i have found shows how to put these old ugly charts into a word doc. so i am now wondering if it is even possible to manipulate the newer and better looking charts. this one shows how to do just what i want, only it's th...

Visual Studio: How do I create my own defined constants based on the "Configuration Manager"?

Basically, when I select the "Debug" configuration, the DEBUG constant is active. When I select the "Release" configuration, the DEBUG constant is inactive. How can I create my own configurations so that they include my own defined constants. Basically, I want it so that if I select the configuration "FOOBAR" that there is a constant FO...

LightSwitch and VS 2010 Ultimate

If I want to use LightSwitch's prebuilt silverlight forms is there a way for me to do it within VS2010 (i have ultimate)? It is slightly annoying to have to load a slimmed down VS just to have some templates in place. I'm downloading LightSwitch now to see if I can copy the prebuilt forms into a VS2010 silverlight app. ...

RDLC VS2010 Adjust the height of a text-box corresponding to the font-size

When I design a RDLC-Report and change the FontSize of a text-box to a smaller value, the height of the text-box is not adjusted automatically. If I try then to adjust the height manually, it's very difficult to find the right height. Is there a simple possibility to adjust the height corresponding to the font size (in the designer)? ...

Is there a possibility to set the default font-size of a RDLC-Report in the designer

Is there a possibility to tell the designer or the report a default font-size, so that all new elements that are placed within the designer will take initially this font-size. ...

Visual Studio 2010 hangs on loading web.config

I have a weird situation: Visual Studio 2010 will hang up indefinitely on me when opening certain websites. It prompts me for my credentials and loads up much of the project tree, and then just hangs at the "Preparing Solution..." dialog, which just then never goes away. In every case, the status bar of VS says that it is currently loadi...

crystal reports 2010 Change OLEDB connection

I am using Crystal reports for Visual Studio 2010 beta 2. After upgrading my project from using Crystal reports 12.1 to 2010, it started showing up set Connection dialog. I am using oledb connection for reports while designing, the following code was working with Crystal 2008. I am using Visual Studio 2010 with Target Framework as 2.0 A...

ASP.NET MVC: logic in _layout.cshtml that takes variables from a given controller

Hi all, New to MVC so forgive me if the terminology is a little off. I'm using ASP.NET MVC3 beta and VS 2010. I'm not sure if this is an error of concept, of syntax, or what. Essentally, what I'd like to do is, for _layout.cshtml, I would like to include the jQuery script for any Controller whose ActionResult sets ViewModel.UseJQuer...

PowerShell CmdLet as Visual Studio External Tool

I am attempting to add a PowerShell cmdlet as an external tool in Visual Studio 2010, but whenever I call the external tool I get: {foo} cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details. I have already set my system's execution policy to 'Remote...

Visual Studio 2010 - no tests were run because no tests are loaded or the selected tests are disabled

Hi, I have a problem which has received plenty of attention which, despite much googling, I have been unable to resolve. I have a Test Project attached to my Visual Studio 2010 MVC 2 Application. When I attempt to run my tests, I get: "no tests were run because no tests are loaded or the selected tests are disabled." Following this,...

What is the standard way to do BDD in VS2010?

What is the standard way to do BDD in VS2010? ...

Boost 1.44.0 + VS2010 Private member error

I have a class declaration in Utils.h: class Utils { private: static boost::mutex outputMutex; }; In the cpp file: boost::mutex Utils::outputMutex = boost::mutex(); I get: Error 1 error C2248: 'boost::mutex::mutex' : cannot access private member declared in class 'boost::mutex' If we look inside boost/thread/win32/...

EF4 and Connection String

I have a 3 tiered project. 1) Project.Data (EDMX file) 2) Project.Model (POCO's) 3) Project.Console (Console app) I have added the connection string into the Project.Console. <?xml version="1.0" encoding="utf-8"?> <configuration> <connectionStrings> <add name="ProjectEntities" connectionString="metadata=res://*/Project.c...

DevExpress Wizard Control - how to un - dock?

Okay, I can't find this in DevExpress' documentation. I have a DevExpress Wizard Control which automatically docks to the forms it's in. How can I disable the docking in Visual Studio 2010? I see no property that seems to be doing this and tried to change the docking in the constructor of the main form by setting the... wiz.Dock = DockS...

Visual Studio 2010 debugging Javascript with IE works but not with firefox or chrome. Any solution?

Hi, I have been reading a lot of messages here at stack overflow and googling for some time without any luck. My problem is simple, I want to debug my application from visual studio using firefox or chrome, not IE, but I allways get same error at breakpoint when execute "Breakpoint will not currently be hit. No symbols have been loaded ...