Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

Microsoft Visual Studio

339

Solutions

425

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

i was messing with "Analyze"... and i think somehow i have turned on analyze on build...
ctrl-shift-B used to take 4-5 seconds... .now it is  many many minutes.....
F5 also.. seconds till the program starts up.. now... many many
there is a note in the error list window that says "FxCopCmd" and its child processes are bing terminated in order to cancel the build.   when i hit cancel under the build menu.  (i hit the cancel because all the other items are grayed out)

the first option under the build menu is "Run Code Analysis on solution   Alt-F11

Options | Text Editor | Basic | Advanced | Enable full solution analysis  is UN-checked.

i have rebooted

it only seems to happen if i change something in the code....



help!!!!
0
Veeam Task Manager for Hyper-V
LVL 1
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Hello,
How can I find listview item or datagridview item under the mouse click .
Regards
0
We are currently running VS Team Explorer 2017 (Version 15.2) in a Citrix environment.  This is running on 2012r2.  We have multiple users that run the system and a few are seeing issues with the application crashing within about 30 seconds after starting up.  It does not appear to be the application directly, but maybe something related to it.  The application actually starts, and if you click fast enough you can actually do things, but after about 30 seconds or so, we get a crash and it closes.

This does not effect all users, just a few.  We have tried resetting their Visual studio parts in the Registry, and Appdata folders, as well as even taking it as far as resetting their profile.  

