VS 2019 Remote Debugger failing for Azure App Service - visual-studio

Remote debugging an Azure App Service is failing due to the following error message:
I have both 64 and 32-bit remote debugging tools installed. The deployed application is an asp.net core application compiled in Azure Devops using Any CPU.
Any ideas?

You should change Platform in General settings in App Service Configuration from 64 bit to 32 bit
link to screen of setting

Related

Is it possible to debug a .NET application that is deployed to IIS on my local machine?

I have incorporated Azure authentication in to a .NET application on my local development machine. When I debug/run the application in Visual Studio the app runs just fine.
I have deployed the application to IIS on my local development machine and have configured a new site binding of type HTTPS which uses an SSL certificate that I have created locally and added to my "Trusted Root Certification Authorities" store. When I try to browse the application through IIS, I get a generic error message that is generated by the Application_Error method in my global.asax.cs file.
Is it possible for me to use a debugger to "step through" code that has been actually deployed in IIS? I think that I have found MSDN documentation that describes doing this for a .NET Core application (https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/development-time-iis-support?view=aspnetcore-2.1) but I my app is written in .NET 4.8 so I don't think it applies for me.
To debug an ASP.NET application that has been deployed to IIS, install and run the remote tools on the computer where you deployed your app, and then attach to your running app from Visual Studio.
For more information about "Remote Debug ASP.NET on a Remote IIS Computer", you can refer to this link.

Offline installation of Visual Studio 2017 Update 2 (26430.04) fails

