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

Can someone give me a safe step approach to converting a web application to a website?  Visual studio 2017.
0
When I try to Archive for Publishing on a Xamarin project that I have I get the following error:

The imported project "/Library/Frameworks/Mono.framework/Versions/6.6.0/lib/mono/xbuild/Xamarin/iOS/Xamarin.iOS.CSharp.targets" was not found. Also, tried to find "Xamarin/iOS/Xamarin.iOS.CSharp.targets" in the fallback search path(s) for $(MSBuildExtensionsPath) - "/Library/Frameworks/Mono.framework/External/xbuild/" and "/Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/AddIns/docker/MonoDevelop.Docker/MSbuild" . These search paths are defined in "/Users/Thomas/Library/Caches/VisualStudio/8.0/MSBuild/742_1/MonoDevelop.MSBuildBuilder.exe.config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.

Here is the StockLocator.IOS.csproj file contents
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="..\..\packages\Xamarin.Forms.4.4.0.991640\build\Xamarin.Forms.props" Condition="Exists('..\..\packages\Xamarin.Forms.4.4.0.991640\build\Xamarin.Forms.props')" />
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
    <ProductVersion>8.0.30703</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    

Open in new window

0
In a datagridview template I have the following command        

 int rowindex = ((GridViewRow)((sender as Control)).NamingContainer).RowIndex;
            string filelocation = GridView1.Rows[rowindex].Cells[4].Text;
            string FilePath = Server.MapPath(filelocation);// to get file path

How do I add to it to open in additional window instead of the existing window?
0
Downloaded ad installed Visual Studio 2019, its Inellisense is not working, specifically the SQL Intellisense. nothing seemed too crazy during the installation process and I'm wondering.
0
I am testing some web parts in SharePoint 2019 that were developed for SharePoint 2010. I have installed Visual Studio 2019 on my dev server, and the projects have been upgraded when Visual Studio offered to do so.When I try to deploy a web part, I get the error: "Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site: http://ehnordic/default.aspx/. Make sure that this is a valid URL and the SharePoint site is running on the local computer. If you moved this project..."
I have double-checked the URL (it is an internal URL) and it is correct. Then why do I get this error?
0
Hi.

We are using Dynamics 365 Finance and Operations online SaaS application.

Currently, we have three instances / environments deployed - Production, UAT and Dev.

We have a development VM for D365 F&O DEV server deployed through LCS services which comes with Dynamics 365 subscription. When we open Microsoft Visual Studio Management in this DEV VM then it is asking us for VS license and states Trial license has expired. We created this machine in December 2019 and till yesterday it was working fine and this morning we receiving license message in visual studio.

Version: Microsoft Visual Studio Professional 2015

We want to know does the Microsoft Visual Studio license comes by default with our organisation licenses for D365 F&O and through deployments of environments or its a trail version we get when we create DEV VM for D365 F&O so that now do we need to buy licenses for Microsoft visual studio?

Thank you.
VS-License-Error.jpeg
0
when i publish my project (web application) in visual studio 2019
I face this errors
Image-3.png
0
Hello Gents
I am working for a MS partner i have a customer who is asking me to provide Azure devops Server
I dont know about the licensing of this product

is it a Server and client licences product?
He did ask me about Visual Studio in the same request how are these related
0
To Whom it may concerns,

I notice that when I copy paste a script into the thread, recently it does HTML formatting and breaks all of the indentings. See the below for example.

$ListOfServers = Get-ADComputer -Filter {Enabled -eq $True -and OperatingSystem -like "*Server*"} -SearchBase "DC=Domain,DC=com"
# If you want in in a text files containing server list or names    
#$ListOfServers = Get-Content "c:\temp\serv.txt"

Foreach ($Server in $ListOfServers) {
    Invoke-Command -ComputerName $Server -ScriptBlock {
        # Get Certificate list and assign to a variable
        $Certs = Get-ChildItem "Cert:\LocalMachine\My" -Recurse

        #To get a list of all cert storage locations.
        #(Get-ChildItem -Path "Cert:" -Recurse | Where-Object {($_).GetType().Name -eq 'X509Store'}).Name        

        # Loop through each object in $Certs
        Foreach ($Cert in $Certs) {
            # If The objects property "NotAfter" is older than the current time, delete
            If ($Cert.NotAfter -lt (Get-Date)) {
                $Cert | Remove-Item -WhatIf # Remove the -WhatIf to make it run for real.
            }
        }
    }
}

Open in new window


Can anyone please suggest if this is a known issue in the new EE website or this is an issue in the Visual Studio code?
0
SQL code runs fine in Management Studio but when used in a SSRS report,  the Group By and Having statements in the query blinks (it displays and 1 second later is gone and then displays and is gone).  This is using visual studio 19 community.  If I try the report in Visual Studio 13 it doesn't blink but it also doesn't pull up any data.  The report itself runs fine in both versions, but I need to make some changes to the report so need to access the query.  

