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

A have a telerik rad grid that is not displaying all the records in the recordset provided to it.  The radgrid's datasource is a SQLDataSource. When if I run the sql statement in SSMS, I see all records.

Another isuue I have is have to debug the sqldatasource in Visual Studio.

Any thoughts?
0
Ensure you’re charging the right price for your IT
Ensure you’re charging the right price for your IT

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

On check in in visual studio I want to be able to run the file trough a validation function to check certain criteria are met.

I have written VS add-ins before.

Is there any way I can put a hook in to validate a file on check-in and block it or display a warning to the user?
0
I'm looking for some help doing this assignment. Its due tomorrow Sunday 10/6/2019

 Please look at the attached file A07, for assignment instructions

HERE IS AN EXAMPLE of how the query going to look like


: 1.
 a) Least profitable
SELECT  prod.ProductID,
            prod.ProductNumber,
            prod.Name as ProductName,
            SUM(sod.OrderQty) AS QuantitySold,
            SUM(prod.StandardCost) AS TotalCost,
            SUM(sod.LineTotal) AS TotalRevenue,
            SUM(ListPrice-StandardCost) AS TotalProfit

FROM Production.Product prod
JOIN Sales.SalesOrderDetail sod
      ON prod.ProductID = sod.ProductID

GROUP BY prod.ProductID,
             prod.ProductNumber,
             prod.Name

ORDER BY TotalProfit

 




1. b) Most Profitable
SELECT  prod.ProductID,
            prod.ProductNumber,
            prod.Name as ProductName,
            SUM(sod.OrderQty) AS QuantitySold,
            SUM(prod.StandardCost) AS TotalCost,
            SUM(sod.LineTotal) AS TotalRevenue,
            SUM(ListPrice-StandardCost) AS TotalProfit

FROM Production.Product prod
JOIN Sales.SalesOrderDetail sod
      ON prod.ProductID = sod.ProductID

GROUP BY prod.ProductID,
             prod.ProductNumber,
             prod.Name

ORDER BY TotalProfit DESC
A07.docx
0
We had a developer who left long ago.  Recently we found that few of the files are showing locked under his name in TFS.

Now when we are trying to commit our changes from Visual studio and we are getting error that file is locked.

I need to how can I unlock these files, we tried a few from Google but those did not work.
0
We produce a Windows application the installs Microsoft Visual C++ 2017 Redistributable (x86) 14.16.27033.

On a Windows 10 computer, after the Visual C++ 2017 library install completes, a window pops up for a fraction of a second saying "A reboot is required to continue with the installation. After rebooting, re-run the installation. Click OK to reboot now or Cancel to reboot later" with an arrow over the OK button.

Then the computer reboots.

The developer says he can't reproduce that problem, and that there's no way to stop this - says there's no flag to stop the reboot.

The computers that reboot have a pretty standard set of applications with Office 365 and Web browsers.

Does anyone have an idea as to how to stop the installer from forcing an immediate reboot?

Thanks.

Tom
0
ssis 2017 export to excel works in Visual Studio but not in the cloud

Please provide an example of how to do it.

Thanks
0
We are developing our first Angular application within our department.
We have employed to consultants to do the coding using Angular 8, I believe.
We are a MS Visual Studio shop.

The consultants claim it is easier for them to develop using VS Code vs VS.NET.


Why would this be? And why wouldn't .NET offer an equivalent experience?
0
Hello:

In Visual Studio Code, and for Dynamics 365 Business Central, I cannot download symbols.  It asked me to see the output log, for more details.

How do I get past this error, so that I may download symbols?

Today, it is telling me that I cannot download symbols because I cannot connect to the server.  Yesterday, it was telling me that it is because I don't have "IndirectRead" permissions.

I'm simply trying to connect and test programming in the sample company Cronus.  This should be a sandbox.  Otherwise, I know nothing about logging into Dynamics 365 BC at my company.  I have no clue.

Anyway, below are the errors that I'm receiving.

Thanks!

John

[2019-09-15 15:29:17.99] Targeting server 'localhost' and server instance 'BC130'.
[2019-09-15 15:29:17.99] Please authenticate in the Visual Studio Code...
[2019-09-15 15:29:38.36] Using reference symbols cache path: I cannot reveal this.
[2019-09-15 15:29:38.36] Targeting server 'localhost' and server instance 'BC130'.
[2019-09-15 15:29:38.38] Using user name and password authentication. User name used is: 'I cannot reveal this'.
[2019-09-15 15:29:38.42] Sending request to localhost:7049/.../packages
[2019-09-15 15:29:38.43] Sending request to localhost:7049/.../packages
[2019-09-15 15:29:40.56] Error: Could not connect to the server. Please verify that:
1. The server is started.
2. The development endpoint is enabled (DeveloperServicesEnabled server setting).
3. The service name matches the …
0
Hi, I'm using Visual Studio 2017 to create an SSIS package.  Data isha from SQL Server 2016.