I'm running the command mu_visual_studio_enterprise_2017_x86_x64_10049783.exe --layout c:\vs2017offline --lang en-US to create an offline Visual Studio 2017 installer with the latest update 15.2 (26430.04). I have followed the instructions for offline installation and imported the certs etc. Still, on a machine without internet connection the installation fails. This has caused me major headaches as the failed installation corrupted my dev machine. Installation log attached below:
The product failed to install the listed workloads and components due to one or more package failures.
Incomplete workloads
.NET Core cross-platform development (Microsoft.VisualStudio.Workload.NetCoreTools,version=15.0.26323.1)
.NET desktop development (Microsoft.VisualStudio.Workload.ManagedDesktop,version=15.0.26412.1)
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.0.26412.1)
Azure development (Microsoft.VisualStudio.Workload.Azure,version=15.0.26412.1)
Data storage and processing (Microsoft.VisualStudio.Workload.Data,version=15.0.26208.0)
Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.0.26403.0)
Incomplete components
.NET desktop development tools (Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites,version=15.0.26323.1)
ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.0.26323.1)
Azure Cloud Services core tools (Microsoft.VisualStudio.Component.Azure.Waverton,version=15.0.26208.0)
Azure Cloud Services tools (Microsoft.VisualStudio.ComponentGroup.Azure.CloudServices,version=15.0.26208.0)
Azure Data Lake Tools (Microsoft.Component.Azure.DataLake.Tools,version=15.0.26208.0)
Azure development prerequisites (Microsoft.VisualStudio.ComponentGroup.Azure.Prerequisites,version=15.0.26323.1)
Azure Resource Manager core tools (Microsoft.VisualStudio.Component.Azure.ResourceManager.Tools,version=15.0.26208.0)
Azure Resource Manager tools (Microsoft.VisualStudio.ComponentGroup.Azure.ResourceManager.Tools,version=15.0.26323.1)
C# and Visual Basic (Microsoft.VisualStudio.Component.Roslyn.LanguageServices,version=15.0.26208.0)
Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=15.0.26208.0)
Live Unit Testing (Microsoft.VisualStudio.Component.LiveUnitTesting,version=15.0.26208.0)
Managed Desktop Workload Core (Microsoft.VisualStudio.Component.ManagedDesktop.Core,version=15.0.26419.1)
Microsoft Test Manager (Microsoft.VisualStudio.Component.TestTools.MicrosoftTestManager,version=15.0.26228.0)
OzCode (Component.6c84f75d-38c3-48a2-9e54-d362238686b5,version=3.0.0.3597)
PowerShell Tools for Visual Studio 2017 (Component.PowerShellTools.VS2017,version=3.0.539)
ReadyRoll for VS2017 (Component.Redgate.ReadyRoll,version=1.13.23.3401)
SQL Prompt Core (Component.Redgate.SQLPrompt.VsPackage,version=7.5.1.1087)
SQL Search (Component.Redgate.SQLSearch.VSExtension,version=2.4.2.1321)
SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,version=15.0.26208.0)
Testing tools core features (Microsoft.VisualStudio.Component.TestTools.Core,version=15.0.26208.0)
Universal Windows Platform tools (Microsoft.VisualStudio.Component.UWP.Support,version=15.0.26412.1)
Universal Windows Platform tools for Xamarin (Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,version=15.0.26403.0)
Web performance and load testing tools (Microsoft.VisualStudio.Component.TestTools.WebLoadTest,version=15.0.26208.0)
Windows Communication Foundation (Microsoft.VisualStudio.Component.Wcf.Tooling,version=15.0.26208.0)
Windows Workflow Foundation (Microsoft.VisualStudio.Component.Workflow,version=15.0.26208.0)
You can search for solutions using the information below, modify your selections for the above workloads and components and retry the installation, or remove the product from your machine.
Following is a collection of individual package failures that led to the incomplete workloads and components above. To search for existing reports of these specific problems, please copy and paste the URL from each package failure into a web browser. If the issue has already been reported, you can find solutions or workarounds there. If the issue has not been reported, you can create a new issue where other people will be able to find solutions or workarounds.
Package 'Microsoft.CodeAnalysis.VisualStudio.InteractiveComponents.Resources,version=15.0.26412.1,language=en-US' failed to download from 'https://download.microsoft.com/download/1/9/A/19A9B545-B70C-4B0E-871D-CEF22A55E2A8/microsoft.codeanalysis.visualstudio.interactivecomponents.resources.vsix'.
Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.CodeAnalysis.VisualStudio.InteractiveComponents.Resources;PackageAction=DownloadPackage;ReturnCode=0x80072ee7
Impacted workloads
.NET Core cross-platform development (Microsoft.VisualStudio.Workload.NetCoreTools,version=15.0.26323.1)
.NET desktop development (Microsoft.VisualStudio.Workload.ManagedDesktop,version=15.0.26412.1)
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.0.26412.1)
Azure development (Microsoft.VisualStudio.Workload.Azure,version=15.0.26412.1)
Data storage and processing (Microsoft.VisualStudio.Workload.Data,version=15.0.26208.0)
Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.0.26403.0)
Impacted components
.NET desktop development tools (Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites,version=15.0.26323.1)
ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.0.26323.1)
Azure Cloud Services core tools (Microsoft.VisualStudio.Component.Azure.Waverton,version=15.0.26208.0)
Azure Cloud Services tools (Microsoft.VisualStudio.ComponentGroup.Azure.CloudServices,version=15.0.26208.0)
Azure Data Lake Tools (Microsoft.Component.Azure.DataLake.Tools,version=15.0.26208.0)
Azure Resource Manager core tools (Microsoft.VisualStudio.Component.Azure.ResourceManager.Tools,version=15.0.26208.0)
Azure Resource Manager tools (Microsoft.VisualStudio.ComponentGroup.Azure.ResourceManager.Tools,version=15.0.26323.1)
C# and Visual Basic (Microsoft.VisualStudio.Component.Roslyn.LanguageServices,version=15.0.26208.0)
Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=15.0.26208.0)
Live Unit Testing (Microsoft.VisualStudio.Component.LiveUnitTesting,version=15.0.26208.0)
Managed Desktop Workload Core (Microsoft.VisualStudio.Component.ManagedDesktop.Core,version=15.0.26419.1)
OzCode (Component.6c84f75d-38c3-48a2-9e54-d362238686b5,version=3.0.0.3597)
PowerShell Tools for Visual Studio 2017 (Component.PowerShellTools.VS2017,version=3.0.539)
ReadyRoll for VS2017 (Component.Redgate.ReadyRoll,version=1.13.23.3401)
SQL Prompt Core (Component.Redgate.SQLPrompt.VsPackage,version=7.5.1.1087)
SQL Search (Component.Redgate.SQLSearch.VSExtension,version=2.4.2.1321)
SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,version=15.0.26208.0)
Universal Windows Platform tools (Microsoft.VisualStudio.Component.UWP.Support,version=15.0.26412.1)
Web performance and load testing tools (Microsoft.VisualStudio.Component.TestTools.WebLoadTest,version=15.0.26208.0)
Windows Communication Foundation (Microsoft.VisualStudio.Component.Wcf.Tooling,version=15.0.26208.0)
Windows Workflow Foundation (Microsoft.VisualStudio.Component.Workflow,version=15.0.26208.0)
Details
WebClient download failed: The remote name could not be resolved: 'download.microsoft.com'
Bits download failed: File not found.
WinInet download failed: Function: InternetOpenUrl, HR: -2147012889, Message: Unknown error 12007
Package 'Microsoft.VisualStudio.TestTools.TestPlatform.Legacy.Core.Resources,version=15.0.26424.2,language=en-US' failed to download from 'https://download.microsoft.com/download/D/3/0/D3037781-3854-46BA-B6BC-7744B2A41FF1/microsoft.visualstudio.testtools.testplatform.legacy.core.resources.vsix'.
Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.TestTools.TestPlatform.Legacy.Core.Resources;PackageAction=DownloadPackage;ReturnCode=0x80072ee7
Impacted workloads
.NET Core cross-platform development (Microsoft.VisualStudio.Workload.NetCoreTools,version=15.0.26323.1)
.NET desktop development (Microsoft.VisualStudio.Workload.ManagedDesktop,version=15.0.26412.1)
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.0.26412.1)
Azure development (Microsoft.VisualStudio.Workload.Azure,version=15.0.26412.1)
Data storage and processing (Microsoft.VisualStudio.Workload.Data,version=15.0.26208.0)
Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.0.26403.0)
Impacted components
.NET desktop development tools (Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites,version=15.0.26323.1)
ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.0.26323.1)
Azure Cloud Services core tools (Microsoft.VisualStudio.Component.Azure.Waverton,version=15.0.26208.0)
Azure Cloud Services tools (Microsoft.VisualStudio.ComponentGroup.Azure.CloudServices,version=15.0.26208.0)
Azure Data Lake Tools (Microsoft.Component.Azure.DataLake.Tools,version=15.0.26208.0)
Azure development prerequisites (Microsoft.VisualStudio.ComponentGroup.Azure.Prerequisites,version=15.0.26323.1)
Azure Resource Manager core tools (Microsoft.VisualStudio.Component.Azure.ResourceManager.Tools,version=15.0.26208.0)
Azure Resource Manager tools (Microsoft.VisualStudio.ComponentGroup.Azure.ResourceManager.Tools,version=15.0.26323.1)
Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=15.0.26208.0)
Managed Desktop Workload Core (Microsoft.VisualStudio.Component.ManagedDesktop.Core,version=15.0.26419.1)
Microsoft Test Manager (Microsoft.VisualStudio.Component.TestTools.MicrosoftTestManager,version=15.0.26228.0)
PowerShell Tools for Visual Studio 2017 (Component.PowerShellTools.VS2017,version=3.0.539)
ReadyRoll for VS2017 (Component.Redgate.ReadyRoll,version=1.13.23.3401)
SQL Prompt Core (Component.Redgate.SQLPrompt.VsPackage,version=7.5.1.1087)
SQL Search (Component.Redgate.SQLSearch.VSExtension,version=2.4.2.1321)
SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,version=15.0.26208.0)
Testing tools core features (Microsoft.VisualStudio.Component.TestTools.Core,version=15.0.26208.0)
Universal Windows Platform tools (Microsoft.VisualStudio.Component.UWP.Support,version=15.0.26412.1)
Universal Windows Platform tools for Xamarin (Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,version=15.0.26403.0)
Web performance and load testing tools (Microsoft.VisualStudio.Component.TestTools.WebLoadTest,version=15.0.26208.0)
Windows Workflow Foundation (Microsoft.VisualStudio.Component.Workflow,version=15.0.26208.0)
Details
WebClient download failed: The remote name could not be resolved: 'download.microsoft.com'
Bits download failed: File not found.
WinInet download failed: Function: InternetOpenUrl, HR: -2147012889, Message: Unknown error 12007
Package 'Microsoft.VisualStudio.TestTools.TestManagement.MicrosoftTestManager.Resources,version=15.0.26424.2,language=en-US' failed to download from 'https://download.microsoft.com/download/6/3/5/635106B1-58AD-4D74-B069-9942F0654B95/MS.VS.TestTools.TestManagement.MSTestManager.Resources.vsix'.
Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.TestTools.TestManagement.MicrosoftTestManager.Resources;PackageAction=DownloadPackage;ReturnCode=0x80072ee7
Impacted components
Microsoft Test Manager (Microsoft.VisualStudio.Component.TestTools.MicrosoftTestManager,version=15.0.26228.0)
Details
WebClient download failed: The remote name could not be resolved: 'download.microsoft.com'
Bits download failed: File not found.
WinInet download failed: Function: InternetOpenUrl, HR: -2147012889, Message: Unknown error 12007
It seems you didn't include the --includeRecommended and --includeOptional parameters in your offline layout command, this is required because it only downloads required packages by default which is not sufficient for the installation to work offline.
The problem is: The --layout switch should be used ONLY when downloading a new workload or updating one, which off-course need to be done online, which makes the above error.
By just saying --layout you ask setup: "please update the components in this layout, I'm online now.", which 1st downlaod ~ 60MB file saying "Give us more time, we'll be done soon", then start updating.
When you want to setup vs2017:
Open the 3 certificates in [layoutFolder]\certificates, press enter
or next on each dialog till you finish, don't change anything.
Run [layoutFolder]\vs_*.exe.
However, Its highly recommended to automate the run of vs_*.exe (for setup to choose the exactly Required components) like that:
.\layout\vs_setup.exe --add microsoft.visualstudio.workload.ManagedDesktop --nocache
You don't need to even specify: --lang en-US. --nocache will save your C: from same-as-installed-workload-size additional GB's.
You can do manual download https://download.microsoft.com/download/1/9/A/19A9B545-B70C-4B0E-871D-CEF22A55E2A8/microsoft.codeanalysis.visualstudio.interactivecomponents.resources.vsix and put it to folder "Microsoft.CodeAnalysis.VisualStudio.InteractiveComponents.Resources,version=15.0.26412.1,language=en-US" , file name must be "microsoft.codeanalysis.visualstudio.interactivecomponents.resources.vsix"

