Quantcast
Channel: Visual Studio General Questions forum
Viewing all 21115 articles
Browse latest View live

How to change remote build machine in Visual Studio?

$
0
0

Hello,

I am developing a cross-platform project to run in a Linux environment. The machine I was connecting to before is down and so I need to change which machine I connect to in Visual Studio. I can't seem to find a way to edit this option though. How do I go about doing it?


Visual Studio cannot build because dotnet.exe is locking files

$
0
0

After I run my solution, especially when debugging it, then stop the execution, several DLLs get locked by the dotnet.exe process, causing subsequent build to fail (because solution cannot be cleaned).

Also, locked DLLs cannot be deleted manually, and dotnet.exe process cannot be killed (access denied error even with admin rights). This condition persist even after a log off. Restarting the machine solves the issue only temporarily.

Extra info: I'm using Windows 7 Professional 64-bit, Visual Studio Enterprise 2017, .NetCore 2.1.

--------------

Microsoft Visual Studio Enterprise 2017 
Version 15.7.5
VisualStudio.15.Release/15.7.5+27703.2042
Microsoft .NET Framework
Version 4.7.02558

Installed Version: Enterprise

ASP.NET and Web Tools 2017   15.0.40625.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services   15.7.31476
Provides languages services for ASP.NET Core Razor.

ASP.NET Web Frameworks and Tools 2017   5.2.60618.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.0.40608.0
Azure App Service Tools v3.0.0

C# Tools   2.8.3-beta6-63029-08. Commit Hash: e9a3a6c0ba5b1fde8b1fff964bdfb3fb768ee2eb
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GhostDoc   5.9.18070.0
Generate XML Comments from your code, maintain clean and up-to-date documentation, produce help documentation in multiple formats, use intelligent source code Spell Checker in Visual Studio.

GitHub.VisualStudio   2.5.4.3349
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JavaScript Language Service   2.0
JavaScript Language Service

JetBrains ReSharper Ultimate 2017.2.2    Build 109.0.20171006.122324
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2018 JetBrains, Inc.

Markdown Editor   1.12.233
A full featured Markdown editor with live preview and syntax highlighting. Supports GitHub flavored Markdown.

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.10420.2

Microsoft Continuous Delivery Tools for Visual Studio   0.3
Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio Tools for Containers   1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

NuGet Package Manager   4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

ResourcePackage Extension   1.0
ResourcePackage Visual Studio Extension Detailed Info

SQL Server Data Tools   15.1.61804.210
Microsoft SQL Server Data Tools

TypeScript Tools   15.7.20419.2003
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   2.8.3-beta6-63029-08. Commit Hash: e9a3a6c0ba5b1fde8b1fff964bdfb3fb768ee2eb
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

VStudio unable to connect to SCO Web service

$
0
0

Hi,

Our developer needs to connect to System center orchestrator webservice to trigger a runbook. We have given access to the service account he is using and he is able to connect using browser.

But when he tries to add a service reference using visual studio password is prompted again and again he gets error below;

Metadata containes a reference that cannot be resolved:
<<webservice url>>
The HTTP request is unauthorized with client authentication scheme 'anonymous'. the authentication header received from the server was 'NTLM , Negotiate'
The remote server returned an error :(401) Unauthorized
If the service is defined in the current solution, try building the solution and adding the service reference again

Appreciate any help in this.

Thanks, Kishor

Why is CWinAppEx::OnFileNew called automatically?

$
0
0

I am developing a Visual C++ single document MFC program.

And I just override the default CWinAppEx::OnFileNew method by

void CmyappApp::OnFileNew()
{
   CWinAppEx::OnFileNew();
   MessageBox(NULL, _T("hello.\n"), _T("Error"), MB_OKCANCEL);
}

Then I find that the method above is called automatically upon executing the program, because I see the Message box immediately after the program window shows up.

Looks the file->new operation is triggered automatically after starting the program.

And if I remove the "CWinAppEx::OnFileNew();" from the override method, the program exits right after started.

Why does this happen? thanks!

Can't deploy to remote machine - no prompt for IP address, "failed to connect to device '0.0.0.0'

$
0
0

I'm trying to deploy to an Xbox One. I've followed all the instructions, PC and Xbox are on dev mode, both connected to ethernet, I'm able to deploy my solution to the local machine and it works perfectly.

