Improve company productivity with a Business Account.Sign Up

x

Microsoft Visual Studio

586

Solutions

631

Contributors

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

What are the steps to migrate an asp.net app using .net framework 4.0 to 4.5 using Visual Studio 2017?
0
The Lifecycle Approach to Managing Security Policy
The Lifecycle Approach to Managing Security Policy

Managing application connectivity and security policies can be achieved more effectively when following a framework that automates repeatable processes and ensures that the right activities are performed in the right order.

VB.net: tableadapter.fill is slow on one form- a problem that is new, with a small database (meaning this has cropped up quite recently, with no obvious code changes to blame).  After reviewing solutions on various websites, I decided to use Visual Studio's "performance profiler"; but when I start the code that way, it runs like lightning!

This is on a Windows 8.1 system, Visual Studio Community 2017, version 15.5.6, net version 4.7.02558.  The VB system talks to a Microsoft Access database.  System has been working fine for several years; only changes I can see might be Microsoft updates to the OS.

I can't really insist that my client constantly use the performance profiler to run the system...
0
Hi

I a developing an Excel VB.net/VSTO in Visual Studio 2017. It is for Excel 2013/2016. How can I tell if the
deployed application is 32 bit or 64 bit? Is this something I can change before deploying the project?

Thanks
0
Write a program - Survey Analysis
 
Background There is a Survey Manager who is responsible for all the Surveys enrolled by different companies.  This survey is conducted every year. The companies who enroll themselves into an ongoing Survey answers to the questions asked to them. The Survey is taken once every year. The current problem is given to you on the 2nd year of the survey. You will have to create data for both year and other details are given below.
 
Take the below questions as an example for your user story
What is the name of your Current Project?
How much is your yearly revenue?
How many employee you have?
Less than 10
10 - 100
100 - 500
500 - 1000
1000+
What is the goal of your company in 500 words?
Do your company have health and safety team?
Yes
No
Select all applicable clients you have  
Local
City
National
International
How many employee you have per gender?
Women ________
Men       ________
Others   ________
Date of submission: dd/mm/yyyy
   
Create a set of answers for all questions on behalf of each company for year 2016 & year 2017. Make sure your answers for year 2017 is little different from 2016. (This is like creating a sample data for your user story) So now you have all the necessary prerequisite for the below mentioned story.
 
User Story: The system must read all the answers to each companies for year 2016 and 2017 then it should return the following:
Get the company name who has minimum …
0
Using Visual Studio 2015 and Team Explorer, I've encountered an error while fetching from the GIT repository.

Error encountered while fetching: The given reference name 'refs/heads/master (DESKTOP-96E21S3's conflicted copy 2018-04-16)' is not valid

My solution is stored in my DropBox account. I have googled this error and it only brings up dropbox solutions, but I'm thinking this error is related to Team Explorer since it occurs when fetching.

repository

I cannot delete it, merge it, or reset it. I can't check out code or check in code.

Any ideas how to fix this?

Thanks!
0
I subscribed to the Microsoft Action Pack back in February of 2018.

At the time I viewed all of the software I was entitled to download.

I have now logged back in the Microsoft Action Pack but don't remember where to go to download the software the view the software activation license keys.

Please provide me with the exact URL address I can go to that will allow me to download the Action Pack Windows software and to view the software activation license keys.
0
I am using Visual Studio 2012 to edit an SSRS report.  VS does not show the SQL Data Tools so I downloaded and installed the latest version.  However, it does not show Update under the SQL menu option of VS 2012 to add the SQL Data Tools

I restarted my computer but still do not see Update or SSDT

Can someone tell me how to get SSDT on VS2012?

Thanks
0
After Updating my EDMX Diagram by deleting a table and re-adding it back (I had to remove a field from the table), I synced my code.
Now my co-worker after syncing her code, is unable to view her EDMX diagram (it is blank) and she is getting errors.  We are connected to the same
development database.  How can we fix her EDMX?