Setup continous deploy from Visual Studio/TFS to a Windows Azure VM

Is it possible to automatically deploy to a Windows Azure VM after a successful build from Visual Studio/TFS?
You question is not totally clear if you are looking for a solution for Windows Azure Virtual Machines or Windows Azure Cloud Services.
Windows Azure Virtual Machines:
With Windows Azure Virtual Machine, you own your Virtual Machine and thats why you would need to configure any deployment mechanism you decide. The OS VHD deployed for Windows Azure could be the one you upload or the one you got for gallery, so there are no basic deployment services running unless someone configure them first. For example if you will choose Windows Server based Windows Azure Virtual Machines, then you can install Web Deployment Services in Azure VM, and then configure your VS/TFS to continious deploy it or you can setup FTP based services to deploy your app. This SO discussion talks more on this regard.
Windows Azure Cloud Service:
If you are looking a solution directly from VS then you can add post build scripts using Poweshell commands. This solution will not depend on TFS at all. There are a few solutions also described which are non powershell dependent as well.
Using Visual Studio and Team foundation server components you have ability to configure the combination of MsBuild and PowerShell scripts as described here and here (same as Herve).
If you are looking for a solution directly from Windows Azure TFS (Cloud Based), this article includes everything needed.
You can find some information about automatic deployment here: http://www.windowsazure.com/en-us/develop/net/common-tasks/continuous-delivery/

