visual-studio-2010

"SQL Server does not exist or access denied." upon VB.Net Deployment

Have built a small VB.Net app in VS2010. The connection string to the SQL Server is as follows: <connectionStrings> <add name="IWSR_DataDownloadWizard.My.MySettings.sqlConnection" connectionString="Provider=SQLOLEDB.1;Data Source=SQLServer;Integrated Security=SSPI;Initial Catalog=IWSROL" providerName="System.Dat...

Is it worth upgrading to VS2010 Ultimate to take advantage of the advanced debugging features?

I am currently using VS2010 Premium, and have heard that the debugging in Ultimate is so much better. Is it really worth upgrading to Ultimate to take advantage of the new debugging features they've included? Or is it marketing hype and not really usable for every day development scenarios? I believe the feature is called IntelliTrace. ...

VS2010 Intellitrace, can you actually get the debugger to rewind?

I've just installed Intellitrace, and it seems that it only collects data from previous points during debugging, and I haven't found a way to get the debugger to step back to previous execution points using intellitrace. Is this possible because this is what is implied in the marketing material I read. ...

VS 2010: Max line length guide does not render

In VS 2008, we were able to add a max line length guide ref: http://blog.feradz.com/2009/02/add-line-length-marker-in-visual-studio/ However when we attempt to do the same thing in VS 2010, it does not work. Does anyone know how to achieve this in VS 2010? ...

OpenMP implementations in VC++ 2008, 2010

Depending on implementation, OMP can be quite useful to parallelize fairly arbitrary bits of code - e.g a parallel section inside a method that calls two independent methods - or it can be bad. It depends on how threads are created/cached, I think. How does the VC++ 2008 implementation work? And is the 2010 implementation significantly ...

dedicating processes or appdomains to virtual users in VS2010 load tests

Hello, I'm using VS2010 to run a load test. I've successfully run 2 unit tests in separate appdomains. But I want to run 2 (and more) instances, or virtual users, of the same unit test in separate appdomains or processes. How can i do that ? Thanks in advance. ...

MySqlDateTime to System.DateTime conversion

Ok I'm very new to databases and C# in general, but I'm using a piece of code that exports dataset data to an Excel file, and its taking issue with the date/time format. I'm using the MySQL connector so the rowtype is MySql.Data.Types.MySqlDateTime. Is there any quick way to convert it into System.DateTime so I can slot it straight into ...

VS2010 asp.net : capturing an invisible GridView column value

How do I pass a GridView column value to the code behind with out making it visible? In the following code, I would like to capture the ContactID with out making it visible in the GridView. <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" OnRowCommand="_OnRowCommand" > ...

Expired Beta Release of Silverlight

I am getting the following message when trying to create a new Silverlight application in VS2010RC: This application was created for an expired beta release of Silverlight. Please contact the owner of this application and have them upgrade their application using an official release of Silverlight. What do I need to do to resolve...

Visual Studio SDK: Where is the AssemblyFolderEx registry key for Windows Phone Game projects?

I am trying to tell the setup program to add PostSharp to the "Add Reference" dialog box of Visual Studio for Windows Phone 7 projects. I figured out that the registry key for Windows Phone Applications is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Silverlight for Phone\v4.0\AssemblyFoldersEx. What's the corresponding key for...

jQuery and VS2010

Can someone provide me with a HelloWorld JQuery sample app using VS2010 and list out any manual steps such as installation and setting of references/placement of script files necessary to make it work? It would also be great if intellisense would work, so if manual steps are necessary to get it to work, that would be nice to know too. M...

Upgrading a build server to VS2010

I upgraded our build server to VS2010 RTM. I got a series of errors, most of which I could fix with a bit of searching. But I can't fix this one. The solution builds fine on the server in VS2010, but not as part of a scheduled daily build in TFS. Any ideas? [Any CPU/Release] C:\Program Files\MSBuild\Microsoft\Cloud Service\1.0\Visua...

Which versions of NLog work with VS2010 RTM?

Taking a look at NLog, it's unclear what version works with VS2010. It says that NLog 1.0 Refresh works with VS2010 beta but nothing else is indicated. There's an NLog 2.0 that is pre-beta that I'd rather not use if I didn't have to but it clearly does work with VS2010. So I'm wondering if I'm able to use 1.0 Refresh or do I need to go ...

VS2010 docks code windows in the wrong place

When I double click on an entry in my Error List or Find Results list in VS2010, it docks the newly opened source code file not in the large window where all my other source files go, but in the small narrow window at the bottom along with the error list etc. How can I get it to put it up with the others by default? If I double-click a...

Visual Studio - Is there a keyboard combination to select an entire line?

I already know about Control-L to delete an entire line...is there one to just select an entire line (which I can then copy and paste somewhere else...) ...

Using inheritance in MSTest

I am setting up some MSTest based unit tests. To make my life easier I want to use a base class that handles the generic setup and taredown all of my tests require. My base class looks like this: [TestClass] public class DBTestBase { public TestContext TestContext { get; set; } [ClassInitialize()] public static void MyCla...

C++: Switching from MSVC to G++: Global Variables

I recently switched to Linux and wanted to compile my Visual Studio 2010 C++ source code, which uses only the STL, on G++. My Linux machine currently isn't available but I can try to tell you what is going on, first: As I try to compile my project, all global variables I use in main and which perfectly work on MSVC result in myGlobalV...

Visual Studio 2010 crashes nearly every time when closing

Mostly it happens if we open a team project from tfs 2008 or tfs 2010, but crashes can happen any time. When VS is closing down, it crashes nearly every time. Tried trial RTM and our MSDN download - same story. Tried on three different PCs - same issue. Tried on 32 and 64-bit Windows 7 and Windows Server 2008 R2 - crashes. Is it just ...

Visual Studio 2010 Reporting Services Projects?

So, it seems that VS 2010 does not support SRSS projects. At least not old ones....Does anyone know what the status on this situation is and whether one can author new SRSS reports using VS2010 or if one should just use VS2008 BIDS? ...

How to add an array to Entity Model in VS?

I want so store a histogram of an image in a database. In the program the histogram is represented as an array of doubles (exactly 64) What's is the best way to add it to entity model? (anything better than adding complex type with multiple double values?) P.S. If it matters - I plan to generate my db from the entity model. ...