In the logs I get a .NET crash, and then the Application Error.

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
   at System.Security.AccessControl.CommonAcl.ThrowIfNotCanonical()
   at System.Security.AccessControl.CommonAcl.AddQualifiedAce(System.Security.Principal.SecurityIdentifier, System.Security.AccessControl.AceQualifier, Int32, System.Security.AccessControl.AceFlags, System.Security.AccessControl.ObjectAceFlags, System.Guid, System.Guid)
   at System.Security.AccessControl.DiscretionaryAcl.AddAccess(System.Security.AccessControl.AccessControlType, System.Security.Principal.SecurityIdentifier, Int32, …
0
Greetings:

I have several Windows 10 Pro workstations using a workgroup (instead of a domain).

The permissions for IIS and the file system on the workstation running IIS for the inetpub directory are as follows:
Administration - full access
Specific user ids - full access

All Visual Studio users run Visual Studio with administrator privileges.

All Visual Studio solutions and projects are stored on the same workstation running IIS.

The firewall (G Data Total Security) contains rules for all IPs on the workgroup and all ports which may be used for websites. The direction is inbound and outbound.

A user on the workgroup (not where IIS is running) starts Visual Studio Pro 2016 and opens a solution containing class libraries and 1 or more web projects.  This user is unable to load the web project(s) and receives the following error message:

Error opening web http://tracy.local:8006. Unable to open the Web site 'http://tracy.local:8006'. The Web server 'http://tracy.local:8006' could not be found.

tracy.local is where IIS runs.

However, this user is able to open a web browser and enter http://tracy.local:8006/ to see the website on the IIS server.

What am I missing here?


Much thanks in advance for any suggestions and advice,
David Bach
0
I have a large report developed in Visual Studio 2015.  I am using SSRS 2016.  I can run the report in VS 2015 This is the exact msg when deploying to SharePointbut when I try to deploy to Sharepoint 2013 I get the following error msg:

Native compiler return value: '[BC30494] Line is too long.'
0
I try to compile a code that was successfully compile on Linux system.  This code hast the usage of std::unique_ptr but Visual Studio nags arround the common C++ usage. The code looks like

    std::unique_ptr<bxf2::bxf> document = nullptr;
    ofstream cerr("output.txt");
    
    try
    {
        xml_schema::properties props;
        document = move(bxf2::bxf_(bxf_file, 0, props));  (Line 29)
    }

Open in new window


THe error message is:

1>XSDValidator.cxx(29): error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::auto_ptr<_Ty>' (or there is no acceptable conversion)
1>          with
1>          [
1>              _Ty=bxf2::bxf
1>          ]
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(2420): could be 'std::unique_ptr<_Ty> &std::unique_ptr<_Ty>::operator =(std::unique_ptr<_Ty> &&)'
1>          with
1>          [
1>              _Ty=bxf2::bxf []
1>          ]
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(2449): or       'std::unique_ptr<_Ty> &std::unique_ptr<_Ty>::operator =(std::nullptr_t)'
1>          with
1>          [
1>              _Ty=bxf2::bxf []
1>          ]
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(2520): or       'std::unique_ptr<_Ty> &std::unique_ptr<_Ty>::operator =(const std::unique_ptr<_Ty> &)'
1>          with
1>          [
1>              _Ty=bxf2::bxf []
1>          ]
1>          while trying to match the argument list '(std::unique_ptr<_Ty>, std::auto_ptr<_Ty>)'
1>          with
1>          [
1>              _Ty=bxf2::bxf []
1>          ]
1>          and
1>          [
1>              _Ty=bxf2::bxf
1>          ]

Open in new window


What I have done wrong in Visual Studio? IS Visual Studio the wrong version to use?
0
Hello,
How can i convert this functon compatible to listview
 Private Sub ListBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseDown
        If e.Button = MouseButtons.Left Then
            Dim pt As New Point(e.X, e.Y)
            startIndex = ListBox1.IndexFromPoint(pt)

            If startIndex >= 0 Then
                Dim itemRc As Rectangle = ListBox1.GetItemRectangle(startIndex)
                startPoint = ListBox1.PointToScreen(New Point(ListBox1.Width, itemRc.Top + (itemRc.Bottom - itemRc.Top) / 2))
                endPoint = startPoint
                lastIndex = -1
                ListBox1.DoDragDrop(ListBox1.Items(startIndex).ToString(), DragDropEffects.Move)
            End If
        End If
    End Sub

Open in new window



  Private Sub ListBox2_DragOver(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles ListBox2.DragOver
        Dim lbPoint As Point = ListBox2.PointToClient(New Point(e.X, e.Y))
        Dim index As Integer = ListBox2.IndexFromPoint(lbPoint)
        If index >= 0 Then
            ListBox2.SelectedIndex = index
            Dim itemRc As Rectangle = ListBox2.GetItemRectangle(index)
            Dim key As String
            If lastIndex <> index Then
                If lastIndex <> -1 Then
                    key = startIndex & "|" & lastIndex
                    If Not connections.ContainsKey(key) Then
                        ControlPaint.DrawReversibleLine(startPoint, endPoint, Panel1.BackColor)
                    End If
                End If
                key = startIndex & "|" & index
                If Not connections.ContainsKey(key) Then
                    endPoint = ListBox2.PointToScreen(New Point(0, itemRc.Top + (itemRc.Bottom - itemRc.Top) / 2))
                    ControlPaint.DrawReversibleLine(startPoint, endPoint, Panel1.BackColor)
                End If
                lastIndex = index
            End If
        End If
    End Sub

Open in new window


  Private Sub ListBox2_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles ListBox2.DragDrop
        Try

            Dim endIndex As Integer = ListBox2.IndexFromPoint(ListBox2.PointToClient(New Point(e.X, e.Y)))
            If endIndex >= 0 Then
                connections.Add(startIndex & "|" & endIndex, Nothing)
            End If
            Panel1.Refresh()
        Catch ex As Exception
            Exit Sub
        Finally
            Panel1.Refresh()
        End Try

    End Sub

Open in new window


ListBox2.GetItemRectangle(index)
GetitemRectangle,IndexFromPoint is not a part of listview
0
Hello,
Need some advice on how to create a program that can draw data model?
This works but,need to use datagridview
https://www.experts-exchange.com/questions/21540913/Need-some-advice-on-how-to-create-a-program-that-can-draw-data-model.html


Any suggestions are appreciated.

Cheers
0
Hi all, after select data from a combobx and save
i want to make it readonly as a textbox,
i only find the option enabled=false for achive that but the text is so blur
how to made a combobox read only
regards!
0
sap Crystal server 2016, how to run and check, how to connect to Oracle, how to call the reports which is published in crs server using visual studio
0
Get your Conversational Ransomware Defense e‑book
LVL 1
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Let me start by saying I'm a beginner.  I'm teaching myself Entity Framework and working in Visual Studio 2017 Community Edition.  

My question is in regards to Migrations.  

If I try to create a Migration based on a Database First Model I get the following error:

Creating a DbModelBuilder or writing the EDMX from a DbContext created using Database First or Model First is not supported. EDMX can only be obtained from a Code First DbContext created without using an existing DbCompiledModel.

Pretty self-explanatory I believe but I want to be 100% sure.  

Are Migrations strictly used in a Code First approach?
0
Hello Team,

We are working on a Xamarin IOS project of location tracking . We are using Visual Studio 2017 enterprise version and connecting to MAC remotely. We are not able to customize the location on IOS simulator on windows machine which is connected to MAC remotely. Please advice how to customize the location on windows machine or is there any other alternative to test it on IOS simulator on  windows machine .
0
I have an ASP.Net 2.0 application with form based authentication and authorization. I have been requested by my Manager to migrate to a SSO (Single Sign On) authentication using SAML 2.0 and ADFS 3.0.

Also I am not allowed to use any 3rd party or open source application like OneLogin, SecureLogin etc.

As I am new to SAML, ADFS I would like to know how to setup my Visual Studio 2012 for SAML 2.0 and connect with ADFS 3.0 to authenticate the user. Any starting point will be very helpful, also if there are any resource to reference and execute the SAML compliance and SSO implementation will be very helpful.


Thank you.
0
Hi,
I am currently using Infopath 2013 which is connected into a SQL server Db, My Infopath Form has three fields:

Start_Time - DateTime
Stop_Time - DateTime
Duration - Integer

I am having trouble referencing these fields in visual studio using VB as it doesn't seem to recognise these as actual fields within the Infopath Form as the Duration field just stays blank with no errors?

Basically i'm looking to do this as an After Change event set on Stop_Time:

Duration = DateDiff("s", Start_Time, Stop_Time)

Open in new window


Very very basic VB knowledge here so any help you can give me will be much appreciated.
0
i can't able to access and install  crystal report in visual studio 2017 community edition in OS 10
0
Hi, any help please with this problem.
I used this code
Dim chos2 As String
        chos2 = Val(TextBox2.Text) & ".jpg"
        PictureBox3.ImageLocation = "file://192.168.6.252/pasa/esdcheck/res_pic/" & chos2

Open in new window

But when I remove credential to that computer the image does not appear, I need a code to programatically enter the "user" and "password"
Like SQL, This code works:
conn.ConnectionString = "server=192.168.6.252;userid=user;password=123!@#;database=msd"

Open in new window

But how to do that with the computer users and password?

If I enable/check the remember my credential, the user of the program can also access the shared folders of the computer w/ PI 192.168.6.252, or the server let's say,. I want to restrict that, Please any help.

Thanks
0
NestingLayout.png
Here is my layout i need this in visual studio c# or c++ please help me to soft this problem. here i requested to give me idea to process layout like this,

thanks in advance
0
I have a text file with data that I want to output to a report.  I was thinking of using ReportViewer, but I can't find it in my Visual Studio and I'm thinking ReportViewer is overkill for what I'm looking to do.  I plan on creating the columns by just placing them on the report and padding with spaces (see image below).  For example, I decided on 20 characters for the Expiration Date, so if the date is 10 characters in length, then I will insert 10 spaces after the date.

I have a comment field that comes after each entry so I think that will cancel out the use of a grid.  I thought about putting a multiline textbox on a form, but the report could run 3 or 4 pages long and I want to be able to print it.  What would be the easiest way to output my data to a report?
Report Document
0
Hi All,
    I have a weird problem that I am running into when uploading xml files to sharepoint.  I am currently able to get the read the xml file using visual studio and have it upload correctly but now the dates are coming uploading one day before for each document.  I seen that there is a problem with the date being upload as UTC instead of local time which would be causing this problem as I am in PST.  Here is what I am currently doing in order to upload the document but I just need some help on the date field.  

    using (ClientContext context = Helper.ClaimsContext(_wfConfig.SiteUrl)) // destination site
                {
                    List library = context.Web.Lists.GetByTitle(_wfConfig.Listname);

                    ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation();
                    ListItem listItem = library.AddItem(itemCreateInfo);

                    listItem["Title"] = root.SelectSingleNode("Number").InnerText.Trim();
                    listItem["Due_x0020_Date"] = root.SelectSingleNode("DueDate").InnerText.Trim();
0
Efficient way to get backups off site to Azure
LVL 1
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

I'm new to TFS. I have been using it for version control.  I wanted to take advantage of the bug/feature tracking, but it seems I can only create anew bug or feature for the entire "Repository Area"?


For example, I have repository $/Test   and under $/Test i have $/Test/MainProject   and $/Test/projectXYZ and $/Test/ProjectABC

All projects are part of the same main application, that is, projectXYZ is a class module for MainProject.

If I go to create a new bug task in TFS, it only allows me to select "$/Test" area.  I can't seem to find a way to tie the bug to a specific sub-folder in the repository, that is, a specific area of code?

Am I doing something completely wrong here?

(ps) I am not using Git for my repository, but TFS itself.
0
Hi.  Do you know how I can translate the .vbs to vb.net for SSIS 2008?   There’s a lot of logic in the .vbs files so I am concerned about not translating it right.   Please provide specific examples of a .vbs and the end result SSIS .dtsx package so I can follow, not just guidelines.

I am using:
-  Visual Studio 2008
- SQL SERVER 2008R2
0
I use both Visual Studio 2013 and Visual Studio 2015.

I have a ASP.NET MVC web application.

I have a C# file open.

I noticed that when I select my C# code from Visual Studio 2013 and paste it in Microsoft Word.
The code that gets pasted into my Word document is in color.

But then, I noticed that when I select my C# code from Visual Studio 2015 and paste it in Microsoft Word.
The code that gets pasted into my Word document is in not in color. It's black.

Anyone know the reason why the C# code i copy from Visual Studio 2015 to Word is black?
It works fine on Visual 2013.
How do I fix Visual Studio 2015 so my C# code is in color like the way it is in Visual Studio 2013?
0
I am building an MVC project in VS2017. I am finding that I cannot add an rdlc report. If I add an existing rdlc from a prior project, it opens up in XML instead of the report designer. I have installed ReportViewer to the project and installed the SQL Reporting tools so I can create a Report Server project and the report designer works. Any guidance would be extremely helpful.

Thanks.
0
PS: This issue is only happening when i see result in swagger ui , i visual studio it looks fine.

I am trying to replace the string which i have

\\/Date(1430370000000+0530)\\/
to

\/Date(1430370000000+0530)\/
Code:

 string str = "\\/Date(1430370000000+0530)\\/";
 str = str.Replace(@"\","\\");          
 Console.WriteLine(str);
See here the code running environment, click here

Output i am getting above is this :

\/Date(1430370000000+0530)\/
But while we pass the value in JSON property.

The value automatically converts to below value

/Date(1430370000000+0530)\\/
But I am expecting the same value which I got earlier

\/Date(1430370000000+0530)\/
0
I'm having trouble with the DataReport regarding the Paper width, the error was "Report Width is Larger than the Paper Width"
the detail that I'm working with does not fit in a 8.5x11 in, i like to change it into a 8.5x13in landscape... what should i do?
0

Microsoft Visual Studio

339

Solutions

425

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.