Publishing a WCF service using web deployment failed on Windows 8

I am trying to publish a WCF service to IIS in Windows 8 using Web deploy. The publish process is failing with the following error:
Web Deployment task failed. There was an error reading IIS configuration schema from 'C:\windows\system32\inetsrv\config\schema
Yes, I am running VS2010 in admin mode.
Thanks for your help.
This is a known issue when using WS2012 with Windows 8 and IIS 8
http://support.microsoft.com/kb/2735834/en-us?fr=1
I`m migrating to VS2012, let`s see if this really solves the issue.

How do I get IIS Express to launch MVC3 web application with 64 bit 3rd party DLLS

I referenced a DLL in a MVC3 web application.
It compiled successfully.
MVC3 project is running as Any CPU configuration property.
I launched IIS Express 7.5 and I keep seeing the DLL is missing its dependencies exception.
I then created a windows application and referenced the DLL and it worked fine.
So I realise it's something to do with IIS Express setting.
Dll is 64 bit.
Can you please guide me
IIS Express 8 has a 64 bit and a 32 bit version, which are both installed on a 64 bit machine.
See this question on how to run IIS Express in 64 bit mode, and then attach to process to debug.
See the answer to this question. IIS Express 7.5 is a 32 bit application only so there is no way to get it to work with 64 bit DLL's. The same goes for the Visual Studio Development server.
You'll have to host your site in the full version of IIS for it to run. You can set that up by choosing "Use Local IIS Web server" in the Web section of the project properties.
IIS Express 7.5 runs only as 32bit process. To run 64bit app, you should use full version of IIS.
Make sure that build configuration is set to “Any CPU" for your MVC app.
and also make sure that your application app pool set to run in 64 bit mode. Run the following command to do that
appcmd set apppool /apppool.name: /enable32BitAppOnWin64:false

Resources