However all the tutorials I've read imply I should be seeing some kind of prompt when I first try to deploy to a remote machine, where I can put the Xbox's IP address. I've seen no such prompt and I can't find the option anywhere. In fact when I look around, I find instructions depicting a menu I can't even find! (There's no 'Properties' icon in my solution explorer and I can't find any other way in to the properties menu with a 'Debug' tab that allows me to set the address.)

VS 2017 - UWP - The XAML Designer has exited unexpectedly.

$
0
0

A new UWP project started and opened in

Version 15.7.6 and 15.8.0 Preview 5.0. 

Cannot see Xaml Designer. In both cases getting the error "The XAML Designer has exited unexpectedly."

I tried all forum answers within the last year or so for this same issue and none of those are helping. This is blocking development. Any help to troubleshoot would be appreciated. 

MSBUILD cordova-error - Could not resolve com.google.gms:google-services

$
0
0

I am using Visual Studio 2017 Community and am new to developing Android apps. When I add in the cordova-plugin-FCM plugin, and try to build my project, I receive the following errors: 

1>MSBUILD : cordova-build error : Build file 'C:\Users\Documents\Visual Studio 2017\Projects\TestPush2\TestPush2\platforms\android\build.gradle' line: 92
1>MSBUILD : cordova-build error : * What went wrong:
1>MSBUILD : cordova-build error : A problem occurred evaluating root project 'android'.
1>MSBUILD : cordova-build error : > Could not resolve all dependencies for configuration 'classpath'.
1>MSBUILD : cordova-build error :  > Could not resolve com.google.gms:google-services:3.1.0.

Any ideas or point me in the right direction, would be much appreciated?

thanks

Mac split window/buffer hot keys?

$
0
0

This happens to me periodically and I can not track down what hotkeys are doing it.  It's totally random and unwanted.

(I've tried looking and trying what I've found, but it doesn't work. One possibility was Option-\ but that didn't seem to do anything.)

Does anybody know what the hotkey and name of this command is?  Also, what are the keys to switch windows when it is split and what command un-splits the window.  Thanks!


Windows Form, SerialPort Problem

$
0
0

I started using the serialport for windows form. The problem is that I can't detect any data if I saved it like: 

public char[] vetor= new vector[12];

Then in program I saved data in the vector, like:

vector[0]= '0';

Then I convert all the vector to a string for serialport: 

serialport1.writeline(convert.toString(vector));

But I't doesn't work.

I used a string like: 

public string[] vector= "jsanhdfda";

I send it and it work...

So, how can I make the char vector work like a String...

Where's the VS 2017 Timer?

$
0
0

I do not have a timer in my toolbox.

There's a timer picker - that doesn't seem to fit my needs.

Am I missing other tools?

Tac


tac

Is it "Commercial" or "Non-Commercial" the use of self developed application in a big company

$
0
0

Hello everybody,

I have a question that's boggling me and couldn't find an answer that could match my question on my searches.

I want to make an application at home that I could install at work and use it there and maybe, in the future, also share it with my colleagues.

I am a mechanical engineer and want to program this application in Visual Studio that will help me manage the projects on which I work, the different tasks from these projects and organize myself and maybe some of my colleagues regarding project work. Also make reports on tasks done, for me and maybe also for my boss.

The application will be developed entirely by me as an hobby. I will not sell nor gain direct financial benefit for it from the company, BUT it COULD BE ARGUED that it brings me financial benefits by making my work easier at the company.

I think it is important to note that the company at which I work and, respectively, where I will use and maybe share this application MIGHT earn more than $1 million per year and has way more than a couple hundred employees.

Thank you in advance for your help.

Best regards,

Bogdan

Organize elements in WFA

$
0
0

Hi all,

TL;DR: What is a way to organize my elements and code for those elements in a windows form app?

I'm fairly new to visual studios and I've fallen into the 'The project started small but is rapidly expanding and I don't know how to structure everything' pitfall. I am creating a small game, but decided a couple of hours ago I want to add different 'pages' to the game (Welcome screen, enter amount of teams and team details, play screen, score screen) and I feel like hiding all elements that are not part of the current screen (Welcome screen is just one giant button which means that all other elements should be hidden) is a bit tedious to do for every single stage, especially because having one giant button element 'hides' (lays on top of) all other elements, making it very hard to change position and properties. I know that 'send to back' is an option, but that would be incredibly insufficient seeing as I have currently about 30 elements and plan on adding many more. 

