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

Visual Studio 2015, SSRS

I am having a problem working on RDL files locally.  I was sent some RDL file to review.   When I use  "Add Existing"  to add the reports to a report project, I can see the report design when I right-click and select "View Designer"

However, when I select "View Code", I only see XML.  What am I doing wrong?

Powerful Yet Easy-to-Use Network Monitoring
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

I am currently using the following in an SSIS package :
"SELECT *  FROM dbo.TestCategoryTestType WHERE Versionstamp >  " +   @[User::LSERV] + " and Versionstamp <=   "  + @[User::MaxRV]

Open in new window

When I click on the Evaluate Expression button, the above evaluates to:
SELECT *  FROM dbo.TestCategoryTestType WHERE Versionstamp >  0x0000000000000001 and Versionstamp <=   0x0000000000000001

Open in new window

This is what I expect to happen but when I run the package, it fails returning 'Incorrect syntax near '=''

Can anyone see what I'm doing wrong here. Using Visual Studio 2015 to develop.

Many thanks

I want to put a project I am writing on GitHub for public viewiewing.
What I want to make sure is no private information is in there.
I know my code does not have any references in there.

So things I am concerned about are.

My microsoft account email address
My azure devops Repos path - e.g. etc
+ anything else I am not aware of.

I am assuming I would need to remove a git subdirectory somewhere.

Anything else - any other hidden files etc?

My original code is in Azure Devop's at the moment.
I am happy and prefer if I can not to have all the history there.

Which is why I was thinking of manually uploading it all.

Any thoughts / ideas.


Trying to fix a broken expression in Visual Studio - using the Now() function, we need to get last month. Been using = "For the Month of" + MonthName(Now()-1), or at least that appears to be it. But this month it error'd, and can't seem to tweak the expression. For a report run today it should read "For the Month of December"
Need help with getting Visual Studio Code to use Visual Studio Team Services for my source control set up and working
Hi I am using Microsoft.Office.Interop, I have added its DLL on BIN folder and using its object, which is working fine when I run code through Visual Studio but when I run exact same code from IIS then It gets failed, I tried to find solution but its not working, Please suggest what I can do to fix that. Below is my code:
Dim xlapp As Excel.Application
            Dim xlworkbook As Excel.Workbook
            Dim xlworksheet As Excel.Worksheet
            Dim misvalue As Object = Reflection.Missing.Value
            Dim sheetIndex As Integer = 0
            xlapp = New Excel.Application
            xlworkbook = xlapp.Workbooks.Add(misvalue)
            xlworksheet = xlworkbook.Sheets("Sheet1")
            sheetIndex += 1

            ' Copy the DataTable to an object array
            Dim rawData(dt.Rows.Count, dt.Columns.Count - 1) As Object

            ' Copy the column names to the first row of the object array
            For col = 0 To dt.Columns.Count - 1
                rawData(0, col) = dt.Columns(col).ColumnName

            ' Copy the values to the object array
            For col = 0 To dt.Columns.Count - 1
                For row = 0 To dt.Rows.Count - 1
                    rawData(row + 1, col) = dt.Rows(row).ItemArray(col)
            ' Calculate the final column letter
            Dim finalColLetter As String = String.Empty
            Dim …
For part of a program I am creating I need to find the distance in miles between two ZIP codes.  This does not have to be exact, "as the crow flies" is fine.  I have found some solutions online but can not get them to work.  My background is in SQL but I have an understanding of programming logic, but I still can't get these to work in Microsoft Visual Studio.

The first one I found looked like it would do exactly what I wanted to do but the urls are not update and I am not sure where they may have moved to or what they used to be:

"{0}&output=xml" is no longer a valid link.

Another solution that I tried is:

For this one, the basic idea makes sense to me but I am not sure how to put it all in to action.  The link to download the examples is no longer valid and I am not sure where all of the code goes.  For instance, where do I need to reference "LoadData" from and what needs to be passed to it as the "path."  Also is the xml document stored in project somewhere?

Any insight into either of these solutions or even another that would work better are appreciated.  Thanks
Using Visual Studio C# what would the proper way to design an application that would allow the users to move people from one group to another. What I have are three tables that are filled with peoples names and skill sets. As they complete various classes and pass exams they graduate to a higher class. I need to write an application that will allow a user to mark one or more people in one group and elevate them to another group. In the past, I have always displayed multiple rows using a datagridview. Would that still work in this case? How would I execute the move? Add a column to the grid and when I save the grid execute SQL statements that move the marked records into the designated group. Is there a better way not using a datagridview? I am still learning my way around C# so any guidance that can be provided would be appreciated.
I have been studying the options for quite some time, and there are just many solutions available. The one I do not want to use is ORM.

My target is to create o local Database on Xamarin Forms with Sqlight, that i can feed with SignalR and Http calls. this will require dedicated SQL procedure on flat tables.

I am looking for a sample where sqlight is solved in VS2017 Xamarin Forms with  RAW SQL, if there is one with SignalR feed, or http feed that would be great.

I have studied the regular stuff, but RAW SQL seems to be quite rare, and tried some Git samples that appear in top list of google, many ORM, but even MS states that is is only for basic stuff, and not very transparent, for complexer stuff and deeper knowledge they recommend RAW SQL.

I would like to use the package for this.

