[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More


Microsoft Visual Studio





Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop computer programs for Microsoft Windows, as well as web sites, web applications and web services. Visual Studio uses Microsoft software development platforms such as Windows API, Windows Forms, Windows Presentation Foundation, Windows Store and Microsoft Silverlight. It can produce both native code and managed code.

Share tech news, updates, or what's on your mind.

Sign up to Post

I have an SSIS project that I created in Visual Studio.  It includes two packages.  One package exports data from SQL tables into an Excel spreadsheet.  The other iimports data from an Excel spreadsheet into a SQL table.  When I run it in Visual Studio on my development machine, both packages work properly.  But when I deploy it to another server as an Integration Services Catalog SSISDB package, the export from SQL to Excel works, but the import from Excel to SQL fails with the following message:

"SSIS Error Code. DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager 'SQLSERVER' failed with error code 0xC0202009."

Then a second error pops up:

"An OLE DB record is available. Source: 'Microsoft SQL Server Native Client 11.0'. Hresult: 0x80004005. Description: 'Named Pipes Provider. Could not open a connection to SQL Server [53]."

Both packages use the same connection manager (called SQLSERVER).  I made sure that the Run64BitRuntime setting is set to False and DelayValidation is set to True.

Again, the export from SQL to Excel runs without error.  It is the import from Excel to SQL that is throwing the errors.

Determine the Perfect Price for Your IT Services
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Try to add the namespace reference to Model but it returns with error. Any idea ?

Odd problem trying to deploy ARM templates.

Essentially, when I go to deploy an ARM template using Visual Studio Code, as soon as I ad the 'deploy resource details', I see PowerShell open, minimise to the task bar (all normal so far), but then it closes without letting me have the chance to authenticate.

Anyone seen this?
I'm running a solution in visual studio in debug mode.  Is it possible to step back to or at least find whatever called the function that is currently running?
How do I add my vb.net desktop project to git.
I am using visual studio 2017 .

I am a newbie
Using visual studio  and  visual basic form
I am trying to copy a selected row or rows from Datagridview and paste it to the same datagridview.
I can do this with no problem when the table DOES NOT have a primary key.
I now have a table with a primary key and get an System.Data.ConstraintException error "Column "id" is constrained to be unique. Value "1" is already present.
I assume I have to add 1 to the last record number but don't know how to do this or where to put in my code.

here is my code with help courtesy of Chinmay Patel

 Dim table = MyDataSet.MyTable

        For index = 0 To DataGridView1.SelectedRows.Count - 1

            Dim row As DataRow
            row = CType(DataGridView1.SelectedRows(index).DataBoundItem, DataRowView).Row

            Dim newRow As DataRow
            newRow = table.NewRow

            newRow.ItemArray = row.ItemArray


I appreciate all help. I have spent days trying to figure out how to overcome this. Explanation and code fix would be highly appreciated.
Hey All, Need some advise:

What’s the correct way of licensing Visual Studio and other licensed development tools when running on an EC2 instance and cloning them for any new instances? Right now, there are 5 developers with a Visual Studio 2017 licence and they login to their respective Ec2 instance where each developer has a Visual studio license. Now the scenario is:

If new VM’s need to be created, current process is basically creating an Instance from a Base AMI which has got all of these development tools installed with a generic license and then manually entering new license info.

Is there a way that any new VM created can de-associate previous license and enter new license or does it have to be done manually. terraform is being used to spin up these instances.
Hello Again Experts.

I am continuing my learning process with creating a simple User Control. That is, I'm fairly certain that it should be simple!

My User Control is called "TwoLabels". It consists of two labels -- one on the left and one on the right. Typically, the left side would be literal text, and the right side would be used for DataBound text, but it should support any combination if possible.

I've learned that the two labels are "constituent controls" and as such I need to create properties in the class to expose the properties I will need to access in the Designer.

This is no problem for simple properties such as Text. ForeColor, etc. The property I'm stuck on of course is the DataBindings.

If you're familiar with the Designer, you know that there is a dropdown available for selecting the DataBinding Text value. When I add a TwoLabels object to my data bound form, this dropdown is available, and I can select a value from my DataSource, but it doesn't appear to have any affect on the displayed value at runtime.

I've tried creating Properties such as this, but without the dropdown, the entered value is not reliable.

Imports System.Windows.Forms

Public Class TwoLabels

    Private varValue1L As String
    Private varValue1R As String
    Private varValue2L As String
    Private varValue2R As String
    Private varValue3L As String
    Private varValue3R As String[embed=file 1406767]

    Property LeftText() As String

Open in new window

Hello Experts.

I am experiencing a small problem when creating custom user controls from within a given project. Note that this is not a problem when creating a dedicated project for the user control, but sometimes I really don't need the user control to be available for other future projects, and just need it to be available from the specific project.

In searching the web, I find two main "schools" on how to create user controls. Some have you do right from within the project, and others have you create it as a separate project. I'm wondering if perhaps I am missing an important step with the procedure for creating a user control from within the project.

So, in my case, I have an existing project and right-click the project name, and choose Add > User Control. After designing it, I click Build Solution. My current expectation is to find a .DLL file in my bin/debug directory, but it is not there.

I have seen some posts on other forums that reference changing the user control from private to public, but don't really see a way to do this.

Any insights would be appreciated!
Error      1      Unexpected end of file looking for </form> tag.       The </form> is on the form.  The web developer is Microsoft Visual Studio 2012. Usually when there is an error (missing end tag) and you put the end tag in there; the error goes away. Not this time. Thank you for any help.

Here is the code on the page:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Graphics.aspx.vb" Inherits="Graphics" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link rel="stylesheet" type="text/css" href="Site_Styles.css" />
    <title>Screen Printing, Embroidery, Heat Press, Dye Sublimation</title>

          body {
    background-color: #C0C0C0;
    color: #000000;
    height: 1500px;
    width: 85%;
    margin: 25px 0px 7px auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2em;
    font-weight: normal;
    font-style: italic;
    border-bottom: 10px solid gold;

            a.LinkButton {
    font-family: Georgia, "Times New Roman", serif;
    font-size: small;
    text-align: center;
    position: absolute;
    z-index: 1;
    width: 80px;
    right: 1054px;
    border: medium ridge #66CCFF;
    background-color: #4682B4;
    color: #FFFFFF;
    top: 135px;
    left: 210px;
    height: 20px;

  .p {

    top: 325px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    background: #CD5C5C;
Turn Raw Data into a Real Career
Turn Raw Data into a Real Career

There’s a growing demand for qualified analysts who can make sense of Big Data. With an MS in Data Analytics, you can become the data mining, management, mapping, and munging expert that today’s leading corporations desperately need.


I am looking to write a brand new Xamarin forms project. What I am wondering is how dangerous if at all would it to be using the Visual Studio 2019 Beta preview?


CWinThread wont exit in Release mode but will in Debug mode visual studio 2017.

Here is what I am doing
CWinThread *ptrDecode = AfxGetThread();
CCriticalSection c_sDecode;
static UINT mDecode(void*);
ptrDecode = NULL;

void myfuction::startThread()
      if (ptrDecode == NULL) {
	  ptrDecode = AfxBeginThread(mDecode, this);
	  WaitForSingleObject(ptrDecode, INFINITE);

UINT /*WINAPI*/  mDecode(void* pParam)
	myfuction* pThis = (myfuction*)pParam;
	CSingleLock lock(&c_sDecode);

	while (1) {
               if (!inputVideo.read(RTSPframe)) {
				if (!theApp.RTSPChangeCam) // if == false break out of while loop

				cv::resize(RTSPframe, RTSPResize, cv::Size(RTSPWidth, RTSPHeight), 0, 0, INTER_LINEAR);
ptrDecode = NULL;
	theApp.KillDecoder = false;
	return 0;

void myfuction::OnDestroy()
	//## make sure nothing is being rendered ##//
	//## kill any RTSP Streams ##//
	theApp.RTSPChangeCam = false;
	while (ptrDecode != NULL) {} // wait until thread exits


Open in new window

In OnDestroy() function the while loop waits until ptrDecode == null after theApp.RTSPChangeCam is set to false this cause the while loop in the thread to break and set ptrDecode to null and the dialog then can safely exit this work fine in debug mode and my watch window is showing me that ptrDecode has been set to null but in Release mode ptrDecode dose gets set to null if I place a break point in the thread code but then is reset to not null (seems to get reloaded) when my bullet point hits ptrDecode in the OnDestroy() function, I do not know why this is being re initilized after its been set to null. At no point in my code dose the thread get called again and it only dose it in Release mode.
Is there a setting in my release properties I need to change any help would be great
What is the Test option in visual studio 2017 used for.

CRM 2013, Dynamics 365 online

I am looking for a method to test plugins converted for D365 from CRM 2013.  With a Dev environment, how can this be done using Visual Studio and the PRT?

Ideas are: on Dev, if we register the plug-in assembly, ,register a plug-in step for an event and test its execution by doing whatever is shown in the code.  For example, step through the code as a plugin and test that it performs the actions in the CRM 2013.

Questions: can Visual Studio be used in Debug mode to step through the code and provide an adequate test?  Can the PRT be used to view the registered plugin and verify that the plugin ran as expected?

I am using visual studio 2015.  Asp.net site using VB.net

I am retrieving an amount from a database and I need to have that amount appear on the page with commas.  For example the number is showing as (example) 26012  I need it to show as 26,012

I guess I first need to convert the amount to a string then format the string, but I am not having any luck.  

Thank you
I am still trying to rotate an image in MS Visual Studio.

CSS code is:

.auto-style1 {
    border: 10px solid rgb(44,45,140);
    height: 390px;
    width: 467px;
    transform: rotate(270deg);

The target in a web form is:

            <img src="Images/Anatol_Pilot.JPG"" class="auto-style1" />

The result is that the  border: 10px solid rgb(44,45,140);
    height: 390px;
    width: 467px;
information all works; but the last one  transform: rotate(270deg);
is lost in translation.  
Hi, so I have a Visual Studio 2010 solution that I'm trying to open.  The problem is two-fold:

1. I can't open the solution in VS 2010 because it keeps saying I need to install SQL SSDT for 2010.  Tried to find and install it with no luck.  Keeps prompting me for it even when I "think" I have it installed

2. I have VS 2013 also installed but that has SSDT installed for it (again, I believe).  The problem though is that it's saying the solution is under source control so it won't even open it.  How do I "break" the bindings of the source control?

I did not create the solution, it was from a third party.  Any and all help would be great, thanks!
I am trying to install a .NET 2008 application with click once and I am receiving the below error.  Any ideas?

The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [ProcessorArchitecture] = AMD64 {string}
Property: [VersionNT] = 6.1.1 {version}
Running checks for package 'Windows Installer 3.1', phase BuildList
The following properties have been set for package 'Windows Installer 3.1':
Running checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.1': true
Result of checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
'Windows Installer 3.1' RunCheck result: No Install Needed
Running checks for package '.NET Framework 3.5', phase BuildList
Reading value 'Install' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5\1033'
Read integer value 1
Setting value '1 {int}' for property 'DotNet35InstallSuccess'
The following properties have been set for package '.NET Framework 3.5':
Property: [DotNet35InstallSuccess] = 1 {int}
Running checks for command 'DotNetFX35\dotNetFx35setup.exe'
Result of running operator 'ValueEqualTo' on property 'DotNet35InstallSuccess' and value '1': true
Result of checks for command 'DotNetFX35\dotNetFx35setup.exe' is 'Bypass'
'.NET Framework 3.5' RunCheck result: No Install Needed
Running checks for package 'Crystal Reports …
I have following the instruction below to download the project and run the command under Visual Studio 2017. It prompts the error below when I run second command.

Add-Migration : Exception calling "AddFromFile" with "1" argument(s): "'basePath' cannot be an empty string ("") or start with the null character.

Any idea ? What the purpose of the command and how to fix it ?

1. git clone https://github.com/etrupja/DrinkAndGo
2. Add-Migration "Initial"  
3. Update-Database

Big Business Goals? Which KPIs Will Help You
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

I have an asp.net application built using vb.net on visual studio 2015.  I want the user to be able to print an asp page to either a printer or Adobe PDF without headers or footers.  I don't want the user to have to adjust the print settings in their browser.  Is there a way I can create a print button that will send the page to a printer and change their header and footer settings to be blank.
I excluded a c# module ( under control of Team Foundation Server) in my visual studio solution. Prior to right clicking on source and excluding it - the status showed source module checked out.
I re-included it and the status shows not checked out.

How do I reestablish checked out without replacing it from server.
Asp.net c# code for Dynamic Custom Data Point on Multi-line Chart

I created a multi-line chart using visual studio 2010 with c# coding for a web application for a report .
The chart is depicted in the attached image file.
There is a need for me to insert a custom data point where a vertical line from a particular point x axis intersects a horizontal line from a particular point on y axis meet.  For example, in the attached image chart, I wish to have a data point depicted by a colored filled circle or square a point where vertical line from 34 on  x axis intersects with horizontal line from 700 on y axis.  This should be done by coding as points on x and y axes change in different situations for which report will be generated.  Even the filled color of circle or square should change dynamically as per the data driving the chart
Multi-line chart
Any suggestions for VB.Net interview questions.

How do you explain a approach for a vb.net desktop project.
If asked to explain a project and a methodology, any suggestions on how to explain.
Example: I have used classes etc.

I am trying to run a DTSX package from a SQL Job scheduler. I have created my job using Visual Studio 2015 and it works if I run it from my machine. I have then copied my Package.dtsx to the SQL Server and it gets error whenever I run from the SQL Server Agent - Job. I can run it locally from my Windows machine but weird error from SQL 2016 Server.

My folder has read/write permission. I do not have the file open.

Microsoft Visual Studio





Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop computer programs for Microsoft Windows, as well as web sites, web applications and web services. Visual Studio uses Microsoft software development platforms such as Windows API, Windows Forms, Windows Presentation Foundation, Windows Store and Microsoft Silverlight. It can produce both native code and managed code.