Microsoft Visual Studio

616

Solutions

672

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

Hi Experts

Could you confirm if the overall Visual Studio 2008 OLAP project concepts  (BIDS) are still useful nowadays?

I'm following a video course I obtained using this OLAP version.

I couldn't find any more apropriated topis for this question.

Thanks in advance
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.

On a build of my solution I am getting the message below
It shows as succeeded but what does the message mean?

Error occurred while restoring NuGet packages: System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.GetDirectoryName(String path)
   at NuGet.VisualStudio.VsUtility.GetNuGetSolutionFolder(Solution solution)
   at NuGet.VsEvents.PackageRestorer.UsingOldPackageRestore(Solution solution)
   at NuGet.VsEvents.PackageRestorer.BuildEvents_OnBuildBegin(vsBuildScope Scope, vsBuildAction Action).
------ Build started: Project: wsClientAPI-Prod, Configuration: Debug Any CPU ------
Warning: Unable to update auto-refresh reference 'restsharp.dll'. Cannot find assembly 'C:\Webs\wsClientAPI-LarryT\packages\RestSharp.105.2.3\lib\net4\RestSharp.dll'.
Warning: Unable to update auto-refresh reference 'stripe.net.dll'. Cannot find assembly 'C:\Webs\wsClientAPI-Prod\packages\Stripe.net.4.2.1\lib\net40\Stripe.net.dll'.
Validating Web Site
Building directory '/'.

Validation Complete
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

Open in new window

0
Hi.  I'm using VB.net and Visual Studio 2008 and Windows Forms.

QUESTION:  
1 WIth the datepicker object, I've blanked out the value initially then I let the user choose a date from the popup calendar.
After a user chooses a date from the popup calendar, then their date is populated into the form's field; however, if they change their mind and want it to go back to blank, it doesn't let them do that -- How do I allow a user to choose a blank option?

