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

I'm a bit confused. I am working on how to use Visual Studio 2019 to create VB.NET web sites/applications. In my very first test project I got things with CodeBehind. Now I can't  seem to find that project type anymore that create the CodeBehind, because my next little project only makes Codefile. I use the "ASP.NET Web Application" to start a new project.
Any idea what is wrong here (beside me...)?

Best regards

Ulrich
0
I am using Visual Studio 2015 on a Windows 10 laptop. I have a Web Forms project that uses .NET Framework 4.5.2 and is done in Visual Basic .NET. I want to add a REST API to the project. I made a change like this to a C# Web forms project, but I can't get my code changes to work. I reverted my changes to start from scratch. I had to add a Global.asax.vb file to me project.

How do I add the REST Web API?
0
Hello,
I have an issue with SSIS toolbox controls in Visual Studio.
I'm using Visual Studio 2019 , I installed Analysis service project  for Visual studio 2019 from Microsoft Marketplace

the problem is when i create any SSIS project and add SSIS Package i cant didn't any control in the SSIS Toolbox
i googled it , but with no luck!

please have a  look at the attached that show the SSIS toolbox with no controls !!
SSIS-Toolbox.png
0
How do you add a service reference for a secure web service in Visual studio 2019...

I can view WSDL in browser as the browser asks for the certificate but VS just says can not establish secure ssl/tls.

I have the very in the trusted root store and have given account access unless VS runs under a different account?
0
Hello, I have built a .net solution which you can see here on github. The solution contains a web api project which is based on mongodb and uses easynetq. It also contains a console application which has a reference to the web api and also uses easynetq.
I was asked to deliver this solution wich a docker compose command, however I faced a few issues with the dockerfiles and the docker compose file, hence this answer. Whenever I add the Visual Studio support for Docker in my projects, then the solution fails to run....among other problems. Can you please provide me the correct docker files for this scenario?
0
Hi folks,

I have a single-objective optimisation problem. I have a network of pipeworks (pipes + fittings) with various routes, one of them will be the critical route. Designing such systems require to size the pipes and fittings accordingly in order to satisfy local rules related to individual elements (minimum allowed velocity, pressure, etc.), and global rules that have to do with the entire system (i.e hydraulic losses along each considered flow rout). The optimum design should is defined to be the cheapest option that satisfies all defined rules (local and global). While we could iterate through all standard size for pipes, starting from minimum size until a solution is achieved. However, there are challenges in such approach such as the enormous space solution, the nonlinearity of the specified problem and various solutions to explore, the include the possibility of splitting a single pipe into segments with different sizes and new fittings between them, which will add new pressure losses to the system. I was wondering what is the best and simple optimisation problem that I can adopt here? and how it could be implemented in visual studio using C# (though I am a beginner programmer). Any help in this would be highly appreciated.

Many thanks,
Aziz
0
Hi guys,

I am having a really weird issue with sql server deployment. So here is the scenario:

I have a SSIS package which is using a C# user component that reads a file and inserts in a sql server database. When I run package from visual studio, it runs fine, does the insert in sql server which is on a different machine and life is good. Now, I deployed this SSIS package to a sql server and then try to run the SSIS from sql server and I get this error:

OLE DB Destination Input has lineage ID 2000 that was not previously used in the Data Flow task.

OLE DB Command Input has lineage ID 3281 that was not previously used in the Data Flow task.

The buffer type is not valid. Make sure the Pipeline layout and all components pass validation.

INSERT INTO <tablename> failed the pre-execute phase and returned error code 0xC0202020.


Both development machine and Sqlserver machine are 64 bit.

Have been scratching all my hairs out but still can't figure out. Package runs completely fine when I run this in visual studio.

I also copied the C# dlls used by SSIS to the sql machine:

C:\Program Files (x86)\Microsoft SQL Server\110\DTS\PipelineComponents

C:\Program Files\Microsoft SQL Server\110\DTS\PipelineComponents

is this a deployment issue? Because Package runs completely fine from visual studio.

I seriously need some quick help.

I really appreciate it guys.
0
I am using ClickOnce deployment to deploy a program to client's computers. I signed it with a self signed certificate and added it to my root CA just for testing. I then deployed updates onto our web servers to test our update feature as described here:
https://docs.microsoft.com/en-us/visualstudio/deployment/how-to-check-for-application-updates-programmatically-using-the-clickonce-deployment-api?view=vs-2019
However, when attempting to download the manifest, it returns an error. Below is the log:

Following errors were detected during this operation.
	* [7/25/2019 4:08:55 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
		- Downloading https://aienrqa2.synergydcs.com/Downloads/WYEPB/EPB.application did not succeed.
		- Source: System.Deployment
		- Stack trace:
			at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
			at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
			at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState, X509Certificate2 clientCertificate)
			at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
			at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification 

Open in new window

0
System.Data.CNXException: SQLState=08001 ErrMessage=Unable to find CDD. (\\xxxxxxxx\xxx\DataDictionaries\xxxv12.cdd)CCnxCDD:: Data Dictionary OPEN failed(10) disk I/O error

