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

Hi Experts,

I'm trying to map my Source Control Folder to my Local Folder.

I have set this up in the Edit Workspace dialog:

Edit Workspace dialog

So the Local Folder is D:\Dev-Ver7.0\VB.NET\VB.NET

But when I open the Source Control Explorer, the Local Path is shown as Not Mapped.

Clicking the Not Mapped hyperlink opens the Create a workspace mapping dialog:

Create a workspace mapping
The local folder is blank.  I pasted in the Local folder.
Clicking Map give this error:

The path D:\Dev-Ver7.0\VB.NET\VB.NET is already mapped in workspace SURFACE5_CIRCLY_7.0.

I have tried deleting the workspace and re-creating it, but still get the same error.

Regards,
Leigh
0
original error causing showing upHello,

A strange problem popped up on Visual Studio 2019 today.  Both Projects were created recently in VS2019 vb.net

1) Project A built and working no problem on my machine and everyone else's machines.  It includes a reportview v 15.0.
2) Project B needed a new report made but I wanted to make it a local report (populated with data that was already queried and brought down from the server and residing in a dataset).  I couldn't remember how to do this so I was fiddling with some of the settings in VS 2019 for THAT project and THAT report.  So I thought...

3) When I return to Project A I get a "required privilege is not held by the client" error when executing the reportviewer1.refresh command.  Everything else in the program seems to be working fine.  Earlier versions of Project A produce the same error BUT ONLY ON MY COMPUTER.  Everybody elses works just fine.  I broke something somewhere but I have no idea where to start looking.

Any ideas are welcome.  I've already flushed out the bin, reset VS settings, Reloaded the reportviewer references, and now the project won't build at all.  Got worse as I tried to fix it....

Thanks
0
Hi, is there anyway to Stop SSRS from Building ALL reports when Previewing in Visual Studio ?

Many Thanks
0
If using price in vb in visual studio what would you assign the variable? I did not see currency listed would I use int? Thanks
0
WRiting code in visual studio vb to declare a variable that will store the cost of bananas per pound
0
Hi,
I'm pulling a list of customers from a MySQL(MariaDB) Database, and putting them into a combo box.  this part works fine.
However I need the associated ID once someone goes through the list and selects from the list.

I'm using c# and Visual Studio 2019.

Here is my method:



private void load_Customer_ComboBox()
        {

            con.Open();
            MySqlCommand sc = new MySqlCommand("SELECT CustomerName from bbb.Customers", con);
            MySqlDataReader reader;

            reader = sc.ExecuteReader();
            DataTable dt = new DataTable();
            dt.Columns.Add("CustomerName", typeof(string));
            dt.Load(reader);
            comboBox1.ValueMember = "Id";
            comboBox1.DisplayMember = "CustomerName";  
           
            comboBox1.DataSource = dt;
           
           
            con.Close();

           

            comboBox1.SelectedIndex = -1;
}

So when someone picks a value from the combo box, I need a way to get the Id that goes along with it.  I've looked on the net and there are many conflicting ways to do it, but not alot of solutions.

I think I have to pull the value out of 'SelectedItemChanged' property of the ComboBox, but not sure how to do it.

Any help would be appreciated.

Thank you!
0
Hi,


Is there anyway I can download "Visual Studio Community 2019 - 16.4.2?


Thanks,

Ward.
0
Hi,
I published a MVC project to a business server.  It works but the data in the datatable is not showing.
Although, when I just debug in Visual Studio there is data.
This project has 2 tabs:  
The first tab is to show the datatable in question which uses Entity Framework;  
The second tab also has a datatable which shows data that is accessed via Ado.Net.
Data in the first tab does not show, while it does in the second tab.  


Could the problem be that while the datatable on the first tab references to this link
 <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.js"></script>

while for the second tab I imported the yadcf datatable
<script src="~/Yadcf/jquery.dataTables.yadcf.js"></script>   ?



FYI, when I published I used the below:

UNDER CONNECTION:
Publish method: Web Deploy
Server:  (Business Server Name)
Site name:  HelpDeskSupport
Username:  myUsername
Password:  myPassoword

UNDER SETTINGS:
Under "DBModel" as the datasource I added the SQL Server name with its username and password.
I checked the "Use this connection string at runtime..."