So what I really need is a way to have different tabs of seperated elements (welcome tab, play tab) which I can call from other tabs (button on welcome tab opens/starts the 'pick teams' tab). The TabControl item in the toolbox is not too useful as this shows the user the different tabs, which is not what I want. 

I'm sorry if I'm missing something very obvious, please redirect me if I do!

Cheers! Tjeerd.

How to fix error VS30063

$
0
0

The following error appears in the Output window when I load my project:

We were unable to automatically populate your Visual Studio Team Services account.

The following error was encountered:  VS30063:  You are not authorized to access: https://app.vssps.visualstudio.com.

How to:

    • Remove reference <-- preferred

  • Get authorization


Unable to create Python background application project in Visual Studio 2017 Professional

$
0
0

Greetings,

I was trying to creating a Python Python background application project in Visual Studio 2017 Professional and got an error 

Value cannot be null. Parameter name: path1. PFA screen shots.

PFB screen shot for python versions installed on machine

PFB screen shot for Python menu items to create a project.


Kaleem.

scaling issues with windows 10 and multiple monitors

$
0
0

Just got a new development laptop that has a 4k screen. I have 2 desk monitors that are 1920 x 1080.
Now, visual studio does not scale well in any of them.

e.g. the below screenshot shows the package progress screen. Its unreadable.
Similar issues on the connections screen and many other screens.

Is there a fix for this other than buying two expensive external monitors, or going back to my old lower resolution laptop?


Why doesn't Ctrl-Mouse Wheel resize the view in the XAML designer?

$
0
0

Hello,

If I have my cursor in a text editor, whether the C# text editor or the text panel of a .xaml window, then Ctrl-Mouse wheel resizes the text. This used to work for the visual side of the XAML designer as well, meaning that I could easily resize the view of the designer.

For some reason, this has stopped working, and I have to use the small and fiddly combobox in the bottom-left corner of the XAML designer window. This is especially annoying as VS automatically sizes a XAML design view to fill the space, rather than showing it at 100% which is what I prefer.

In Tools -> Options -> XAML Designer I have "Ctrl + mouse wheel" set for "Zoom by using"

Anyone any idea how to get Ctrl-Mouse wheel to resize the designer like it used to?

Thanks

P.S. Just discovered that there are keyboard shortcuts for this, which work fine. However, I'd still like to have the mouse working again as I'm used to doing it that way.

SQL schema compare not working

$
0
0

Hi,

I am trying to make a SQL schema comparisson but it does not work with remote databases, only with local network.

  • I select "Database" option
  • Click on "Select connectión"
  • Click on "Browse" and insert servername,35267 (which is intentionally different than 1433)
  • Click on database list and select the database (I can see databases, login is accepted)
  • Click on "Connect"
  • Takes me back to the "Select target schema" but no information is displayed, nor the "Ok" button is enabled and no error message is shown.

is this is a normal behaviour?

 




G.Waters



MSBUILD 15.7.180.61344 appears not to correctly honour /maxcpucount on hyperthreaded system / Winodws 10

$
0
0

I recently upgraded my Visual Studio 15.7.6 installation to a new Windows 10 Enterprise system from running on an older Windows7 system.

Since then I've been getting a varying number of

