visual-studio-2010

VS 2010: Is there a workaround for the administrator requirement?

Aside from running as a administrator, is there any workaround for this requirement? xxx.vbproj : error : The Web Application Project XXX is configured to use IIS. To access local IIS Web sites, you must install the following IIS components: In addition, you must run Visual Studio in the context of an administrator ...

obfuscation macro

I've been looking into obfuscation software, but wondered if one could do it easily with a macro. If you go into the class diagram in visual studio 2010, you can easily click on class names, properties, fields, etc, and rename them from something meaningful to a, aa, aaa, abc, whatever. In a really small project, this would be really eas...

error C2039: 'string' : is not a member of 'std', header file problem

I am having problems with a class I am writing. I have split the class into a .h file that defines the class and an .cpp file that implements the class. I receive this error in Visual Studio 2010 Express: error C2039: 'string' : is not a member of 'std' This is the header FMAT.h class string; class FMAT { public: FMAT(); ~...

Creating Windows Installer Project in Visual Studio

I've been struggling with Visual Studio to create a windows installer msi. This is what I was hoping to create in the msi: Installer opens and first page has a couple fields where you can enter various config locations, including being able to browse, and also some drop downs with various config setups. Click Next or Finish or whateve...

Azure web role project not creating MbUnit test project?

Hi everyone, We're creating an Azure cloud service project in VS 2010 with an ASP.Net MVC 2 web role. When we create the MVC project we're asked if we want to create a test project. Our choices are MbUnit3 (our preference) and MS Test. When we select MbUnit, a test folder is created in the file system, but no project is created. Cho...

Is there a tool for TFS which quickly view the author of one line code?

I'm working with a team and have to read to understand their codes. I want to know the author of a certain line of code but at the moment, I'm not sure how to do it quickly except I have to browse the history for that - which is very time-consuming. Do you have any addon/tips for me? Thank you. ...

Visual Studio locking files while debugging

I have a VS solution containing several projects. While debugging a particular project all the source files are locked by VS. I would like to unlock sources that the debugee doesn't have dependency on. Is there any way to do this within one solution? UPDATE: I'm using Win XP SP3 32bit. Visual Studio 2010, C#. Edit and Continue is enabl...

BDD with Machine.Specifications in Visual Studio 2010

I'm beginning to get the grips of BDD and MSpec, but I'm still really bugged by the fact that I'm unable to debug my tests/specs, and that I have to leave the IDE to go to a html report file to see the results. Currently, I have a post build event configured to run mspec.exe $(TargetFileName) --html “$(ProjectDir)Report.html”, but there...

In C# (or in C# with WPF), how would I build a checkbox at run time?

In C# (or in C# with WPF), how would I build a checkbox at run time? I would I be able to query the check box to see if the user clicked on it? In other words, suppose I have a "grid" on which I want to have displayed some checkboxes. But I do not know how many checkboxes to display. I suppose I could (in WPF) fill the grid with check...

Problem in Opening Word 2010 using Visual Studio 2010?

I have been trying to open a Word document using C# in VS2010. But I have been successful so far. I have tried searching for answers but all in vain. In the reference section, I cannot see the Microsoft Word office library (any version) in the COM tab. I added the Microsoft.Office.Interop.Word. version 14 from the .Net tab, but still i g...

Data components in Visual Studio are disabled, how to enable them?

I am trying to make a WPF application with a SQL Server CE database. I am following the tutorial SQL Server 2005 Compact Edition Data Access with the SqlCeResultSet and Visual C#.NET, but in my Visual Studio 2010, all components under the Data-section of the Toolbox are disabled. Why are my Data components disabled? And how can I enab...

vs2010 unable to connect to the ASP.net development server

i am getting this error while trying to view in browser. i checked the host file and the 127.0.0.1 localhost line wasn't commented i am on windows server 2003 and my IIS is working fine as projects on VS2008 are working fine i am really confused and trapped in this and it's urgent and critical ...

Can I automatically generate methods for Buttons, Checkboxes, etc. in Visual Studio 2010?

One way of doing it is double-clicking on each component and it will automatically create a method for you in Code-Behind file. But what if you have many components in your project, is there a quicker way to generate those methods rather than by double-clicking on each and every component? ...

VS2010 - Drop-Bug while Debugging?

Hi, I created a ListBox in WPF (.NET 4.0) with "AllowDrop = True". When I start debugging the drop is not accepted, but when i build the project and run it from explorer all wors fine. Have you made equal experiences? ...

File Does Not Exist Exception in VS2010

I've taken over the code of a website from someone else to finish off and have hit the issue that every time I load a page, I get a 'File Does Not Exist' exception caught in the Application_Error handler in my Global.asax file. I was curious what it was, so have tried creating brand new solutions with both a Web Site and Web Application...

Is it possible to use custom enums in application settings? (VS10)

In Visual Studio 10 (probably other versions too) it's possible to define application settings using a designer view. These settings appear to simply be public variables stored. Is there any way to use a custom enum as the type of an application setting? I notice that you can browse the references for enums, but can't seem to find a wa...

creating relationships with sql server 08 express in visual web dev 2010

OK so I have never ever touched asp.net and have absolutly no idea what I am doing. I create database structures via SQL Scripts not GUI enviornments. So I am trying to learn ASP.NET and I have started an MVC Web App project. I have an account table and an address table and an account_addresses_xref table. table: account fields: acco...

Visual Studio 2010 not saving changes (new source files added, project settings, ...)

We have converted our C++ projects from VS2005 to VS2010 Professional and when we add a new source file to the project or change any project setting, we try to compile (F7) or Rebuild All and the changes are not applied. We have to close solution and re-open it, or either close and open again Visual Studio to make changes aply. After clo...

Server Explorer and connection string in the machine.config

How can I see in the in Visual Studio Server Explorer a connection if the connection string is defined in the machine.config file? It would be very useful to update a dbml file if I change a the DB schema... ...

TFS Database Deployment in Sandbox environment

Hi all, I have a Team Solution which includes the database and dataserver projects – these are currently set to compile and create deployment scripts. This can take an age so would probably be worth setting them to build & deploy only when needed. Does anyone have any views on this either way; is there a best practice approach or is ...