Could you please help me figure out what I have done wrong? Thank you.
0
Visual Studio vb.net  2019 project.  One of the dlls give the error message "The type initializer for <module. threw an exception".   This program has been running w/o any problems for several years using previous versions of visual studio.  The problem started with visual studio upgrade to 2019.  
The error occurs when loading two of the forms in the dll.  I use Devexpress controls and have used their tool to make sure that all required references are present.   Errors occur during load as I am unable to call any sub from the Load event.  I can't attach this to a simple project to look for errors as this dll has references to 4 other dlls.  
No errors on my machine,  but problem occurs on customers machines.
0
I was having a heck of a time trying to create a report in Visual Studio 2017.  I removed references to version 9 and installed 150.1400 from nuget and added the references back.  I was never able to get a report viewer onto a form.  It always ended up at the bottom as a component like the timer or backgroundworker.  I uninstalled 2017 and installed 2019 after hours of unsuccessful google fu trying to fix it.  2019 allows me to drop a report viewer onto a form but I am missing the add new item - report option.  So now I can drop a report viewer onto a form but I can't add an RDLC to my winforms project.  I may go back to VS 2010 where things just worked...This is crazy frustrating.

Any ideas on getting the report creation option into the menu?

Thanks
screen shot references
0
Hello All,

I tried to create an ASP.NET MVC CORE web project using Visual Studio 2019 Community. But when I am right-clicking on Model Folder >> Add A New Item>>
I am seeing “ADO.NET Entity Data Model” under [Data] tab. Can someone explain what I need to do so that I can see “ADO.NET Entity Data Model” under [Data]  ?

Thank you
ADO-NET-Entity-Data-Model.docx
0
First I should mention that this is "all new to me" because I always worked with visual studio 2008 on Windows CE devices using vb.net.

Now I am having trouble installing a working emulator in visual studio 2019 for a C# Android project.  I am trying to make changes to a working project with my newly installed visual studio 2019, and I choose Create Android Emulator from the dropdown at the Start button.  The problem is that most I've tried to install literally hang for hours and never finish, and the few that have successfully installed won't work.  For example, one that did install successfully was Pixel 2 Pie 9.0 - API 28 for the x86_64 processor, but when I try to debug I get this error:

ADB0020: Android ABI mismatch.  You are deploying an app supporting 'x86' ABIs to an incompatible device of ABI 'x86_64'.  You should either create an emulator matching one of your app's ABIs or add 'x86_64' to the list of ABIs your app build for.

So I try to install the emulator for Pixel 2 Pie 9.0 - API 28 for the x86 processor, but it hangs forever.  I know from experience that if I let it sit there all night it will still be sitting there spinning tomorrow morning.

Any ideas or suggestions?  TIA
0
I sometimes have problems with programs crashing when I format a string incorrectly. For example, using wsprintf. Is there any way to catch these to prevent the program crashing.
0
I have 3 c# programs using Visual Studio 2009.  Programs are installed using Installawere X10.  The programs were installed on a College network previously and these are the updated versions.  All three install and work on my working computer and my two virgin computers.
One of the programs installs and functions properly on the College system, while the other two install, but when they run, a message states "The program has stopped working".   I remove the older versions before the install.  I have recompiled and then recreated the install program several times.  I thought the College may have a firewall stopping the programs, but one works perfectly.
This is really frustrating because I have a problem that I can not reproduce on my systems.

Any ideas and/or suggestions would be greatly appreciated.  

Vaughn Whitehead
0
Hi,
I am working with a tabular model in Visual studio SQL SERVER 2017 and one of my underlying source table has changed design.
I would like to refresh the table on my model so that this change is updated on my tabular model.

