visual-studio-2010

What's the appropriate way to deploy an ASP.NET application to production?

I hate to sound stupid, but ASP.NET is not my forte. I have build an ASP.NET application which I now which to deploy to a production server. Searching on the web I found that it's recommended to just use the Setup tool within VS2010 to compile and install the files on the production servers. However, I find it a bit weird: The files o...

Configuration File Transformation with Azure Worker Roles

Hi, I've just been upgrading an Azure project to Visual Studio 2010 and have been taking advantage of the new XML configuration transformation feature that is built into VS2010 web projects. It seems to work great with Azure web roles. I even managed to get the Azure project service configuration file to do a similar thing by following ...

How to uninstall Microsoft Visual Studio Team System 2010 Team Suit Beta 1 - ENU.

I installed "Microsoft Visual Studio Team System 2010 Team Suit Beta 1 - ENU" from a CD received from Microsoft. Now, when I uninstall it, it stops at TFS Object Model (x86) component and ask for the CD with file TFSObjectModel-x86_ENU.exe. Since I do not have CD with me (I am away from home for couple of months), I cannot proceed with u...

Stop formatting portion of the code in Source Editor in Visual studio

In visual Studio aspx editor, i want to stop portion of the code to be formatted on format using ctrl - K ctrl - D . Problem faced. I am using two validator with text '*', both should be in same place i adjusted using css. But when format the code , this formatting introduce extra space. If anybody knows the solution for this,...

How can I close all the document windows in Visual Studio from an external script?

Hi, I'm creating the software for a course. What with exercise start points and worked solutions and both C# and VB I have about 100 VS2010 solutions. During development I reopen these as neccessary and they get a lot of tweaking. When I'm done I want to leave the solutions with NO documents open. That way when the student opens the...

how to ensure that VSVARS32.BAT batch file have permanent effect?

If I need to use microsoft C# compiler from the normal command prompt, it says right here how and it says right here how I set the environment variable (by running VSVARS32.BAT). I execute it and after that I can run "csc" (the compiler). However the effect seems to disappear when I close the command line window that run VSVARS32.BAT Is...

Visual Studio shortcut to find classes and methods?

Is there any short cut in visual studio 2010 to find classes/interfaces? I was using resharper few years back to do that. Here now i don't have resharper and looking something similar in studio 2010 which can help me do that. Right now i have to use find all "s classname" that's closest i can get. ...

Visual Studio 2010 crashed, after loading it again it opened the conversion wizard then some bad things happened

I was using Visual Studio 2010 and tried to go to a files definition, after about three minutes I found the application had crashed so I end-tasked it. Running the project again I was presented with the conversion wizard (the project was already in 2010 so that was a bit wierd), after going through all its steps it said the conversion ha...

Can I export and import Visual Studio 2010-extensions?

Hi I am setting up Visual Studio 2010 on another computer and would like it to have the same extensions as the old installation. If possible it would be nice to just import a package of files or similar. Settings can be managed this way which is very useful but I was not able to find the same functionality for extensions. TIA ...

Adding a user control "The Enumerator is not valid"

I'm using Visual Studio 2010 to create a small WPF application. I've created a user control that I am now trying to add to my main form. The user control does show up in toolbox but every time I try to drag the control to the form I get the error: The enumerator is not valid because the collection changed. I should know what's wrong ...

Linking Database to Visual Studio

I been doing a proyect on visual studio 2010 and created a database, I run the form it shows me the data I entered manually into the data base, but I can't enter any new data. I followed a tutorial in you tube "How to make a Database App in 10 minutes. ...

How to open a stored in SharePoint from Team System task screen?

Hello, Someone put a hyperlink to a document stored in SharePoint, in the All Links tab of a TFS task. When I double click it, it opens up in a new browser tab in VS2010, then asks whether to download it ("Open/Save" dialog). The result is that the file is downloaded and then opened as a local copy. What I want to do is to open the do...

visual studio 2010 debugger hanging

The debugger is hanging intermittently but frequently for no obvious reason. It times out eventually and recovers. I am using vs 2010 Microsoft Visual Studio 2010 Professional 10.0.30319.1 RTMRel, running a 4.0 client app on a Vista 64 o/s. Has anyone else been having this issue too, and have a fix? As a related aside, anyone know if ...

Using member of template class to instantiate template default parameter in MSVC++

The following piece of code is a reduced sample from the large project I'm trying to port from GCC/G++ to Microsoft Visual C++ 2010. It compiles fine with G++, but with MSVC++, it throws errors, and I'm having trouble understanding why. template <typename A, typename B = typename A::C::D> // line 1 struct foo { typedef int type; }...

Compilation fails if delegate definitions is put in another project?

UPDATE: I've filed this as an issue on Microsoft Connect if you can reproduce this and/or would love to see this fixed please help vote up the issue over there. I've been trying to solve this problem for hours now. Would really appreciate whatever idea/advice you can think of. First of all, I have 3 files Class.cs Definitions.cs and ...

How do I upgrade a database using WIX?

I have a Visual Studio 2010 database project and a WIX installer. What is the best way to go about installing that database to a server using that WIX installer? How would I set that up? I'm having a hard time with WIX as it is, so hopefully somebody has some insight into how to deal with this. ...

Visual Studio - I want "Go To Definition" to open Object Browser, not "metadata"

In Visual Studio version 2002 and 2003 "Go To Definition" would find the selected type or member in the Object Browser. In 2005 onwards it opens a source window "generated from metadata" instead. How do I configure these newer versions to go to Object Browser? (In other words, I have the opposite problem to this one.) Installing ReSharp...

Visual Studio 2010 installation path

I want to get the path of my Visual Studio 2010 installation. I tried to get it from the Windows registry. It works perfectly for specific SKU. For example, Ultimate version of VS2010 usesHKLM\Software\Microsoft\VisualStudio\10.0\Setup\VS key to store the installation path. But the Express version has a different path in the registry. H...

Prevent designer class from being rebuilt

Hi all, Is there any way that I can prevent a designer class from being rebuilt when running my project? The designer class is a webservice reference with over 30000 lines of code and appears to be being rebuilt almost every time I run my project. (Which obviously takes quite some time) Is there some explicit way I can prevent Visua...

is it possible to build ATL project in VS express 2010

Hi i know that ATL and MFC are now part of Windows Driver Kit my question is how can i (if it possible .. ) to build project or import ATL project to visual studio express ...