Does anybody know what this error message implies. Coming from an internal web app. randomly shows up for a user, retrying action will succeed.
0
We have a report with multiple Tabs in it. So to reach  each tab, We have used Document Map.

As we did not want to see Document map tab in Excel so used  expression like this IIF(Globals!RenderFormat.Name="EXCELOPENXML", Nothing, "Test")  as per suggestion on the below link:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/e6850044-78fb-4a13-8de4-f61388656835/exclude-document-map-in-the-excel-export-of-ssrs?forum=sqlreportingservices

But later we realized  that document map label stops working on Visual studio and Browser, once we export the report to excel .

As Per the code =IIF(Globals!RenderFormat.Name="EXCELOPENXML", Nothing, "Test") - Document map Label is Set to nothing post/During Export.

This issue we are facing in current Production Environment also.

Please advise.
0
hello, expert.
I can't open the project I shared as zip.
I don't know why  don't it to work.
This project is related to the health sector.
This project is written in c # language.
thanks alot.
when I compiler the project, it gives the following error.

There was no endpoint to listen to at http: // localhost: 18699 / HealthFacilityService.svc. This is usually caused by an incorrect address or SOAP action. See InnerException, if available, for details.

Open in new window

0
I am using Visual Studio 2017 mvc with Visual Basic. I want to have a view with two tables from my model. In my controller I have tried to set up a dynamic expandoobject (my code below).
Dim viewData As Object = New Dynamic.ExpandoObject()
            viewData = db.tblDivision.Where(Function(c) c.ExpireDt Is Nothing).ToList()
            viewData = db.tblGroup.ToList
            Return View(viewData)

When I go to the view, I can't find the correct way to define the modeltype to use the dynamic object. I have tried the below but it is not working.
@Modeltype IEnumerable(Of Dynamic.ExpandoObject)
@Model  viewData
0
I have a C# Webform application which freezes every time I open the application in VS2017. As soon as I edit any source such as web.config then it freezes within approx 1 minute and I get a Not Responding message. Each time I have to go to task manager to end the task.  It may be connected to Git as I played around with using Git for a while. I have now switched of git via tools/options/source control/ plug in section set back to None.    However I cannot be sure.  How can I determine what is causing Visual Studio to stop responding ?

regards
Pat
0
Hi Experts,

Currently trying to work out how to open a report in report builder edit mode, this was previously available in pre-2016 but I'm aware MS have removed the clickonce ability. I did have this working in a C# Winform pre 2016 (is commented out in my code below).

Looking at these two topics:

StackOverflow Link

MSDN Forums link

I can see it's possible, and have been able to actually open the report builder application, but it doesn't open the specific report I've clicked on

Here's the users code:

"reportbuilder:Action=Edit&ItemPath=Project/Reports/Realization&Endpoint=http//101.11.11.111/ReportServer"

Open in new window


and here's mine (edited for obvious reasons):  txturl value =
http://xxx/Reports/report/report_folder_here/report_here
for reference

