Unable to select Visual Studio Profile to Publish - c#

To publish my project, I Builded my Asp.Net MVC Web application, But the publish window is as shown in the picture,The tabs are getting freezed. It is unable to choose any local folder for publish.

I installed the updated version of visual studio, now the problem solved.

Related

ASP.NET Core web application project files are not showing up (the project appears empty even though it is of model control...) Why?

I have a problem in Visual studio 2019 when I create a ASP.NET core web application of type model control the project files are not showing why?
Maybe the workload "ASP.NET" isn't installed.
To install this workload :
Start "Visual Studio Installer"
Click on modify near Visual Studio 2019
Check the workload "ASP.NET and web development"
Click on "Install while downloading"

Visual Studio 2019 (16.11.5) clickonce publish succeeds but clickonce is not packaged and pushed to network share

I have a winforms application that had click once working in visual studio. after the recent update to 16.11.5, the exact same publish profile for the clickonce app is no longer working after updating from an earlier version of visual studio.
Anywhere I should check for changes to click once? this is really baffeling and my google skills seem to be failing me in finding an issue.
The only output I get from the publish (build output log) is that the publish succeeded. The files are being published to the staging publish folder and I have made sure I have full permissions on the network share configured for the user install location.

Unable to create publish profile - Azure

I created a ASP.Net Web Application (MVC) to publish it onto a Azure VM. However, I am getting the following error.
In the folder structure given, there isn't a file called PublishProfiles\AppService.pubxml created. Can someone help me solve this ?
I was having the same issue on Visual Studio 2022 when trying to publish a function. I installed the "Azure development" workload and updated to version 17.1.1 and the problem went away.
Steps that I took...
Download the Visual Studio installer from Microsoft https://visualstudio.microsoft.com/downloads/ or search for it on your computer
If there is an update available then click "Update"
When updated, click "Modify" to show what components are installed.
Ensure that "Azure development" workload is checked then click "Modify" in the bottom right corner.
Try to login with the same account on Visual Studio and publish profile that works for me.
Check if there's any important component missing from your Visual Studio Installer, in my case I needed to have the Azure Webjob component to be able to create a publish profile.
This is an error message that gives you no insight of what is going on.

Visual Studio 2017 Enterprise cannot start ASPNet Core application

I have the latest VS2017 Enterprise.
I have 'ASP.NET and web development' workload installed.
Also I have .NET Core SDK both versions 32/64 bits.
I create new ASP.NET Core Web Application from template.
When I try to 'Start without debugging' I got an error - "The Project doesn't know how to run the profile IIS Express"
At the same time this project can be run successfully from command line
dotnet run
I know that similar question exists but all suggestions from it are not helpful in my case
Visual Studio 2015 can't start IIS Express
I reinstalled my VS from scratch and now it works
try to remove the vs folder and try to run the project
The .vs is a hidden folder so you have to enable the Show hidden files
PS: close visual studio before removing the folder

How to deploy a "Release" build of an ASP.NET MVC5 application

So It's the first time I'm trying to deploy an ASP.NET MVC application to a Windows host.
I set the compile mode to "Release" in Visual Studio 2015 and I compile it but don't know which folder(s) to zip and upload to server...
I see an obj folder in project directory that has two folder inside it. "Debug" and "Release". I'm not sure about them though.
On the other hand in project directory root, there is a folder with the same name as project, inside it I can see controllers so I'm pretty sure that folder is not a "Release" build.
My host is running Plesk and IIS 8.
What should I do?
You should use the Publish wizard of visual studio. As a shortcut --> Right click on the MVC project and click publish. You will find many option here.
Make sure you configure your publish profile in release mode if you are publishing on server

Categories