Note I just migrated from SQL 2008 R2 - I don't know if this has anything to do with it?
Fund-code-that-doesn-t-work.txt
0
I am upgrading a Visual Studio 2015 C# application to VS 2019. Everything is working with this one exception. I have added a lookup button onto a datagridview. In the 2015 version I can start typing numbers and when the lookup grid appears I can immediately start typing and grid will match the first number then the second and so on and so on. In the 2019 version I need to click in the lookup grid first and then I can start typing. I have checked every event and they all match between both versions. What else can I check to determine why I need to manually focus first on the lookup window before I start typing numbers?

        private void dgvViewJobLinker_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 0 && e.RowIndex >= 0)
            {

                using (frmLookupJob ViewAgenciesByJobsForm = new frmLookupJob("Job_Linker"))    /* Send down formname "Job_Number" so it will return job number not customer number */
                {
                    if (ViewAgenciesByJobsForm.ShowDialog(this) == DialogResult.OK)
                    {
                        ViewAgenciesByJobsForm.Show();
                        ViewAgenciesByJobsForm.Activate();
                        ViewAgenciesByJobsForm.Focus();
                        dgvViewJobLinker[1, dgvViewJobLinker.CurrentCell.RowIndex].Value = ViewAgenciesByJobsForm.CellValue;
                    }
                }
            }
        }
0
How to create a cab file, for a .net dll, to be installed, with visual studio 2019 community?
0
I have used Telerik JustDecompiler to de-compile some old projects that we have lost the source code for,

When I open the designer in Visual Studio, it gives a lot of errors;

The type 'System.Windows.Forms.UserControl' has no property named 'ListView'

I attach a picture showing all the errors.

How do I get the WinForms to display?Screen Shot of Errors
0
Hi,
I've created a tabular model and i've applied some security roles to the model.
When i test teh roles in Visual studio - by using the analyze in excel function, this works as expected.
I deployed my model to our server, i can now see the roles created on our server.
When i now connect via a  new excel spreadsheet to the model and pull the data, the security roles are not getting applied.
When i look at the properties of the data connection, there is no mention of Security Roles
If i add the text 'security roles = <rolename.' it will apply the check,

how do i get this to automatically take effect without me having to add the line to the properties definition on the connection@?
thank you,
0
In the data flow designer, i want a PARAMETER as my TABLE NAME in an ODBC Destination task. This is doable with OLE DB Destination because in the "Data Access Mode" drop down, "Table name or view name variable" is an option. This isn't an option in ODBC, so how do I apply a parameter or varaible to the table name in an ODBC Destination task?
0
I have an existing database that I have inherited.  This is SQL.


I Would like to begin checking DB changes into code and eventually having the db changes commmitted to code and then executing the change via my pipeline.

But to get started I wanted to determine the best structure to get an initial commit of the DB where it stands now.

How should I break this up.

I will be using GITHUB to checkin.  My pipeline is jenkins.

Please help with best practices keeping in mind this is already in production.
0
I have an app im trying to develop where im using an MDI form and have multiple forms showing inside it at once, id like to call the button click event when I do a particular action on another form but keep getting the object is not a member of form. So Im assuming its a private object but I cant find anywhere I can change it to public, can someone point me in the right direction ?
0
Hi, I receive the following code error when trying to run my MVC application from localhost using Microsoft AD. When debugging the application I noticed that GetExternalLoginInfoAsync returns null. However, the application runs fine on the web. What am I missing? Somebody please help. I have posted my code below the error message:

-----------------------------------
Server Error in '/' Application.

Object reference not set to an instance of an object.
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

 Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 140:        {
Line 141:            ExternalLoginInfo loginInfo = await AuthenticationManager.GetExternalLoginInfoAsync();
Line 142:            ClaimsIdentity claimsIdentity = loginInfo.ExternalIdentity;
Line 143:            ApplicationUser applicationUser = new ApplicationUser(claimsIdentity);
Line 144:            IdentityResult result = await UserManager.PersistAsync(applicationUser);
-------------------------------------


My Code
-------------------------------------

using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Cookies;
using …
0
Hi Experts,

I want to install Visual Studio at Mac.

What should I install?
Please provide valid link.

Thank you.
0
when i'm deploying package on my visual studio 2017 to my sql server ssisdb catalog. its failing due ISServerExec.exe can not be found.
can somebody help me fix this issue.
0
I am using Visual Studio 2015.  I am trying to disable "Edit and Continue" Debugging to avoid inadvertent changes to code while stopped at a breakpoint.

The following worked just fine under Framework 3.5.

However, the following does NOT work under Framework 4.6.1:

     Tools->Options
          Debugging
               General
                    UNCHECK "Enable Edit and Continue"
          Environment
               Documents
                    UNCHECK "Allow editing of read-only files; warn when attempt to save".

Does anyone have a solution?

Thanks in advance.
0
I have an SSIS package in Visual Studio 2019 that uses an ODATA connection to pull data from one database and update a table in another SQL Server database.

An SQL Server Job runs every 5 minutes to execute the package but duplicate data is being populated.

How can I stop the data from duplicating?
Do I need the SQL Server Job to run this package that has been deployed to the SSIS Service Catalog?
0
I have a sql database that has a shop order number the number is 8 characters and it starts from right side and adds spaces to left to make maximum characters.  how do I have a text box start from right side and add appropriate amount of spaces to the left side, in visual studio on a aspx webform?
0
Visual Studio 2017

In Source control explorer I have a workspace set up but I cannot add folders or files because the "New Folder" and "add items to folder" options are greyed.

How can I get these buttons un-greyed?
0
Hi you guys I have a huge program build in Windows forms, by now looks older...
Is any tool for migrate from Windows forms to WPF?

regards
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.