string url = txtURL.Text;

            //var rdl = url.Substring(url.LastIndexOf("ItemPath=/") + 10); //pre 2016 SSRS
            var rdl = url.Substring(url.LastIndexOf("http:/") + 26); //post 2016 SSRS

            try
            {
                //pre 2016 SSRS
                //WebBrowser wb = new WebBrowser();
                

Open in new window

0
My Visual Studio 2015 VB.NET Website project is compiling at 8 minutes. It should be a lot faster. It also compiles everything rather than just the changed items.

Prior to VS2015, it worked fine. After updating, it started doing this.

I will be moving to VS2019, but want to get this figured out.

This is a VB.NET Website (not web application). We are using VB 12 now.

How do I get on the latest VB.NET compiler and put it on here?
How do I get it to compile only the changes, not everything?

Thanks!
0
Greetings:

A repeatable error occurs under the Tools dropdown menu after selecting Options ... of Visual Studio Pro 2019. The Options tree is:
Visual Studio Pro 2019 Otions TreeAfter selecting Naming, Visual Studio ends and restarts.

There are 2 events in the Windows Application event log as follows:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentNullException
   at System.Windows.Automation.Peers.DataGridItemAutomationPeer..ctor(System.Object, System.Windows.Automation.Peers.DataGridAutomationPeer)
   at System.Windows.Automation.Peers.DataGridAutomationPeer.CreateItemAutomationPeer(System.Object)
   at System.Windows.Automation.Peers.ItemsControlAutomationPeer.GetChildrenCore()
   at System.Windows.Automation.Peers.DataGridAutomationPeer.GetChildrenCore()
   at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
   at System.Windows.Automation.Peers.AutomationPeer.GetChildren()
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at 

Open in new window

0
From C++ how can I capture and iterate through the output results of an Oracle PL/SQL stored procedure that returns data as "TABLE of NUMBER(7)", or "TABLE of VARCHAR2(100)" etc?  I haven't found a clear example or documentation that details the accessing data returned as tables.
   I'm using the MS VC9++ (VS2008 SP1) with the Oracle 11.2 32-bit Instant Client. At this point I need to stay at these versions to not risk breaking the compilation of a much larger project with a lot of legacy hardware and drivers.  I've tried many variations that don't compile, or give runtime errors. Running OTT has prove problematic as the TYPE definitions only exist when the procedure is run.
   I'm currently using the OCCI interface but am open to using C++ .net if it will coexist with the current C++ code.

PL/SQL package definition

create or replace PACKAGE          "CARRIERPKG" AS
    TYPE tcarrier_site     is TABLE of NUMBER(7)      INDEX BY BINARY_INTEGER;
    TYPE tpart_serial      is TABLE of VARCHAR2(100)  INDEX BY BINARY_INTEGER;
    TYPE tpart_rtn_msg     is TABLE of VARCHAR(200)   INDEX BY BINARY_INTEGER;
   
 
      PROCEDURE get_parts_v12
      (p_carrier_serial	  IN  phase2.carrier_site.carrier_serial_num%TYPE,
       p_part_num         IN  phase2.part_info.PART_NUM%TYPE,
       p_carrier_type     IN  phase2.carrier_type.id%TYPE,
       carrier_site       OUT NOCOPY tcarrier_site,
       part_serial        OUT NOCOPY tpart_serial,
       rtn_msg            OUT 

Open in new window

0
Hi all.

I've been getting the following error message in Visual Studio 2013 when trying to Build my solution. Sometimes it happens every other time I try to build, sometimes it's everytime I build my solution and sometimes it doesn't happen at all in one day. If I close Visual Studio and reopen it, the same error appears when trying to build. The only way to get it to build after I get that error message is to log off from my computer and log on again. Any idea what I can do to fix this?

I'm running a Windows 7 machine.

Error Message:

Error      1      Unable to create a manifest resource name for "XRef.resx". The process cannot access the file '\\myserver\home$\myUsername\MyDocuments\Visual Studio 2013\Projects\myApp\myApp\XRef.vb' because it is being used by another process.      myApp
0
Hi all,

I have created Visual Basic code to write errors and information to the Windows Event log. That works fine but I am looking for code to add attributes to the event like the event property User.

Anyone any suggestions? This is my current code:

    Sub log_event(ByRef sEvent As String, ByRef LogItem As Long)

        Dim myLog As New EventLog

        Dim sSource As String
        Dim sLog As String
        Dim sMachine As String

        sSource = "Werkvergunning"
        sLog = "Application"
        sMachine = Environment.MachineName.ToString

        If Not EventLog.SourceExists(sSource) Then

            EventLog.CreateEventSource(sSource, sLog)

        End If

        With myLog

            .Source = sSource
            .Log = sLog
            .EnableRaisingEvents = True

            Select Case LogItem

                Case 1
                    .WriteEntry(sEvent, EventLogEntryType.Error)

                Case 2
                    .WriteEntry(sEvent, EventLogEntryType.Information)

                Case 3
                    .WriteEntry(sEvent, EventLogEntryType.Warning)

            End Select

        End With

    End Sub

Open in new window

0
How do I make FireFox my default browser in Visual Studio Code? All of the links I've found are either too complicated/involved or the setting through the settings menu option doesn't exist or I can't find it. I'm including a pic of the version information for the version that I'm using. Thanks.Visual Studio Code version info.
0
Hello everyone !

I am new on this forum.
In fact, I have a big project which consists of developping a spectrum analyzer on a plateform called Adalm Pluto (Developed by Analog Devices).   In order to detect the Pluto device and communicate with it, we use a library called Libiio and we build it with visual studio (I have no problem on this side).

Now the problem is that I need to implement a FFT to the signal recieved by the Pluto device, and then plot the results within an interface.
I have tried to use the ILNumerics library which is a very performant library to do these stuff (I have already all the code done), but when I try to execute it, it dosen't work because apparently, the trial version of ILNumerics is not sufficient.
Can anyone please help me out on this ? Does anyone have an idea about this ILNumerics library and how to possibly get it for free ?
Or can anyone share an example code that does something similar to what I am trying to do ?

Thank you so much in advance.

PS: Iam using Visual Studio 2017 on windows 10. (with C# language)

Regards,
Ayoub
1
My name is Chris Scott  and I need help on an issue we are having with a project developed in Visual Studio 2017. The software resides on a  Windows 2012 R@ Server connecting to SQL 2012 Server. The software has been running fine, but for the last 2 months we have been experiencing Session Freezing and lockup requiring a reboot for other users to be able to use the software. We are rebooting once a day and the only messages we are getting is App Crash. A generic error. Wayne who is the developer can add technical detail.
0
Hi All,

I have a VS project.
I want to show mdichild form below mdi menu. the child form is maximized.
I don't want to show header child form at the top of the mdi form.

How could I do it?

Thank you.
0
I need to change the cursor color, in Visual Studio code, to white. Does anyone know how to do that?
0
hi ,
 gota windows 10 pro computer
in event logs -getting event id 219 error and it restarts the computer automatically as well

i checked my device manager. there is one driver with yellow mark, (sensors- microsoft visual studio location simulator sensor)
but when i try to update, it says it already has the best driver.

how do i figure out, whats causing the computer to get this error and why its restarting . and it happens atleast twice a week or more often than that.
kernel.PNG
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.