Connection Manager has an object EXCEL.

My package has 2 objects: 1) A dataflow control to get data from SQL Server.   2) Excel Data Flow that points to the Connection Manager object Excel.

I can export data from a SQL SERVER to Excel just fine.

QUESTION: How do I reorder the fields that are exported to Excel?
0
In the program I am writing I need to compare file I have found, with the version stored in TFS source-control.

How can I diff the file programmatically?

I have found the "Microsoft.TeamFoundation.Client" namespace. Is this where to start?

Ideally I would like to achieve the same result as the "compare" in Source-control.
0
Build an E-Commerce Site with Angular 5
LVL 13
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

Visual Studio 2017

I am trying to connect to an TFS database I have set up.

I have no "Tools/Connect to team foundation server"  option in the menus.

I can connect in Team explorer and see my "Defaultcollection" but get this message when trying to use it (for example by adding a new project).


TF400324: Team Foundation services are not available from server http://desktop-jfjo3lq:8080/tfs/defaultcollection.
Technical information (for administrator):
  Unable to connect to the remote server
  No connection could be made because the target machine actively refused it 192.168.1.6:8080

Also the "New folder" option in Source Control explorer is grey so I can't.

Any idea how I can open this up so I can connect?
0
I’d like to be able to code a path from the directory that maps to the IIS application directory instead of paths that have the ../../ format, i.e. paths that go up from the current file.