2. In a different datepicker field, I want it to be readonly so I've set the property to enabled=false.  Problem is it doesn't look greyed out (it's still white) so user thinks it's a field they're supposed to enter.   How do I make a disabled datepicker field greyed out?
0
This is my first experience with WCF and I am having a hard time wrapping my head around what is going on here. I have created an N-Tier application that uses a SQL database on our server. The application runs fine while running within Visual Studio because it automatically creates the WCF service. What I don't understand is how to create the service when the application is run outside of VS.

I have read many articles that detail the different ways to host the service but none that explain the steps to do it. Most take for granted a certain degree of knowledge with IIS, which I have no experience with it. I know you can also self-host the service. It seems like this would be the way to go, but again, I can't find documentation for setting this up.

Any help would be greatly appreciated.

Thanks,

Randy
0
I recently got a new laptop with Windows 10 build 1803.  I use Visual Studio Enterprise 2015 Version 14.025431.01 Update 3 and SQL Server Management Studio  Version 17.7.  We use a company's application that is hosted in the Cloud.  When trying to connect to their SQL Servers I get errors in both VS and SSMS.  Others with Windows 10 and a lower build number (1709 and below) have no issues connecting with VS or SSMS.  My Windows 7 computer has no issues connecting.  I have done some searching and have found references to the latest Windows Defender update.  I have not found a fix however.  Can anyone assist in resolving my issues please?  The error messages are below.  

Thank you in advance for your consideration.
Alex

Visual Studio Error:
TITLE: Connection Manager
------------------------------

Test connection failed because of an error in initializing provider. Login timeout expired
A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
Named Pipes Provider: Could not open a connection to SQL Server [53].

------------------------------
BUTTONS:

OK

SQL Server Management Studio error:
TITLE: Connect to Server
------------------------------

Cannot connect to server.reference.net.

------------------------------
0
Tried a lot to identify the root cause of this error but totally failed. Any suggestion will be highly helpful.

Try
    Dim Smtp_Server As New SmtpClient
    Dim e_mail As New MailMessage()
    Smtp_Server.UseDefaultCredentials = False
    Smtp_Server.Credentials = New Net.NetworkCredential(txtFrom.Text, txtPassword.Text)
    Smtp_Server.Port = cmbPort.Text

    Smtp_Server.EnableSsl = cbxSSL.Checked
    Smtp_Server.Host = cmbHost.Text

    e_mail = New MailMessage()
    e_mail.From = New MailAddress(txtFrom.Text)
    e_mail.To.Add(txtTo.Text)
    e_mail.Subject = "Auto Email"
    e_mail.IsBodyHtml = False
    e_mail.Body = "Hi, This is test mail."

    Smtp_Server.Send(e_mail)
    MsgBox("Mail Sent")


Catch error_t As Exception
    MsgBox(error_t.ToString)
End Try

Open in new window

0
Hi, if anyone helps me to write the better way to write this code, more appreciate. because inside code lot of If conditions,May be using sql
  private void cmbRequisitionNumnber_SelectedIndexChanged(object sender, EventArgs e)
        {
decimal ReqCost = req.RequisitionCost(cmbRequisitionNumber.Text.ToString());
            lblcost.Text = ReqCost.ToString();

          

            if (ReqCost >= 1000 && ReqCost< 5000)
            {
                cmbApprover2.Enabled = true;
              

            }

            if (ReqCost >= 5000 && ReqCost < 10000)
            {
                cmbApprover2.Enabled = true;
                cmbApprover3.Enabled = true;
              

            }

            if (ReqCost >= 10000 && ReqCost < 20000)
            {
                cmbApprover2.Enabled = true;
                cmbApprover3.Enabled = true;
                cmbApprover4.Enabled = true;
               

            }

            if (ReqCost >= 20000 && ReqCost < 80000)
            {
                cmbApprover2.Enabled = true;
                cmbApprover3.Enabled = true;
                cmbApprover4.Enabled = true;
                cmbApprover5.Enabled = true;
           

            }

            if (ReqCost >= 80000 )
            {
                cmbApprover2.Enabled = true;
                cmbApprover3.Enabled = true;
                cmbApprover4.Enabled = true;
                cmbApprover5.Enabled = true;
                cmbApprover6.Enabled = true;

       

Open in new window

0
How to divide/split a single image file into multiple image files    Posted on 2017-03-15    by Joe Winograd

I followed the steps and posted a question last night.   Please add this to that question.   Jean Thompson    I did not see the correct category so I made a random choice.
0
I am using Visual Studio Community 2017 version 15.7.1

I have a solution that is part of a git repository.  What I make changes to a file; there is a red check mark and when I save; the blue lock goes back on the file.  I would like to push this project as a change up to my git repository stored on visual studio.com.  However none of the changes on this solution are recognized.

What do I need to do to reset so the changes are recognized and I can add this project to the Visual Studio Team Services site?
0
Hi Experts,

My company needs to purchase Visual Studio.  We have a previous version that is licensed but anyone that would know who it's registered too is long gone.  We are also unable to confirm purchase, we believe a outside company installed it.  We are still trying to verify purchase, it is a older version.

We need the key to get upgrade pricing.  I am able to retrieve all keys but is there a way to confirm that we own it or who the owner is without contacting Microsoft?  There are other keys I want to verify as well.

Thank you,

Karen
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!

Hi

We have a cube built using Visual Studio which reads Data from SQL Server, some time back we created a Date Dimension which now needs to be extended

Is there an easy way to see what date that dimension goes to ie: 2020 and if so how can i extend the time dimension to say 2030
0
Architectural and best practices question request.  

I am rewriting an application from asp.net web forms to ASP.NET CORE 2.0 MVC using Visual Studio 2017.

I have a create view (input form) that has a drop down  and based on the selection in the drop down I would like to alter what is displayed in the create view (input form)

For example:

By default I would like to display some default input fields such as as Name, Date, Reason, Contact Phone number.

Some sample entries in the drop down are Engineering, Mechanical, Maintenance.
and if the user selects "Engineering" I would like the create view / input form to displayinput fields
Engineering Area and Engineering  Region, Engineering priority in addition to the above default fields.

If the user selects "Mechanical" I would like the create view / input form to display input fields.
Mechanical Problem and Mechanical Estimate, Mechanical Resourses in addition to the above mentioned default fields.

If the user selects "Maintenance" I would like the create view / input form to display input fields.
Maintenance Assignment and Maintenance Severity,   in addition to the above mentioned default fields.

I was wondering what the best practices (JavaScript framework?, intrinsic .NET CORE functionality?) were to achieve the above results.  Any online blogs or online tutorials would be of help also.
0
Working with Team Services and following MS docs to add to Source Control. In VB.NET 2017 the command "Add Solution to Source Control" is not where they say it is. They point to Files or to right click on Solution Explorer with no good result. Can anyone tell me where it is?

Thanks much for any help you give.

--Bob
0
Whenever I perform a search within a document in Visual Studio it always highlights this characters below, besides the word I searched for, which makes it very hard to find what I was searching for:
 <%
%>

How can I disable highlighting those characters ?
0
Hello Experts,

I have a problem with deploy a desktop application in a  client machine without installing crystal reports or visual studio.

I searched on the internet and i find a lot of suggestion , but i can't find the correct way ( i can't find the files of runtime for crystal reports)

Thank you.

Regards,
0
I have .Net 4.5 web application check in to Visual Studio Team Services and release as Azure Web App. Can I let other developers use Visual Studio to do remote debugging and line break without the solution source code in their local computer?
If that is possible please let me know the account and permission that I have to configure for the developers, and steps to do remote debugging as a developer.
0
I have a Visual Studio solution with many projects inside. It has some custom DLL files and DLLs from NuGet package. Considering when check in to VSTS, the DLLs inside bin folder will not be checked in to VSTS. And if I put the DLL files in a new folder under solution root directory, any project changes will have manually update in the folder.
1. What is the recommended structure for such case?
2. Can I check in the solution so that all the projects also has versioning?
3. Anything that I should be aware of when custom DLL or NuGet package update to prevent project error due to version difference?
0
In Visual studio 2017: Can the attached large form be developed so it has the visual effects of the attached smaller form?

ThanksForms-1---2.pdf
0
I got problem with  visual studio C# connection to Access  database, when I tried to insert data in the app, I see it entered but when I close the app and check the database it self ,  It  is showing  nothing in the database . I do not know why it is not saved in the database since there is connection and I checked it gave me success .

code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Haspital_HadithahEmplyeeSys1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void employeeDataBindingNavigatorSaveItem_Click(object sender, EventArgs e)
        {
            this.Validate();
            this.employeeDataBindingSource.EndEdit();
            this.tableAdapterManager.UpdateAll(this.healthCareDataDataSet);

        }

        private void Form1_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'healthCareDataDataSet.EmployeeData' table. You can move, or remove it, as needed.
            this.employeeDataTableAdapter.Fill(this.healthCareDataDataSet.EmployeeData);

        }

        private void employeeDataBindingSource_AddingNew(object sender, AddingNewEventArgs e)
        {
            this.employeeDataTableAdapter.Update(this.healthCareDataDataSet);
        }
    }
}

