visual-studio-2010

How to disable ClickOnce (or at least that "Are you sure you want to install this program" window in VS2010 Express

How might I go about creating an application that does not need that "Publisher Cannot be verified" window. How can I get my WinForms app in a .exe file so that I can just click it and it runs, not asking me to do anything? maybe this can be done by disabling ClickOnce but how can you do that in VS2010 EXPRESS? ...

Visual Studio, debug one of multiple threads

I have an application with 4 threads working the same code. However, when I step it jumps between the different threads. How can I lock it to one thread so the other threads are ignored for debugging? ...

Using MinGW/GCC built DLL in a Visual Studio 2010 C++/CLI project

I have a communication library built on top of Qt and Google Protocol Buffers. It's currently being built with MinGW/GCC on Windows. My goal is to use the same library in C# on .NET, with the help of a thin wrapper on top using C++/CLI (bridging the unmanaged code with managed code). I tried using the MinGW produced DLL directly in my ...

How can I create a C++ project/solution in Visual Studio 2010?

I want to write simple C++ code for adding two integers (in a command line window). How do I do this in Visual Studio 2010? (I know the code for adding the numbers.. I don't know how to prepare the files) @Armen Tsirunyan I did just that, then I added the following code to the c++ file:- #include <iostream.h> main() { int intege...

How to distribute SQL Server applications?

I have a VERY simple C# Winforms project that I made using Visual Studio 2010. It uses SQL Express 2008. This is my first time using SQL, so I wanted a hands-on approach to learning SQL, and this project allowed me to do that. I want to post my project on my website for people to see. However, I have stored procedures, constraints, and ...

ASP.NET MVC VS2010 Crystal Reports Beta 2 Can't Print, Export, Zoom, or Change Pages

I just upgraded to the beta 2 of Crystal Reports for Visual Studio 2010 and I'm not able to print, export, zoom, or change pages while using the web control in an ASP.NET MVC application. I can get the report to run and display just fine on the webpage. All of the buttons have images, and the report data looks exactly as it should on t...

Is Visual Studio 2010's unit testing feature usable for native C++ code?

It seems to be mainly tailored to .net code. ...

An error occurred loading a configuration file: Exception of type 'System.OutOfMemoryException' was thrown.

When I try to build my website project I get the above error, my workstation has 2GB of RAM,Project was being built fine until today.Any Ideas what went wrong. ...

How can I force Visual Studio to reference an assembly without using its version?

I have a VC++ project and I need to add a reference to a managed dll. This dll has a version number which changes every build. When I add it to my project, its version is saved and if I replace it with another one (with a different version number) the project cannot compile because it doesn't find the dll with the version previously save...

sharepoint 2010: sandboxed webpart error

I was just tryng to create a simple webpart in visual studio 2010 (for sharepoint 2010) I created an empty sharepoint project, then added a webpart. I wrote a simple code (pasting it from a book with examples) I Build the project, then deploy it (without errors) Then when i go to the webpage where i want to add my webpart, i get this er...

How is the Test Points calculated in 'Test PLan Progress' report of tfs 2010

How is the Test Points calculated in 'Test PLan Progress' report of tfs 2010 ...

ASP.NET 4.0 Deployment package include

The build Deployment package feature of Visual Studio 2010 doesn't copy the App_GlobalResources directory from my ASP.NET 4.0 WebForms application. I know I can use for example "ExcludeFoldersFromDeployment" to exclude folders from the deployment, but how can I include this folder with MSBUILD? ...

How to include the solution name, when I add a project template?

I'm looking for something like $solutionname$ to prefix a project name template file: <RootNamespace>$solutionname$.$safeprojectname$</RootNamespace> <AssemblyName>$solutionname$.$safeprojectname$</AssemblyName> Is there any way to implement this? ...

Encypting Configuration Strings for specific Build Config

This is a follow up to the my previous post http://stackoverflow.com/questions/3684878/different-configuaration-string-for-specific-build-configuration on figuring out on how to create different configuarions for different build configurations in VS2010 (ex. "Debug", "Relese", "Myconfig") After doing so, I have 3 files, with a differenc...

Why do I get this error : "Domain operations cannot be started at design time?"

Hi, I have created a silver light user control and I want to test it in a new View (MyTest.xaml). I can see my user control in the toolbox. But when I drag and drop it to the design area in I get this error: Cannot create an instance of ctlMyControl. Domain operations cannot be started at design time. Basically, it is a control with ...

LINK : fatal error LNK1104: cannot open file 'D:\...\MyProj.exe'

Using Visual Studio 2010, when I build + run my application in short intervals I often get the following error. If I just wait a minute or two and try again it works fine. Unlocker claims no handle is locking the executable file. How can I discover what's locking it? If it's Visual Studio itself, what should I do to make it stop? or alte...

How Can i Call methods from a regex string.

In one of my project i need to call methods dynamicly depending upon the regular expression a string. in one of my case i have this string. And(Answered(ARef(16350,100772,null)),Not(AnyOf(ARef(16350,100772,null),[Closed temporarily])),Not(AnyOf(ARef(16350,100772,null),[Closed down]))) which will like this if arrange it to understa...

C# NullReferenceException unhandled

I am a beginner at C# and I'm getting a NullReferenceException error on some simple code for handling a button click event. I've still got just a bit of code to add at the very end to actually display the value from "TcpAddr" on the messagebox. This will allow you run the program but clicking the button causes it to throw the error. Al...

Visual Studio 2010 memory usage during web site project publish

I've got an Asp.Net web site project that is causing increasingly frustrating memory issues during publish. Visual Studio operates reasonably well during normal work, and even the build stage is fairly quick (especially after following some of the recommendations in the posts listed below). However the publish stage is slow, and more t...

How to open a blend 4 project in Visual Studio 2010 without having Blend

Hello, I just discovered Expression Blend 4 and was amazed by the possibilities it supplies. After having created an HMI prototype in blend, I tried to send it to a colleague who doesn't have Blend, but he couldn't build it. I googled around and found a Blend 4 SDK, which he installed. Unfortunately, he still cannot build the projec...