I have an ASP.NET MVC application that has AngularJS that I inherited. I’m confused about how the paths work.
For example, in the Visual Studio project (called Survey), there is a Scripts folder that has a Survey folder with an app.js file. That app.js file has code like this:
.state('result', {
    url: "/result",
    templateUrl: "../Survey/Result",
    controller: "resultCtrl"

Open in new window


It looks like the application is unable to find Result.
I’m just shooting in the dark guessing where templateUrl starts.
I don’t know if it starts in the Survey folder that has the app.js, if it starts with the Result.cshtml file.
I also don’t know what it’s trying to reach. Is it telling the MVC router where to find Result?

I get even more confused because the project is called Survey, there is a controller called Survey, and a folder called /Scripts/Survey

The people who made this application created a path to a file like this:
/Controllers/API/SurveyAPIControllers.cs

Then, there is a /Scripts/Survey/service.js with code like:
$http.get('/api/surveyapi/...).success(callback)

I don’t see how /api, gets to /Controllers/api

It gets even worse when I publish it to an IIS web server (IIS 7.5, sadly) because then I have to change it to:
0
Hi,

I'm using Visual Studio 2017 and Azure SQL Server 2016.  I'm creating an SSIS package and a script in c#.net

QUESTION:
1. My ReadOnlyVariables = System::StartTime
2. In my script Task, how do I get the value of System::StartTime?
3. how do I format datetime to yyyymmdd_hhmm
4. I want to write this information to a LOG file.  If the app1.LOG NOT exist, then create a log file (E.G., DATESTAMP + ' package kickoff'), else append data to it (E.G., datestamp + 'package completed'.
5. My WriteVariables = User:varFolderName.    in my script task, how do I assign a value to to varFolderName ?

What is the code to do this?  Thanks.
0
I'm getting the following linker error when building a solution for a Visual Studio 2019 windows console program...

Error      LNK2001      unresolved external symbol "public: virtual void __thiscall kymeta::sensor::API::StartServiceA(void)const " (?StartServiceA@API@sensor@kymeta@@UBEXXZ)

I have no method in my code that is named 'StartServiceA'. Where is this coming from?
0
Hi,

I'm using Visual Studio 2017.

QUESTION:
In Microsoft Azure Enterprise Cloud Services (ECS), I have a variable ENVIRONMENT=DEV\DEV

In SSIS 2017, how do assign a variable varEnvironment equal to the ECS variable ENVIRONMENT=DEV\DEV ?
0
I am using VS2019 community on both my Windows 10 PC and on Azure. On my PC I can open and amend and re-build my C# ASP.NET project. However on Azure when i change and attempt to build /re-build my solution it freezes and the only way to exit is to kill the MSBuild job.

I have no idea why the same project behaves differently on Windows 10 PC to Azure. How can I determine what is causing VS2019 community to freeze in Azure. Any help/pointers would be much appreciated.

Pat
0
How do I add "text to speech" to my desktop C++ application?   I use MS2017.  I cannot assume an internet connection - so "cloud services" are out.   Can one get the modern neural-network speech-to-text ability as a linkable DLL?
0
It is working fine and it stopped working now. When i run the javascript code from vscode,

i get the error

Attribute 'program' does not exist ('/node_modules/protractor/bin/protractor').

My package.json file is below

{
      "type": "node",
      "request": "launch",
      "name": "ptor Spec",
      "program": "${env:REPO_NEWTON}/node_modules/protractor/bin/protractor",
      "args": [
        "${env:REPO_NEWTON}/test/client/$file",
        "--disableChecks",
        "--flags=",
        "--browser",
        "chrome",
        "--specs",
        "${file}",
      ],
    }
  ]
}

Open in new window

0
I just got Visual Studio 2019 installed on my PC at work, and I want to create an install package for a VB.Net application, that package will run on a Windows Server 2012 or 2016.

However, the Application Packaging Project, which seems to be the way to create such an install kit, only supports packaging for Windows 10 in its corresponding dropdowns. How can I generate an install kit for Windows Server 2012 or 2016 ?

Thanks for help
Bernard
0
Exploring SharePoint 2016
LVL 13
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

Hello Experts,
I am trying to debug a Stored Procedure from Visual Studio 2013.  I have already done the followings.  When tried to Execute the code, the break points works in C# code.  But in the SP the Break Point displays the message "the breakpoint will not currently be hit...", and never goes there.  Please let me know if I am missing anything.

Under View --> Server Explorer --> Added the Database.  Picked the Stored Procedure and added the Break Points.  Also added the Break Point in the C# code in VS.

Thank you very much in advance.
0
I am developing a Xamarin application using Visual Studio 2017 on a Windows 10 laptop. I can run the app and see output on the Android emulator. How do I connect my Android phone to my computer and see the output on my phone?
0
When I try to run roxio nxt 7, I receive this error: Roxio-VideoWave---Error---2019-08-05.pdf
0
How do I add Bluetooth receiving to our Android application written using  VS2015 and C#?
0
In C# I'm trying to add a new dynamically created partition to and existing Aggregation Design.

If it is done statically in Visual Studio then deployed there is no problem. But when new companies are added I wrote a script task in the ETL to setup everything on the fly since the multi tenant cube is partitioned by Company.

It seems when done dynamically it is trying to create a schema bound indexed view of sums under the hood and since the underlying facts and dimensions are views themselves this fails.

Question is why is it trying to created this new hidden view. And why when the partitions are added in visual studio to the aggregation design prior to deployment i get no such error?

This is my C# code
                        //If Partition isnt found it needs to be created dynamically. Both the Archive and Current.
                        if (!lbFoundPartition)
                        {

                            //Create the new Archive Partition

                            oNewPartitionArchive = oMeasureGroup.Partitions.Add(PartitionNameArchive);
                            oNewPartitionArchive.StorageMode = StorageMode.Molap;
                            oNewPartitionArchive.Source = new QueryBinding(oDB.DataSources[0].ID, PartitionQueryArchive);

                            if (oMeasureGroup.AggregationDesigns.Count > 0)
                            {
                                oNewPartitionArchive.AggregationDesignID = 

Open in new window

0
I have installed the Entity Framework Visual Editor version 1.3.0.4 for Visual Studio 2017.
I added an EFDesigner item to my project. I now have a EFModelSurvey.efmodel file and a EFModelSurvey.tt file in my Solution Explorer.
My project is an ASP.NET Framework 4.5, MVC Code-First with EntityFramework version 6.
The project already has Model classes and already has migrations enabled to a Sql Server database.
When I open the EFModelSurvey.efmodel file, I get a mostly blank screen as, I expected. The screen says, "Drag from the toolbox to add objects to the diagram." My toolbox doesn't have any objects to drag over.
What I want to accomplish is to have the efmodel visually show the model classes the project already had before I added the EF Designer.
I am going through the tutorial at Github link, but nothing I try there works.
For example, when I try to drag my SurveyContext.cs file to the .efmodel screen, I get an error message: Could Not Load File or Assembly.
The reason I want to use the Entity Framework visual editor is because the Code First approach has been a nuisance and hindrance which has caused inordinate delays while bringing no benefits. I want to distance myself from Code First and am hoping that the EF Designer will be a buffer.
How do I get the EF Designer to show the database tables and their relationships or a diagram of the model code (I expect those should be the same) so I can just work with the EF Designer and not have to deal with all the tedium and delays of migrations?
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.