I started having this issue recently when publishing my web app. Previously it would open the site after a successful publish, but it is no longer doing that. I have my destination url set in the publish settings.
There is also a notification that an error occurred in the publish profile window, even though the publish succeeded with no errors (some warnings but no errors):
I validate the deployment is successful once the site opens up in the browser, which is easier than hunting through the output window to check the logs. There are also no timestamps in the logs to indicate when the last deployment was, so often I deploy multiple times because I forgot when I did it last. I am on VS 2022 Community Build 17.3.6.
In your Image, Publishing to Azure is Succeeded but the Visual Studio IDE showing publish is failed.
The same issue has been registered few days back in the MS Q&A Forum.
In the above issue, there are few troubleshooting steps suggested from the Product Team SME's #LanHuang-MSFT and #ajkuma-MSFT were:
Open VS IDE as Administrator, Update it to the latest Version.
Delete the .vs folder from your project folder and pubxml file if it is available.
Clean, Rebuild and Publish.
Recently, I have checked by publishing the .NET 6 Core Web App to Azure Web App using VS 2022 IDE latest Version 17.3.6 and it is working as expected in publishing to Azure:
Related
Getting this error when I select a "publish target" in VS 2015 update 3. Had a look for a while online but didn't see anything, so any help would be appreciated if you could point me in the right direction.
An error has occurred while processing the request: Method 'StopRemoteProfiler' in type 'Microsoft.VisualStudio.Web.WindowsAzure.AzureWebSite' from assembly 'Microsoft.VisualStudio.Web.WindowsAzure.Impl, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have implementation
I updated to the to Azure sdk 2.9.6 last night because of a different issue but related where there was no error, but no existing apps were listed.
I can confirm that this works on my work computer and I have existing apps on Azure, but not working on my home computer.
I am a bit loath to uninstall and reinstall VS, so any help would be appreciated. Of course, if the only solution is to reset, then so be it.
Thanks,
Jarrod
I faced the same problem. This is what worked for me.
I updated the "Microsoft .NET Core 1.0.1 - VS 2015 Tooling Preview 2" by going to Menu -> Tools -> Extensions and Updates -> Updates -> Visual Studio Gallery. It shows all the available updates for your version of studio. Select the component to update. It should download a file named "DotNetCore.1.0.1-VS2015Tools.Preview2.0.3.exe" or something similar. When you run this file, if you have the software already installed then select the repair option. It will ask you to close any running instances of Visual Studio, also make sure you have internet connection.
Also if you are using Web Deploy to publish your app make sure you have Microsoft Web Deploy v3 or higher installed or you will get error. You can do it using Microsoft Web Platform Installer.
Hope it helps.
In my Visual Studio 2015 MVC 5 web application, I'm deploying to Azure using publishing profile. In the publishing wizard, under settings, I have selected the Release build configuration and checked the "Remove additional files at destination" under File Publishing options.
When I'm done the publishing or even in preview mode it always deleting a view from the destination, instead of updating. It was never being published to the destination via the wizard, so I have FTP the cshtml file using FileZilla.
I have tried re-creating the publishing profile, but it works same as before. How do I include this file to be published as other files does?
I have found the issue. In that specific file I looked for properties windows for any uncommon setting with same file types, and I found that Build Action setting was set to None while other files have set to Content. After that the file getting deleting issue solved.
I want to publish to the internet my Node.js web application. Relating to this tutorial, I need to set up "continuous deployment" from git repository.
I connected my Visual Studio Online account (where I keep my application) to Azure. Now, it looks like this:
My project should have been built and deployed to Azure on my next check-in. So I commited some small change and pushed it to Visual Studio Online. I can see on VSOnline website that the change in git repo is commited to the master branch.
So everything seems to be fine, but Azure doesn't respond :/ It still tells me to do some check-in. Am I doing something wrong?
The Visual Studio Online workflow currently only supports .NET by default. For a Node.js application, you would have to modify the Build Template to remove the .NET build then add an activity to run NPM. As long as everything is placed in the drop folder for WebDeploy to bundle the package, the deployment should go fine.
We already use Application Insight for diagnostics our cloud service project.
Today I added AppInsight Telemetry to project from Visual studio.
It added some lines to web config and nuget packages.
But after deployed it stopped sending data to Visual Studio Portal. No telemetry data and diagnostic data.
Now I rollback changes.
How can I add AppInsight Telemetry to out project?
In Visual Studio 2013 open Tools, Extensions and Updates,
Select Installed on the left and look for Application Insight Tools for Visual Studio and check its version. If it is version 2, uninstall it. This one sends the telemetry data to Azure instead of VS Online (portal that you mentioned above).
Now select Online and search for Application Insight Tools for Visual Studio, you will see 1.3.2 version. Install it, restart the Visual Studio and Add Application Insights Telemetry to the project..., it will show you VS Online account that it will use and the Application Insight component under which data will be captured. Run the app and after few minutes data will appear in the VS Online portal.
You can add Application Insight in Visual Studio 2012 as well. However, it is a manual process and involves below steps:
Create Application Insight application in VS Online portal
Add Nuget package to the project in VS
Finally, add few lines of code in Global.asax.cs
Our team has been having quite a lot of trouble with Visual Studio's publish feature. We use TFS and are all running VS 2012 ultimate. It works fine when only one person is involved in a project, but when we get many people inside one project, the publish profiles get off and Visual Studio reports a successful publish even when all files haven't been copied up. I've read all the SO questions about why this happens and I understand that TFS adds the publish profiles to the source control automatically. If we create a new publish profile and republish, everything works. But this is not sustainable. I can't prevent VS from automatically adding the publish profiles to TFS (if we could, I think this would solve the problem) so I'm now looking for better ways to publish an application to a web server. Is there a better tool out there to publish web applications or do I need to write my own VS extension?
Per this question (https://stackoverflow.com/a/12393154)
The temporary answer seems to be to change your settings from release to debug, save, then switch it back. This causes the pubxml.user file to be rebuilt, which is actually the problem.