Visual Studio Exceeded execution timeout, attempting to auto cancel - visual-studio

I am not sure what is causing this but while editing files within Visual Studio, I am periodically locking up with the following dialog showing.
Pressing cancel does nothing, after waiting for sometime I have to end VS via Task Manager.
I can't figure out why this comes up nor how to prevent it.
This is my VS configuration...
Microsoft Visual Studio Community 2022 Version 17.3.0
VisualStudio.17.Release/17.3.0+32804.467 Microsoft .NET Framework
Version 4.8.04161
Installed Version: Community
Visual C++ 2022 00482-90000-00000-AA497 Microsoft Visual C++ 2022
ADL Tools Service Provider 1.0 This package contains services used
by Data Lake tools
ASA Service Provider 1.0
ASP.NET and Web Tools 17.3.375.53775 ASP.NET and Web Tools
Azure App Service Tools v3.0.0 17.3.375.53775 Azure App Service
Tools v3.0.0
Azure Data Lake Tools for Visual Studio 2.6.5000.0 Microsoft Azure
Data Lake Tools for Visual Studio
Azure Functions and Web Jobs Tools 17.3.375.53775 Azure Functions
and Web Jobs Tools
Azure Stream Analytics Tools for Visual Studio 2.6.5000.0 Microsoft
Azure Stream Analytics Tools for Visual Studio
C# Tools 4.3.0-3.22401.3+41ae77386c335929113f61d6f51f2663d2780443 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.
Extensibility Message Bus 1.2.6 (master#34d6af2) Provides common
messaging-based MEF services for loosely coupled Visual Studio
extension components communication and integration.
GitHub Copilot 1.43.0.1 (v1.43.0.1#cb116db27) GitHub Copilot is an
AI pair programmer that helps you write code faster and with less
work.
GitHub Copilot Agent 1.43.6621 (v1.43.0)
Microsoft Azure Hive Query Language Service 2.6.5000.0 Language
service for Hive query
Microsoft Azure Stream Analytics Language Service 2.6.5000.0
Language service for Azure Stream Analytics
Microsoft Azure Tools for Visual Studio 2.9 Support for Azure Cloud
Services projects
Microsoft JVM Debugger 1.0 Provides support for connecting the
Visual Studio debugger to JDWP compatible Java Virtual Machines
Mono Debugging for Visual Studio 17.3.20 (3f4cb00) Support for
debugging Mono processes with Visual Studio.
Node.js Tools 1.5.40629.1 Commit
Hash:3f5cc0329815af3ffb948f08857446d206a9af36 Adds support for
developing and debugging Node.js apps in Visual Studio
NuGet Package Manager 6.3.0 NuGet Package Manager in Visual Studio.
For more information about NuGet, visit https://docs.nuget.org/
Razor (ASP.NET Core)
17.0.0.2232702+e1d654e792aa2fe6646a6935bcca80ff0aff4387 Provides languages services for ASP.NET Core Razor.
SQL Server Data Tools 17.0.62207.04100 Microsoft SQL Server Data
Tools
ToolWindowHostedEditor 1.0 Hosting json editor into a tool window
TypeScript Tools 17.0.10701.2001 TypeScript Tools for Microsoft
Visual Studio
Visual Basic Tools
4.3.0-3.22401.3+41ae77386c335929113f61d6f51f2663d2780443 Visual Basic components used in the IDE. Depending on your project type and
settings, a different version of the compiler may be used.
Visual F# Tools
17.1.0-beta.22363.4+1b94f89d4d1f41f20f9be73c76f4b229d4e49078 Microsoft Visual F# Tools
Visual Studio Inline Suggestions 2.2.2055.12395 Ghost text API for
Visual Studio inline suggestions
Visual Studio IntelliCode 2.2 AI-assisted development for Visual
Studio.
VisualStudio.DeviceLog 1.0 Information about my package
VisualStudio.Mac 1.0 Mac Extension for Visual Studio
VSPackage Extension 1.0 VSPackage Visual Studio Extension Detailed
Info
Xamarin 17.3.0.295 (d17-3#321c85a) Visual Studio extension to enable
development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 17.3.0.208 (remotes/origin/d17-3#e4f67afef) Visual
Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin.Android SDK 13.0.0.0 (d17-3/030cd63) Xamarin.Android
Reference Assemblies and MSBuild support.
Mono: dffa5ab
Java.Interop: xamarin/java.interop/d17-3#7716ae53
SQLite: xamarin/sqlite/3.38.5#df4deab
Xamarin.Android Tools: xamarin/xamarin-android-tools/main#14076a6

Same here, 7 times yesterday morning.
Copilot extension is also installed in my VS2022.
I've disabled copilot globally and no more incidents for now.

Related

Debugging multi-stage build using docker-compose in VS2022

I recently update my application to .net 6 so I had to move to VS2022.
I've also converted all my dockerfiles in the projects to multi-stage build.
When trying to debug the application using the docker-compose I'm getting the exception:
enter image description here
Information on VS2022:
Microsoft Visual Studio Community 2022
Version 17.3.6
VisualStudio.17.Release/17.3.6+32929.385
Microsoft .NET Framework
Version 4.8.04161
Installed Version: Community
Visual C++ 2022 00482-90000-00000-AA743
Microsoft Visual C++ 2022
ASP.NET and Web Tools 17.3.376.3011
ASP.NET and Web Tools
Azure App Service Tools v3.0.0 17.3.376.3011
Azure App Service Tools v3.0.0
Azure Functions and Web Jobs Tools 17.3.376.3011
Azure Functions and Web Jobs Tools
C# Tools 4.3.0-3.22470.13+80a8ce8d5fdb9ceda4101e2acb8e8eb7be4ebcea
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.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
NuGet Package Manager 6.3.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
Razor (ASP.NET Core) 17.0.0.2232702+e1d654e792aa2fe6646a6935bcca80ff0aff4387
Provides languages services for ASP.NET Core Razor.
SQL Server Data Tools 17.0.62207.04100
Microsoft SQL Server Data Tools
Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.
Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.
TypeScript Tools 17.0.10701.2001
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 4.3.0-3.22470.13+80a8ce8d5fdb9ceda4101e2acb8e8eb7be4ebcea
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 17.1.0-beta.22363.4+1b94f89d4d1f41f20f9be73c76f4b229d4e49078
Microsoft Visual F# Tools
Visual Studio IntelliCode 2.2
AI-assisted development for Visual Studio.
Couldn't find any information about this exception

VS2017 restarts after closing - how to investigate/diagnose the reason?

I've a problem with my VS2017: after I close the Visual Studio, it reopens (restarts) again.
Then I must close this again - in most cases it is enough, but sometimes I must repeat the same 2...3 times to close it.
I found that:
if I close VS in short time (seconds or tens of seconds) after
starting, it closes properly.
if I close VS in longer time (minutes or more), but without opening project/solution (only start page), sometimes it closes at first try, sometimes not.
if I close VS with opened solution, it restarts near always :(
This strange behavior starts occuring afer installation of some additional tools, so this is probably caused by one of them.
Unfortunately, I've no idea how to investigate and diagnoze this - would you help?
UPDATE: tried to clear NuGet cache as described in post: Visual Studio 2017 – Enterprise restarts on .Net Core Projects
Didn't help :(
Some details:
Microsoft Visual Studio Professional 2017, version 15.9.17
VisualStudio.15.Release/15.9.17+28307.905
Microsoft .NET Framework version 4.8.03761
OS: Microsoft Windows 8.1 Pro
Installed products:
Visual C++ 2017 00370-10006-17768-AA719
Microsoft Visual C++ 2017
ADL Tools Service Provider 1.0
AnkhSVN - Subversion Support for Visual Studio 2.7.7039.21076
Ankh.Package 2.7.7039.21076
Subversion 1.9.5 via SharpSvn 1.9005.3940.224
Git/LibGit2 0.24.0 via SharpGit 0.2401.1116.230
ASP.NET and Web Tools 2017 15.9.04012.0
ASP.NET Core Razor Language Services 15.8.31590
ASP.NET Web Frameworks and Tools 2012 4.0.30625.0
ASP.NET Web Frameworks and Tools 2017 5.2.61435.0
Azure App Service Tools v3.0.0 15.9.03024.0
Azure Data Lake Node 1.0
Azure Data Lake Tools for Visual Studio 2.4.2000.0
Azure Stream Analytics Tools for Visual Studio 2.4.2000.0
Common Azure Tools 1.10
Dotfuscator Community Edition 5.36.0.7050-e77ce80a6
Fabric.DiagnosticEvents 1.0
GitHub.VisualStudio 2.10.8.8132
JavaScript Project System 2.0
JavaScript UWP Project System 2.0
Microsoft Visual C++ creators 1.0
NuGet package manager 4.6.0
Microsoft Azure HDInsight Azure Node 2.4.2000.0
Microsoft Azure Hive Query Language Service 2.4.2000.0
Microsoft Azure Service Fabric Tools for Visual Studio 2.5
Microsoft Azure Stream Analytics Language Service 2.4.2000.0
Microsoft Azure Stream Analytics Node 1.0
Microsoft Azure Tools 2.9
Microsoft Continuous Delivery Tools for Visual Studio 0.4
Microsoft JVM Debugger 1.0
Microsoft MI-Based Debugger 1.0
Microsoft Visual Studio Tools for Containers 1.1
MLGen Package Extension 1.0
C# tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
Visual Basic tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
Node.js Tools 1.4.30613.3
Application Insights Tools for Visual Studio 8.14.20131.1
VC for Microsoft Visual Studio 1.0
ProjectServicesPackage Extension 1.0
ResourcePackage extension 1.0
SQL Server Data Tools 15.1.61906.03120
Test Adapter for Boost.Test 1.0
Test Adapter for Google Test 1.0
ToolWindowHostedEditor 1.0
TypeScript Tools 15.9.30718.2001
Usługa Azure Functions i narzędzia Web Job 15.9.03024.0
Usługa języka JavaScript 2.0
Visual C++ for Linux Development 1.0.9.28307
Visual F# Tools 10.2 for F# 4.5 15.8.0.0.
Visual Studio Tools for CMake 1.0
Visual Studio Tools for Containers 1.0
Visual Studio Tools for Universal Windows Apps 15.0.28307.902

asp.net core 2.0 unable to delete PreCompiledViews.dll

I have an asp.net core 2.0 web application.
When I publish it to a web server (using a UNC path), the [AppName].PrecompiledViews.dll becomes locked and I'm unable to delete it (and therefore can't re-publish the app).
I've tried manually deleting the file(s) - everything deletes fine, except for this one dll... and I don't have permission to go and restart the IIS worker process to free the lock, so I'm at a loss as to what to do... waiting for the app to recycle is my current best plan.
Any suggestions are welcome.
(Using the following:)
Microsoft Visual Studio Community 2017 Version 15.4.2
VisualStudio.15.Release/15.4.2+27004.2006 Microsoft .NET Framework
Version 4.7.02046
Installed Version: Community
Visual Basic 2017 00369-60000-00001-AA538 Microsoft Visual Basic
2017
Visual C# 2017 00369-60000-00001-AA538 Microsoft Visual C# 2017
Visual F# 4.1 00369-60000-00001-AA538 Microsoft Visual F# 4.1
Application Insights Tools for Visual Studio Package 8.9.00809.2
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2017 15.0.30925.0 ASP.NET and Web Tools 2017
ASP.NET Core Razor Language Services 1.0 Provides languages services
for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2017 5.2.50921.0 For additional
information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.0.30915.0 Azure App Service Tools
v3.0.0
Azure Data Lake Node 1.0 This package contains the Data Lake
integration nodes for Server Explorer.
Azure Data Lake Tools for Visual Studio 2.2.9000.1 Microsoft Azure
Data Lake Tools for Visual Studio
Azure Data Lake Tools for Visual Studio 2.2.9000.1 Microsoft Azure
Data Lake Tools for Visual Studio
Common Azure Tools 1.10 Provides common services for use by Azure
Mobile Services and Microsoft Azure Tools.
Cookiecutter 3.0.17297.4 Provides tools for finding, instantiating
and customizing templates in cookiecutter format.
Fabric.DiagnosticEvents 1.0 Fabric Diagnostic Events
JavaScript Language Service 2.0 JavaScript Language Service
JavaScript Project System 2.0 JavaScript Project System
JavaScript UWP Project System 2.0 JavaScript UWP Project System
Merq 1.1.17-rc (cba4571) Command Bus, Event Stream and Async Manager
for Visual Studio extensions.
Microsoft Azure HDInsight Azure Node 2.2.9000.1 HDInsight Node under
Azure Node
Microsoft Azure Hive Query Language Service 2.2.9000.1 Language
service for Hive query
Microsoft Azure Service Fabric Tools for Visual Studio 1.8 Microsoft
Azure Service Fabric Tools for Visual Studio
Microsoft Azure Stream Analytics Language Service 2.2.9000.1
Language service for Azure Stream Analytics
Microsoft Azure Stream Analytics Node 1.0 Azure Stream Analytics
Node under Azure Node
Microsoft Azure Tools 2.9 Microsoft Azure Tools for Microsoft Visual
Studio 2017 - v2.9.50719.1
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 VC Package 1.0 Microsoft Visual Studio VC
Package
Mono Debugging for Visual Studio 4.7.4-pre (c2d89eb) Support for
debugging Mono processes with Visual Studio.
Node.js Tools 1.4.10918.1 Adds support for developing and debugging
Node.js apps in Visual Studio
NuGet Package Manager 4.4.0 NuGet Package Manager in Visual Studio.
For more information about NuGet, visit http://docs.nuget.org/.
Python 3.0.17297.4 Provides IntelliSense, projects, templates,
debugging, interactive windows, and other support for Python
developers.
Python - Django support 3.0.17297.4 Provides templates and
integration for the Django web framework.
Python - IronPython support 3.0.17297.4 Provides templates and
integration for IronPython-based projects.
Python - Profiling support 3.0.17297.4 Profiling support for Python
projects.
R Tools for Visual Studio 1.2.30905.1244 Provides project system, R
Interactive window, plotting, and more for the R programming language.
SQL Server Data Tools 15.1.61707.200 Microsoft SQL Server Data Tools
ToolWindowHostedEditor 1.0 Hosting json editor into a tool window
TypeScript 2.3.5.0 TypeScript tools for Visual Studio
Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for
hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for Universal Windows Apps 15.0.27004.2006 The
Visual Studio Tools for Universal Windows apps allow you to build a
single universal app experience that can reach every device running
Windows 10: phone, tablet, PC, and more. It includes the Microsoft
Windows 10 Software Development Kit.
VisualStudio.IoT 1.0 Package with IoT components for Visual Studio
VisualStudio.Mac 1.0 Mac Extension for Visual Studio
WebJobs Tools v1.0.0 15.0.30915.0 WebJobs Tools v1.0.0
Xamarin 4.7.10.33 (70936af) Visual Studio extension to enable
development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android SDK 8.0.2.1 (HEAD/c2a33d8ea) Xamarin.Android
Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 11.2.1.0 (12e80e0) Xamarin.iOS and
Xamarin.Mac Reference Assemblies and MSBuild support.
This work for me deploying from appveyor to an azure server:
You can configure the appOffline rule in the publishing profile (.pubxml). Add the EnableMSDeployAppOffline element to the PropertyGroup like this:
<PropertyGroup>
<EnableMSDeployAppOffline>true</EnableMSDeployAppOffline>
</PropertyGroup>
This is the link to the Microsoft documentation: https://learn.microsoft.com/en-us/iis/publish/troubleshooting-web-deploy/web-deploy-error-codes#errorfileinuse

Xamarin Size Limit?

Xamarin's website says Visual Studio Community doesn't have a size limit... But when I try to run a test app it says otherwise...
I'm new to Xamarin and app development, but this seem's straight forward. What am I missing?
Xamarin Website:
App Restrictions:
None. Unlimited app size.
Deploy to public and private app stores.
https://www.xamarin.com/compare-visual-studio
Visual Studio Error:
Severity Code Description Project File Line Suppression State
Error User code size, 2426880 bytes, is larger than 131072 and requires aáBusinessá(or higher) License. ClientApp
Error Using type `Android.Runtime.JNIEnv` requiresáBusinessá(or higher) License. ClientApp
VS 2015 info
Microsoft Visual Studio Community 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01038
Installed Version: Community
Visual Basic 2015 00322-20000-00000-AA885
Microsoft Visual Basic 2015
Visual C# 2015 00322-20000-00000-AA885
Microsoft Visual C# 2015
Visual C++ 2015 00322-20000-00000-AA885
Microsoft Visual C++ 2015
Application Insights Tools for Visual Studio Package 1.0
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2015.1 (Beta8) 14.1.11106.0
ASP.NET and Web Tools 2015.1 (Beta8)
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.2.30624.0
For additional information, visit http://www.asp.net/
Common Azure Tools 1.5
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools
NuGet Package Manager 3.3.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 14.0.50616.0
Microsoft SQL Server Data Tools
TypeScript 1.7.6.0
TypeScript for Microsoft Visual Studio
Xamarin 4.0.1.96 (dcea9c1)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android 6.0.1.10 (e98e962)
Visual Studio plugin to enable development for Xamarin.Android.
Xamarin.iOS 9.4.1.24 (47eb74b)
Visual Studio extension to enable development for Xamarin.iOS.
You need to update to at least the first stable version after the Microsoft acquisition:
Release Notes: STABLE RELEASE: CYCLE 6 SERVICE RELEASE 3
Blog: Xamarin for Everyone
Xamarin for Visual Studio 4.0.3.214
Xamarin.Android 6.0.3.5
But I would update to at least latest stable version:
Review the release notes for stable/beta/alpha/previews here:
https://releases.xamarin.com

vstoolsforxamarin Installation Error

I have been attempting to install Xamarin w/ Visual Studio via Xamarin's vstoolswithxamarin.exe installer. I have just installed Visual Studio in a fresh Windows 10 installation. I have about 75 gb available on the installation drive. After initiating the installation with the installer's default options selected, the installation sits for a very long time at "Configuring your system. This might take a while", then finally ends with the error "Setup Completed however not all features installed correctly. Optional Items. This operation returned because the timeout period expired." I have no 3rd party virus protection, and attached is a log file from an installation attempted with Windows Defender disabled.
Log File
As BytesGuy recommended, I checked the version information in Visual Studio and received the following output:
Microsoft Visual Studio Community 2015
Version 14.0.25123.00 Update 2
Microsoft .NET Framework
Version 4.6.01038
Installed Version: Community
Visual Basic 2015 00322-20000-00000-AA499
Microsoft Visual Basic 2015
Visual C# 2015 00322-20000-00000-AA499
Microsoft Visual C# 2015
Visual C++ 2015 00322-20000-00000-AA499
Microsoft Visual C++ 2015
Windows Phone SDK 8.0 - ENU 00322-20000-00000-AA499
Windows Phone SDK 8.0 - ENU
Application Insights Tools for Visual Studio Package 1.0
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2015.1 (Beta8) 14.1.11106.0
ASP.NET and Web Tools 2015.1 (Beta8)
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.2.40314.0
For additional information, visit http://www.asp.net/
Common Azure Tools 1.7
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools
NuGet Package Manager 3.4.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 14.0.60311.1
Microsoft SQL Server Data Tools
TypeScript 1.8.29.0
TypeScript tools for Visual Studio
If the Xamarin tools are there, I am missing them.
You can check if Xamarin was installed correctly by grabbing the version info from Visual Studio:
Help -> About Microsoft Visual Studio -> Copy Info
You should see the version of Xamarin near the end of the list:
Alternatively, you can use the Xamarin.VisualStudio installer - if you email contact#xamarin.com we can send you the download link for this.

Resources