Issue on ClickOnce hosting on Azure - azure

Following this article, I have successfully hosted my ClickOnce app to Azure Blob Storage.
But what URL should a user use to install the app. For example, when you publish an app to a website using VS2019, it creates a publish.html page whose URL a user can use to install the app. But here we don't have that publish.html page. So, what we do in that case?

nam. I am very happy to tell you how to generate publish.htm.
After my test, I found the reason why you can't generate piblish.htm. My dev IDE same as you Microsoft Visual Studio Enterprise 2019. It may be upgrade and lost some function about publish. You should use vs2017 to publish the application. I try and success.
This link is my demo url, you can check it. Jason's demo
And document links of how to set publish settings is below,
how to set publish setting to generate publish.htm
Add pic about how to configure, right click project->properties->publish->options->deployment

Related

Mobile App backend does not show in existing Web Apps

I'm following the procedure to create a Xamarin app with a mobile app backend in Azure.
https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-dotnet-backend-xamarin-android-get-started-preview/
I've create the mobile app in the portal and downloaded the backend runtime and xamarin solutions. When I try to publish the backend runtime, the instructions indicate that the one I just created should show up 'Existing Web Apps'. Mine shows nothing.
My questions are:
1) How can I troubleshoot what shows up in the 'Existing Web Apps'?
2) Is it reasonable to just create a new web app from the VS Publish dialog?
3) If not, where should I place the publish profile that I can download from the azure portal?
Regards,
Rajesh
1.a. Ensure you're using the right azure suscription from VS
1.b. Logout and add your subscription login again
Yes it's reasonable
You can put it wherever you want. From VS website project goto publish settings
4. Then select import
5.And Finally browse the publish settings file
I have had issues with Visual Studio finding the existing apps. I tend to download the publish settings and use that instead. This works fine.
Alternatively, create a git repository and check the code into the git repository. Check out this article for instructions: https://azure.microsoft.com/en-us/documentation/articles/web-sites-publish-source-control/
Personally, I post my code to a branch of my git repository on GitHub and link the continuous deployment option of the Azure App Service to that. You can find my blog about this topic here: http://shellmonger.com/2015/08/29/continuous-deployment-nodejs-and-microsoft-azure/ - it's for NodeJS but the concept and methodology is the same.

Can't hit NuGet server hosted on an Azure website from Visual Studio, but can from web

My problem is that I have a NuGet server on an Azure website using Azure AD for auth. It works as expected if I hit the NuGet URL in Chrome (requires the login, which accepts appropriate credentials), but if I try to access it in Visual Studio 2013 (through manage NuGet packages) it won't accept the account/password as appropriate credentials (the prompt just pops up again). My approach was as follows:
With the goal of creating a simple internal NuGet server, I largely followed the instructions in this article to deploy one on an Azure website: http://www.codeproject.com/Articles/872230/Create-Your-Own-Private-NuGet-Server-in-Windows-Az
The NuGet server works just fine, but I wanted to add some basic auth since we'll be hosting some of our code there. I decided to try to use Azure AD for this. I added a couple Microsoft accounts (mine and a coworker's) to our otherwise empty default Azure active directory. Through the management portal, I then selected the 'configure' tab in the website dashboard and added the default directory in the auth section.
Since the developers who will be pulling down our packages will do so through Visual Studio, I need to figure this out or find an alternative. I would like (if possible) to avoid writing my own auth module, since this feature is supposed to be baked into Azure.
It turns out that NuGet does not currently support Azure AD. However, they are working on it and progress can be tracked here: https://github.com/NuGet/Home/issues/708

azure web Code only works after a publish

I am seeing some very strange behavior on my Azure site. When I publish from VS the web site opens and the code works. But when I just paste the URL in the browser the code doesn't work. The specific code is the code that calls my Azure ML API. I am baffled by this one. Anyone have any thoughts on why this would behave this way. BTW. I have the azure SDK installed but my server explorer does not show my web site so I can't debug. I am not using a custom domain.
Clear you browser cache & cookies.
To connect to azure using server explorer. Follow these steps:
Step 1:
Step 2:

How to get .publishsettings for Web Deployable Web Role?

I enabled the Web Deploy feature for my Web Role and deployed it.
But how can I get hold of the .publishsettings file so I can create a Publishing Profile for it?
This 2 year old article states that it should have been created automatically, but I haven't got that in my profile manager.
Any ideas?
If you are using Visual Studio 2012 or greater, the server explorer to the left will have several Azure items.
Specifically the Windows Azure Compute is what we are looking for, right click on that and say 'add deployment environment'. You will then be prompted with a dialog that allows you to sign in and download publish settings file:
You can get publishsettings file from the following link: https://windows.azure.com/download/publishprofile.aspx
Well, the problem was really behind the keyboard.
So the publishing profile is actually provisioned correctly and automatically to the Web project as the documentation states.
The problem and confusion was that I have a secondary web application in my Solution that I also publish to the same Web Role (referenced as an additional Site in the ServiceDefinition.csdef file).
That Web Project does not get the Publishing Profile, and when I try to create a profile manually, it doesn't work since that (secondary) IIs instance is not configured for Web Deployment.
Oh well, back to the tedious Cloud Service deployment it is...

Web Matrix 2 - Downloading and installing publish settings

I am an azure customer, however when I log into the azure portal I see the old azure portal interface without anyway of upgrading or updating it. I want to download my publish settings to use in webmatrix to upload node.js website.
How do I get the publish settings for my azure website using the old portal interface?
I have tried using powershell cmdlet Get-AzurePublishSettingsFile however when I instructed webmatrix to use the downloaded publish settings file I got an error from webmatrix saying there was an error with the publish settings file.
Is there any other way to upload my webmatrix node.js website to my windows azure website ?
To access the new (preview) portal you have to use https://manage.windowsazure.com/ instead of https://windows.azure.com/. This will allow you to access your web sites and download the publish profile (in the dashboard of your website, under quick glance).
Cloud Services are different than Windows Azure Web Sites. At the bottom of the new portal there will be a "+ New" button, when you click it you should get the attached view. That is where you create a website. It will then have a location to download publish settings from the dashboard. That is the publish setting which can be imported into WebMatrix to deploy your node.js site to Azure. Hope this helps.
-Vishal R. Joshi | http://vishalrjoshi.com | #vishalrjoshi

Resources