visual-studio-2010

Is it possible to build an MsTest project into a self-contained executable? How?

I can do so using MbUnit framework, but I cannot force everyone to install it (please do not ask); everybody already has mstest.exe as well as the library. http://www.gallio.org/oldwiki/MbUnit/TestExecutionUsingSelfExecutableTestAssemblies.html We do not even run unit tests yet, so the easiest way to cram it in is to reuse an existing ...

How can I put a Silverlight Application into a ASP MVC view page?

I'm working with both silverlight and asp mvc. The silverlight application performs a page request, and it works fine (into the test page generated by the VS), but I can't find a way to put it into my view. MiniSIG <div id="silverlightControlHost"> <object data="data:application/x-silverlight-2," type="application/x-silverl...

After building exe using VS 2010 C++ missing MSVCP100.dll

I have designed an application that requires no install and can be used by non-administrators. I would rather not lose this functionality but when I use the .exe on other computers than the one I programmed it on I get an error that a missing MSVCP100.dll is preventing the file from executing. What am I doing wrong here? How do I includ...

How to show all implement instance of an interface method?

In my project, there are tons of interface classes used. I have difficulties in reading to understand the code since browsing the definition of the codes (by selecting the method name and pressing F12 or right click + go to Definition) just lead me to the interface. Is there a way (built-in or addon) in Visual Studio 2010 to list out al...

Visual Studio 2010 extension get selected text

I'm writing my own extension. I've created a toolbar button. The template I used was "Visual Studio Package" and there was an option during the wizard to create a command button (or something like that) So the button shows up, but I can't work out how to get the current document or the selected text within the document. Any help would ...

fatal error C1083: Cannot open include file: 'boost/regex.hpp': No such file or directory

I am getting the following error when i build my code using regex.hpp I am using VS2010 VC++ fatal error C1083: Cannot open include file: 'boost/regex.hpp': No such file or directory boost\boost_regex-vc71-mt-1_33_1.lib file is here.. is this correct? ...

Filter Warnings In Error List Windows In Visual Studio 2010

I just recently got the approval to upgrade our project from .NET 1.1. to .NET 4. I loaded up the project in Visual Studio 2010 and I've got it compiled and working. However as is to be expected there are over 3000 warnings I need to start looking at and handling. The problem is this solution has about 20 projects in it. So what I'd ...

How to deploy a dbproj in vs2010?

Quick question, I'm new to dbproj, how do you actually deploy it to my sqlserver from vs2010? I built the dbproj, and it created a bunch of files in sql/debug folder, then what do I do? ...

Visual Studio Installer > How To Launch App at End of Installer

This is probably a stupid question and my Googling just is not functioning today. I have an application I added a Visual Studio Installer > Setup Wizard project to. I am wondering how to add a button or check box that would launch the application after successful install. This would be located on the last page of the MSI Installer Packa...

Default Page for a Site in ASP.NET 4.0 Not IIS

Hello everyone Is a quick question, I've been searching around with no luck, I'm a newbie in ASP.NET webforms. Is there any way to set the default page for a site, meaning, when I Send a Get for http://{domain|localhost}/ it gets me the Default.aspx or any I set? I know I can set that redirect in IIS (i'm using 7.5), but I want to know...

Visual Studio 2010 Optimization & Tips?

I've noticed Visual Studio 2010 is a lot slower than my Visual Studio 2008 EDI, I've found several nice tips and optimization suggestions for VS2008, however I want to know if people have any tips for me and VS2010 ...

Automatically Install: Self-Signing ClickOnce Manifests with Cert > Need App to Install Root CA in Trusted Root Certs on Client PC

ClickOnce is suppose to use a signing cert for distribution. If I was developing a major app, I could understand purchasing a cert. However, my app is for a small sized company and I cannot justify the expensive. My question is, when my app first installs, how might I install my self signed Root CA into Trusted Root Certificates automat...

Asp.net MVC jQuery ajax .post weird problem: post to server sometimes?

I've encountered a pretty weird situation, I'm using Win7, VS2010, ASP.NET MVC2, jQuery. I have a simple form a textarea and a button doing a .post() ajax call to server, pretty simple setup. It works when I input plain text in the textarea, but if I mix html tags like bold, then it works sometimes!! I do have [ValidateInput(false)] ...

After removing a Visual Studio Project from a Solution cannot delete the folder in windows

When I 'Remove' a project from a Visual Studio solution I often want to delete it. As some other posts on SO have mentioned this does not delete the physical project from the file system. The larger problem here is that after removing the project form the solution when I attempt to delete the directory from windows Explorer or the comma...

Issue with Custom Action to Start Program After Update. Installer Stays Open Until Program Exit

Thanks to StackOverflow I found out yesterday how to add a custom action to the Visual Studio Installer to start my program after an update. The problem I now face is that at the end of the installer the program does open but the installer never finishes until I exit my app. Is there a way to ensure the app starts only after the user cl...

Why does visual studio not recognize System.Web.SessionState ?

I am trying to go through the example at http://msdn.microsoft.com/en-us/library/aa719643(VS.71).aspx Visual studio 2010 does not recognize System.Web.SessionState and various others. I tried adding a .net reference to them but they do not exist on my system. I have .Net 4 installed. Why would these examples use namespaces that are no...

Problem with UTF-8 Encoding on SQLCE

I'm using SQLCE for a database on a local application, I set that the encoding would be UTF-8, this encoding is supposed to accept the "ñ" and "Ñ", but when I save "españa" and after that I do a query to see all the tuples on the table, it shows "espa�a" with that weird replacement character. I was wondering if there's any way I could co...

app.config "Could not find schema information" after converting to Visual Studio 2010 / .Net 4.0

After upgrading my project to Visual Studio 2010 and .Net 4.0, my app.config file generates these messages upon building the project: Could not find schema information for the element 'supportedRuntime'. Could not find schema information for the attribute 'version'. Could not find schema information for the attribute 'sku'. Here is m...

Weird issue regarding debugging using Visual Studio 2010 Express

Hi all , I'm a beginner in C# ,and i have a problem regarding debugging and running applications from VS 2010 ... Sometimes -for some certain projects- when i press F5 , the VS 2010 CPU usage jumps to 50% and my app. just won't run.. and nothing happen , i tried to rebuild the solution , but still , High CPU usage and no app. running a...

Will this code create an EventLog at installation time?

Following the advice of Henk, I've created a Setup Project in VS10 with the aim of adding a custom action. This custom action will hopefully add an EventLog whilst running as admin (ie during installation) rather than having my app throw an exception on OSes with UAC. Unfortunately, I don't ordinarily have access to an OS that uses UAC....