error CS2012: Cannot open 'TARGET_FILE' for writing -- 'Access to the path 'TARGET_FILE' is denied.' (where TARGET_FILE corresponds to a seemingly random target in our build that scans 100's of targets).

If I run the same build twice in succession, the number and actual targets reported will vary.

Looking in task manager and resource manager, I can see that whilst the number of MSBUILD processes launched is constrained by /maxcpucount paramenter, the actual amount of cpu they take up is approximately twice what I would expect. I have a 4-core system that's hyperthreaded to 8. I would therefore expect to see each MSBUILD process use no more than about 12-13% of the total cpu, but instead they use approx 24-25% each, suggesting they are taking up an entire core / 2 hyperthreads each for their 40-or-so threads.

Also, at the granularity of the data I've gathered, the MSBUILD processes are not constrained to individual hyperthreads, but bounce around all the hyperthreads on the system. It looks as if multiple threads of the same process end up on different hyperthreads.

This is what I suspect is leading to the file access violations, as individual threads get out of sync with each other.

HttpSendRequest sometimes very slow on Windows 2016 server, works fine on Windows 2008 server

$
0
0

I am working on a c++ program using visual studio 2013. My problem is that WinInet function HttpSendRequest sometimes (occasional) very slow on Windows 2016 server.  The same program has been working on Windows 2008 server many years without this issue.

Using callback function, I can see it takes long time (15 seconds) between connected to server(INTERNET_STATUS_CONNECTED_TO_SERVER)  and sending request (INTERNET_STATUS_SENDING_REQUEST).  I am not sure what HttpSendRequest is waiting for in that period. Need help please.

14:04:10 Calling HttpSendRequest

14:04:11 Detecting Proxy

14:04:11 Resolving Name

14:04:11 Name Resolved

14:04:11 Connecting to Server

14:04:11 Connected to Server

-- taking long time here - 15 seconds

14:04:26 Sending request

14:04:26 Request sent (597 Bytes)

......

14:04:26 Closing Connection

14:04:26 Connection Closed

14:04:26 Handle Closing

Visual Studio 2010 Hangs in debug mode - intermittently - Microsoft VIsual Studio is Busy

$
0
0

Over the last year, my version of Visual Studio 2010 (10.0.40219.1 SP1Rel) has started going through 'bouts' of hanging after you start up the program under development.  It does this in Safe Mode, it does it when all the breakpoints are cleared out, it does this after the projects have been cleaned and rebuilt.  The strange thing is that it will happen for a few days and then stop.  I might get a month without problems, and then the same problem starts to re-occur.  

The behaviour is the same: looping page faults where 4k to 32k will be added and then removed from the working set over and over again.  Sometime I/O Other will increment. There are no prompts or dialog boxes open.  It just hangs.  I cannot afford to upgrade at this time and in fact, do not want to spend thousands of dollars for the most recent IDE that will in all probability continue to hang.  Does anyone have any useful suggestions?  I have looked at a bunch of different solutions on the web including deleting the database, etc.  Nothing works.  My productivity is shot for several days until the product stabilizes again.  Is there any way to fix this problem?

Neil

Copy Info results:

Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.5.51209 SP1Rel

Installed Version: Ultimate

Microsoft Office Developer Tools   01019-532-2002102-70298
Microsoft Visual Basic 2010   01019-532-2002102-70298
Microsoft Visual C# 2010   01019-532-2002102-70298
Microsoft Visual C++ 2010   01019-532-2002102-70298
Microsoft Visual F# 2010   01019-532-2002102-70298
Microsoft Visual Studio 2010 Architecture and Modeling Tools   01019-532-2002102-70298
Microsoft Visual Studio 2010 Code Analysis Spell Checker   01019-532-2002102-70298
Microsoft Visual Studio 2010 Team Explorer   01019-532-2002102-70298
Microsoft Visual Studio 2010 Team Explorer
Microsoft Visual Web Developer 2010   01019-532-2002102-70298
AlignAssignments   1.0
AutoBraceComplete   1.0
CodeMaid   v0.8.1
Critical Update for Microsoft Visual Studio 2010 Ultimate - ENU (KB2938807)   KB2938807
Crystal Reports for .NET Framework   
Document Well 2010 Plus   1.0.10916.0
Go Offline   1.0
Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2529927)   KB2529927
Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2542054)   KB2542054
Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2548139)   KB2548139
Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2549864)   KB2549864
Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2635973)   KB2635973
Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2890573)   KB2890573
Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB3002340)   KB3002340
Microsoft Python Tools for Visual Studio   2.0.11016.00
Microsoft Python Tools for Visual Studio - Django Integration   2.0.11016.00
Microsoft Python Tools for Visual Studio - Profiling Support   2.0.11016.00
Microsoft Team Foundation Server 2010 Power Tools   10.0.41206.0
Microsoft Visual Studio 2010 SharePoint Developer Tools   10.0.40219
Microsoft Visual Studio 2010 Ultimate - ENU Service Pack 1 (KB983509)   KB983509
Microsoft Visual Studio Process Editor   1.0
Microsoft.VisualStudio.QuickAccess.Package   1.0
NuGet Package Manager   2.8.60318.667
OptionsPageImpl   1.0
PHP Tools for Visual Studio   1.26.10589.2010
QuickFind   1.0
Sandcastle Help File Builder   SHFB
Security Update for Microsoft Visual Studio 2010 Ultimate - ENU (KB2644980)   KB2644980
Security Update for Microsoft Visual Studio 2010 Ultimate - ENU (KB2645410)   KB2645410
SQL Server Compact & SQLite Toolbox   4.6.0
Visual Studio Spell Checker   VSSpellChecker
Windows Installer XML Toolset   3.10.3.3007

Neil M. Johnson

Viewing all 21115 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>