I believe we need to delete the .edmx and then add new entity framework?
0
Hi Experts,

          I am using  ITaskSchedular interface to retrive the Last runtime of the task scheduled. Code is working fine upto windows 7 using visual studio 2010. PLease suggest the way to make it working in windows 10.Link for source code is as given below:

https://msdn.microsoft.com/en-us/library/windows/desktop/aa446844(v=vs.85).aspx


GetMostRecentRuntime() hr shows the task has been not run yet.(I already run the task .)


Thanks in advance.
0
I'm trying to run a bat file (with parameters) from an MVC controller.  Can somebody please tell me what I'm doing wrong?  When I run this without parameters it works.  When I add parameters, it doesn't.  I get no errors.

This is what it should look like at the command line:
c:
cd C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow
vstest.console.exe "c:\Program Files (x86)\myFolder\SeleniumTest.dll" /TestCaseFilter:"TestCategory=Main Menus"

Open in new window


code snippet from Controller:
steName = Name; //parameter

            Process myProcess = new Process();

            try
            {
                myProcess.StartInfo.UseShellExecute = false;
                myProcess.StartInfo.WorkingDirectory = @"C:\scripts";
                myProcess.StartInfo.FileName = @"C:\scripts\CmdRunTests.bat";
myProcess.StartInfo.Arguments = steName;
//myProcess.StartInfo.Arguments = String.Format("\"{0}\"", steName); //Also tried this line
                myProcess.Start();

bat file:
set steName=%1
@echo off
c:
cd C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow
vstest.console.exe "c:\Program Files (x86)\myFolder\SeleniumTest.dll" /TestCaseFilter:"TestCategory=%1"
pause

Open in new window

0
Improve Your Query Performance Tuning
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

Good day,

I am using IIS 10.0 and Microsoft Visual Studio 2010, ASP.Net

apparently this doesn't do as I expected it to do. I tried redirect but it gives me an HTTP 404 error, because there is a none existing xyz.aspx on the iis server or resource.

But I just really want to rewrite the abc.aspx to xyz.aspx without really redirecting, is this possible? I tried running this and it just stays still on abc.aspx, please help, thank you.

<system.webServer>
<rewrite>
<rules>
<rule name="abcRewrite" stopProcessing="true">
<match url="abc.aspx" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" />
</conditions>
<action type="Rewrite" url="xyz.aspx" />
</rule>
</rules>
</rewrite>
</system.webServer>
0
im using a file dialog box to let the user see a list of text files (*.txt) when i select one to open.it wont output it in my listbox im using a do while loop to read each item from the file and print it in upper case in a listbox.
0
Hello Experts,

Looking at the Visual Studio image of a configuration of Azure Service Bus, can someone let me know how to deploy the configuration to Azure?

Thanks
servicebus.png
0
Hello,
I am trying to find rowindex of datarow( vb.net desktop). The code is as follows:
 Dim dtDgDiarySource As New DataTable
                                            dtDgtestSource = FrmMain.Dgtest.DataSource
                                            Dim rows As DataRow()
                                            rows = dtDgtestSource.Select("D_UID  = '" & row.Item("D_UID").ToString() & "'")

Open in new window


Cheers
0
i have a text file inside my bin-debug file ( its empty). my code is supposed to be a do while loop, and when the user presses a button they are supposed to enter 3 words in, once they do they that, those words will be inputted inside my code, this is my code right here. when it runs, it won't output the letters, and it will stay in an infinite loop.




Dim myfile As IO.StreamWriter = IO.File.CreateText("question2.txt")
        Dim questfile As Double

        questfile = CDbl(InputBox("enter 3 words to be outputed in a text file: enter -1 to stop"))

        Do While CDbl(questfile) <> -1
            myfile.WriteLine(questfile)
            questfile = CDbl(InputBox("enter 3 words to be outputed in a text file: enter -1 to stop"))
        Loop
        myfile.Close()
0
i had created a listbox and i inputted random numbers and letters. i want it so when i run the code, when i click any of the inputted items it outputs to a label, and im having a tuff time doing this, can anyone help???
0
Hi, I downloaded and installed visual studio for mac and created a new Web Form Project.  I've noticed a couple of differences, but the biggest one is that I see no tools in my toolbox.  I also can't open a design view.  I've tried to check for updates and I'm still unable to see anything.  Has anyone experienced this?  Does anyone have a solution?
Screen-Shot-2018-04-07-at-9.34.31-AM.png
0
I have a task where I need to generate a bunch of individual xml files based on data in an excel spreadsheet. The outputted xml is well defined in that there are a set of instructions that each individual xml file requires.

For example, the requirements include:

If Column F is empty, pass. If it contains a Value, proceed.

Take house Number from Column T & Enter into Filename.

Open XML Record.

Take house Number + "_SP" from Column T & Enter into and all attributes.

etc...

Essentially it will need to make a new .xml file for each row in the excel sheet with a value in column F.

I have previously used Visual Studio to do data transformation, but have been unable to find anything regarding producing xml files from VS. Is VS a good tool for this task?

Or is there a better option?
0
I created an MVC project in my Documents folder on my C drive and then added it to Source Control.  The Source Control version is mapped to a different folder on my C drive (CorporateProjects). Everything was going fine, I was checking in and getting latest from Source Control and it was updating to and from CorporateProjects as it should.  I'm not sure what went wrong, but it started updating the original project in my Documents folder instead.  Things I have tried are 1) removing any additional Workspaces 2) unbinding everything and making sure the binding only goes to CorporateProjects. Now when I do a get-latest, it gets latest but, when I try to build, it gives me errors saying the source files can't be found in my Documents folder. I've made sure the LocalPath maps to CorporateProjects.  How can I make it look for the files in CorporateProjects instead of the Documents folder?
1
A proven path to a career in data science
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

how do i loop through the array to put certain words that start with certain letters in a listbox, i have a file that is in my debug bin folder, and i have 3 listboxes.and i want to put the words that begin with the letter A-F into one list box, G-R into another list box, and the words that begin with S-Z in another listbox
words.txt
0
im having trouble setting up this code, i have a file with a bunch of number in it, and its placed in my debug bin folder. i have 3 list boxes and i need to make 1 listbox have numbers 0-50, the second to have 51-75 and the third 75-100, how do i do that using an array.
scores.txt
0
hi,

I have been asked to document a process the credit check process in SAP.   Specifically a custom ABAP program called: "Z_ BYPASS _ ORDER _ CREDIT_ CHECK".
I am not very experienced in ABAP but I do have experience in programming in general with visual studio.

I would like to be able to debug this program and see what is happening but I am unable to do so (see screenshot below:).

My question:

1. Is it possible to for me to debug this "Z_ BYPASS _ ORDER _ CREDIT_ CHECK" routine? if so, how?

ThanksAbap - when trying to debug
0
Cannot view folders in Source Control Explorer.  I closed out of it and now it won't show up. Please see screenshots attached.  I checked toolbars, various explorers and option to see if I can see them again but I can't seem to find it.    Can someone tell me how to make the folder explorer appear again.
Thank you in advance!
0
how do i declare a two dimensional array that can hold 4 grades for 10 students. Initialize the array with the following grades using {} notation.  Column 0 represents Exam 1, column 1 represents exam 2, column 2 represents exam 3, and column 3 represents exam 4. For each exam, print out the average of the exam grade for all students in a listbox. (i have to use a  nested for next loop for this. i am also given this code


Dim grades(,) = {
        {80, 63, 59, 50},
        {96, 97, 98, 94},
        {88, 70, 63, 89},
        {63, 68, 86, 84},
        {72, 84, 86, 63},
        {84, 84, 80, 87},
        {72, 79, 64, 92},
        {89, 63, 99, 65},
        {99, 98, 97, 98},
        {99, 69, 62, 98}}
0
How do i create fill a string array from a file. (the file is -hwk10Words.txt-) Loop through the array and put the words that begin with the letter A-F into one list box, G-R into another list box, and the words that begin with S-Z in another listbox. Then output the number of words in each label above each listbox.
Hwk10Words.txt
0

Microsoft Visual Studio

586

Solutions

631

Contributors

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.