Open in new window

0
Simple Misconfiguration =Network Vulnerability
Simple Misconfiguration =Network Vulnerability

In this technical webinar, AlgoSec will present several examples of common misconfigurations; including a basic device change, business application connectivity changes, and data center migrations. Learn best practices to protect your business from attack.

DoItAll_Code.docxI have a process that performs calculations for every week in a 5 year contract, for approximately 30 task numbers (7800) rows.  The data is stored in a SQL Server.  I bring the data over, perform the calculations in Visual Studio and then send the rows back home.  It's taking a long time to perform.  I changed my queries in Visual Studio to SQL stored procedures but it didn't do anything mind blowing for time.

I have attached the 19 pages of code... yes 19.  HELP!
0
Greetings

I am using VS 2017 Enterprise with Telerik Controls. I have created new Project using a Master Page. There seems to be an issue with viewing the content in Design View and the Master Page. When viewing, the mouse see disabled and the controls are not viewable. It is as though the Mater Page is protected or locked. See Attached

If I comment out the Master page elements, I can see the controls and work with them.

Any thoughts?
0
Experts,
We use Visual studio to create and edit SSRS reports.
All reports were written using VS 2012 and published to a single SSRS Instance on a SQL 2014 server (InstanceA).
I was required to create a second instance on the same server (InstanceB), as part of our ERP upgrade
The report files are stored on a network file share.

I am trying to accomplish the following:
- Copy my report files to a different file share
- Upgrade the report files from VS 2012 to VS 2017
- publish the upgraded reports to Instance B
- Keep all original reports active and working on Instance A (until upgrade is completed)

I am sure there is a very easy way to do this. So far I have found about a dozen ways that dont work.
In most attempts I am in the new instance attempting to add existing reports.

Any guidance would be appreciated.
0
using Visual Studio Web Page.  I have a DataGridView with a checkmark box in the 11th column.  I want to color the row red if checked..  here is the code I have found to do this but nothing is happening.  THANKS

  protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        CheckBox chk = (sender as CheckBox);
            if (chk.ID == "chkALL")
        {
            foreach (GridViewRow row in GridView1.Rows)
            {
                if (row.RowType == DataControlRowType.DataRow)
                {
                    row.Cells[10].Controls.OfType<CheckBox>().FirstOrDefault().Checked = chk.Checked;
                    row.BackColor = System.Drawing.Color.Red;
                }
                else
                {
                    row.BackColor = System.Drawing.Color.White;
                   
                }
 
            }
        }
       
    }
0
I've been trying to fix this for days now. Using Xamarin and Visual Studio, I deleted the asset catalogs/media folder then I used app icon set creator to create the icons. I then went into info.plist under visual assets and hit add catalog, then dragged the icons into the slots.

No matter how many times I try this I get the same error.

Since this is xamarin, I was told I have to create an IPA file and upload using ApplicationUploader.  The file uploads but then I get an email from Apple with a build file error shown above.

Does anyone know how to fix this?

thanks!!!!

Missing Info.plist value - A value for the Info.plist key 'CFBundleIconName' is missing in the bundle

Open in new window

0
I'm using Visual studio 2015 entreprise version.
I'm writing a visual basic .net program.

The issue I' facing is that : the edit and continue feature is not working properly. I can modify the source code but can't apply it. see the attached file


How to allow code change inside VB.net program when in Breakemode ?
Edit_And_Continu.jpg
0

Microsoft Visual Studio

616

Solutions

672

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.