I get the bellow error, when i try to install Windows Mobile 5.0 SDK for Pocket PC, in Windows 7 with the following error:
SDK.JPGI recall, the computer needs this software to develop an application destined to work in Windows CE 5.0 environment.
I really appreciate any help from you.
Thanks in advance.
The 7 Worst Nightmares of a Sysadmin
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

Using Visual Studio 2015 on Server 2008R2, coding in VB.Net.
Any of my existing projects now give the message
"Error while trying to run project. The Visual Studio Remote Debugger (MSVSMON.EXE) does not appear to be running on the remote computer. "
The projects still compile, and I can run the .exe, but I can't debug or step though code.
Any ideas?

VS2015 Error
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?
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 (! {
				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
Question about openxml and column width.
I set the column width like the following

Columns columns = new Columns(
                        new Column // Pos No.
                            Min = 1,
                            Max = 1,
                            Width = 3.71,
                            CustomWidth = True

Open in new window

I check the XML (open up the .xmlx file in VS2017) and it displays the correct value

    <x:col min="1" max="1" width="3.71" customWidth="1" />
    <x:col min="2" max="3" width="11.5" customWidth="1" />
    <x:col min="4" max="4" width="4.86" customWidth="1" />
    <x:col min="5" max="5" width="7.71" customWidth="1" />
    <x:col min="6" max="6" width="7.14" customWidth="1" />
    <x:col min="7" max="8" width="8.14" customWidth="1" />
    <x:col min="9" max="9" width="4.86" customWidth="1" />
    <x:col min="10" max="12" width="8.14" customWidth="1" />
    <x:col min="13" max="13" width="8.43" customWidth="1" />
    <x:col min="14" max="14" width="22" customWidth="1" />
    <x:col min="15" max="15" width="6.14" customWidth="1" />
    <x:col min="16" max="16" width="20" customWidth="1" />

Open in new window

but when I view the excel file, the column width is smaller than whats specified.
What am I overlooking?

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
2. Add-Migration "Initial"  
3. Update-Database

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.
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.
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 two seperate organisations in Azure devops.

What I am trying todo is work out the steps to copy a git repo from one repository to another.

The new one will be blank.

How can I do this?

Pasting the source URL does not work if I click on the import button.

Please note I also want to bring the history as well.


Any suggestions on Project example for MVC .

After converting my .NET website from VS 2015 on the server to a .NET Application in VS 2017 on my client, it seems that the events are no longer "wired up." AutEventWireup="true".

We have tried deleting the designer and rebuilding it.

None of the control events are working as before.

How can I fix this?
I've got a SSRS report which currently filters a dataset on "[ProgramID] = @ProgramID" and the report parameter is set to only allow a single selection.  This is currently done in the dataset which looks something like:

SELECT * FROM myTable WHERE ProgramID = @ProgramID

My client wants to change this to allow the user to select multiple Programs from the Program dropdown.

How do I modify the SQL query in my data set to accommodate this multi-select parameter?  I've tried a number of things and cannot seem to get it to work by modifying the SQL or by removing the criteria from the query and adding a filter to the tablix which uses the dataset.  I've searched and tried a number of "solutions" from here in EE and other web-sites and just cannot get this right.

HI Team,

Project :

I am looking for chart control which full fill below requirement.

I have to generate chart control with binding data from ms sql server database tables and with this generated chart need to save in database table with good quality of image so i can use in some annual reports pdf documents.

i have used Kendo UI line chart control have the option to save as either SVG or canvas. I switched it to canvas, which may have improved performance but the image, when retrieved from the database, was of lower quality and performance is very slow to generate for all my 700 companies i have chosen 50 companies per page to render then save in db and repeating same process until it reaches end of all companies but still performance and quality is not as good and sometime we observed some charts are drawn with empty data or half of data loaded and saving in db, this happens randomly and unable to figureout what problem is......

control i used as below:

and The ASP.NET MVC version is just a wrapper around Kendo UI for jQuery

so i am looking for any other chart control which can do my job as draw chart from binding data from tables and save chart images into table with good quality and good performance or how can i improve here

Please,I need your suggestion on this.
I have  a MFC console application created using Visual Studio 2017,
Log.h file
class CLog


	static	void Log(LPCTSTR str, BOOL bError = FALSE); 
	static	void Log(LPCTSTR str, BOOL bError, LPCTSTR szFileName);
	static void SetPathName(CString& strName);
	static CString m_strLogPathName;

Open in new window

#include <afxwin.h>
#include "Log.h"

using namespace std;


void CLog::Log(LPCTSTR szMsg, BOOL bError)

void CLog::Log(LPCTSTR szMsg, BOOL bError, LPCTSTR szFileName)
void CLog::SetPathName(CString& strName)
	CLog::m_strLogPathName = strName;

Open in new window

The above code is giving the compilation error:

Error      LNK2001      unresolved external symbol "public: static class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > CLog::m_strLogPathName" (?m_strLogPathName@CLog@@2V?$CStringT@_WV?$StrTraitMFC_DLL@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@A)      TestH1      D:\Test\TestH1\TestH1\Log.obj      1      
Error      LNK1120      1 unresolved externals      TestH1      D:\Test\TestH1\Debug\TestH1.exe      1

Thanks for your help

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.