When i look this up there are lots of references (https://docs.microsoft.com/en-us/analysis-services/multidimensional-models/refresh-the-schema-in-a-data-source-view-analysis-services#bkmk_DSVrefresh) ,
 to go to the DSV (data source view) but i don't see data source view under solution explorer -
If i click on the 'data source' under tabular model explorer  but there is no refresh option.

I tried processing the database on full since someone mentioned that as a solution (https://stackoverflow.com/questions/54708558/how-to-update-tabular-data-from-source-tables)
but i'm still getting an error

I would appreciate any help or advice on this please?
Thank you
0
I have installed the visual studio 2019 community but after some days it showing that my license has expired and I cant use it. Weird because it’s a community edition so shouldn’t it be free? I have done a ton of things – restarted my pc, reinstalled but still the same issue. Can someone guide here…what’s going on?
Thanks
VS-weird-issue.png
0
Hi,
I have created a tabular model in visual studio [Enterprise 2017 version 15.9.04]
I have deployed it to my analytics server.

I want my college [Enterprise 2017 version 15.09.14] to be able to work on the model also, so they have copied over the complete solutions folder onto their own drive and they opened the file and can see the model and the tables - however when they look at the grid [on design view] it says 'does not support preview' and they can not see the data against the tables.

we have tried to rebuild the model on their machine, and refresh, all connections to the source are working. we then tested and imported a new table into their model, when they do this they can see the data for this table. but still nothing for the other tables.

What could we do to help this? If we want to build tabular models in the future, can we not build them on our desktops and deploy them and share the solutions with others to work on, do they have to be on the servers workspace (desktop).

We googled a few suggested solutions: we checked the configuration properties for the solution was tagged so when it was built it would build everything.
We also tried deleting the bin and obj file closing VS and reopening and and rebuilding everything. Can anyone please help?
Thanks,
0
I have scoured experts exchange and all the other posts related to the failed validation and returned validation status "VS_NEEDSNEWMETADATA" error in Visual Studio 2019 and nothing I found applies to me.

I have an SSIS project that has two SSIS packages in them. Both use the same ODBC connection. Both are querying smiliar views from the same database. These views aren't changing (aka: the columns in the view are, and have been, static).

One of the packages executes fine. The other gives me the VS_NEEDNEWMETADATA error.

I've tired everything suggested in other posts to no avail. I've even completely deleted the Data Flow task and recreated it.

This is not an issue with OLE DB, but I don't want to use OLE DB.

Is there anything else I can try?

I did see in another post that this was only  happening to them on VS2019 and not 2017. Does anyone have any info on that?
0
How do you send an email using SMTP, Visual Basic and Visual Studio 2019?  I can't get it to work!!!
0
Hi

I opened a VSTO Excel Add-in project that I built in Visual Studio 2010 and got the following  message in Visual Studio 2019.
How do I get around this? Can I change to s different framework?

1
0
I have a windows form I created in visual studio 2017, In the form I have a datagrid view called DataGridView1 the form connects to a sql database. The table that populates that database is called tbl_Supervisors and contains the following fields. Empl_ID (unique Primary Key) Last_Name, First_Name and so on. I created a button with the following code (see below) to remove a selected record or records from the grid. However, this does not removed the records from the database. I'm assuming I need something like SQL.ExecQuery("Delete From tbl_Supervisors where EMPL_ID=
but being a semi-newbie I don't know the proper syntax and where to place that line or lines of code in relation to my code below.

Private Sub cmdDeleteUser_Click(sender As Object, e As EventArgs) Handles cmdDeleteUser.Click
        If DataGridView1.SelectedRows.Count > 0 Then
            For i As Integer = DataGridView1.SelectedRows.Count - 1 To 0 Step -1
                DataGridView1.Rows.RemoveAt(DataGridView1.SelectedRows(i).Index)

            Next
        Else
            MessageBox.Show("No rows to select")
        End If
    End Sub
End Class
0
Hi
I'm not sure I'm approaching it correctly to run Javascript in MacBook Visual Studio Code.
One page suggests a Code Runner install from marketplace.visualstudio.com
but I'd like confirmation that that is exactly what I'd want.
Will it run my javascript in a browser, or equivalent environment? how? Is there a special setup needed?

does everyone have this issue?

Thanks
0
Hi
I've found a GitHub Javascript example that I'd like to work with.
It is called hextris, and is a tetris like thing with hexagons. The touch and mouse handling code spots are very simple to find.

Is it indistinguishable if I pull it in to my visual Studio code project using their importing system, or copy the files myself? Obviously their project importing is just quicker?
The project page is here
I think I'd like to set up the files myself, to better learn the IDE?

Thanks
0
c# for windows 10 but that is not an ide/editor where I can type "hello world", "for loops", "while loops"

not something big that will slow down my computer and crash
 like visual studios
1
Hello,

I'm using COM object in my application and i'd like to make some changes on my methods and would like to see how is the change so are there any tool in Visual Studio to track this ?

Any help would be grateful.

Thank you.
0

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.

Top Experts In
Microsoft Visual Studio
<
Monthly
>