When we create a Publish Profile (azurepubxml) for our Azure Projects (ccproj) and commit to VSO, we tend to get this error in VSO when viewing the file:
VSO Error when Viewing in Browser
This file contains non-printable characters and no other viewer was found for file extension "azurePubxml".
Click to download file to your computer.
Viewing AzurePubXML withinin VSO
After further review - there seems to be something in the TFS/VS IDE Tooling that corrupts the file during upload.
The fix is to perform the following steps:
Download the original publish profile locally
Delete the publish profile from VSO
Upload the downloaded file directly using VSO in the browser.
Not sure why this is occurring, but hopefully this helps someone else and short circuit time to resolve.
Related
Publishing my local site to an Azure profile with web deploy method. If I delete a file and publish, the file remains on the server. I've seen similar versions of this question with answers suggesting either to check the 'delete all files when publishing' (not an option in VS 2017) or to delete bin and obj folders and re-publish (tried several times).
Any other suggestions on getting files to sync when publishing?
You could right-click your project -> publish, then follow the screenshots below to check the option Remove additional files at destination.
I have deployed the website on my Azure account using DNN platform. Right now I need to run this website locally on my PC. I have installed a "Open From Azure Websites" extension for the Visual Studio:
https://visualstudiogallery.msdn.microsoft.com/60d414b1-4ead-4fde-9359-588aa126cd6c
I have downloaded from an Azure my publish settings file and opened it in the Visual Studio: File -> Open From Azure Websites.
The process of downloading files is interrupted with the following error:
"An error occurred when the request was processed on the remote computer. An error was encountered when processing operation 'Read File' on 'write.lock'"
Can somebody help with it?
It seems IIS has a lock on you 'write.lock' file, you can exclude the file when you are downloading the site.
this is more complicated than just downloading and running. Are you looking to redeploy this site to azure or just work with it locally for testing. If just local testing, I use ftp and just download the site files, then you have to change the connection string to a local db that is a copy of your azure db and then you have to adjust your hosts file to point to the site and the associated portal alias(s) in dotnetnuke.
Have a look at link below for more detailed steps
http://www.ifinity.com.au/2012/09/05/Creating_a_test_copy_of_your_DotNetNuke_website
I just started trying to use VSO for my test projects I work on at home. I think I've got that all configured up and working properly but now I'm looking to connect to VSO at work so that I can look at some of the sample code for use on my work projects. At work I'm connected to our enterprise TFS server.
What I tried was to open my VSO account and then I chose the project. From there I selected the open in Visual Studio option. That launched my local VS 2015 but then I got an error that I did not have access to my VSO account.
After doing some searching I saw where someone suggested to open the web browser inside of VS and connect. I went through those steps (open VS, Tools, Web Browser, VSO site, logged in, selected project, opened .sln file) and that opened the project in a separate instance of VS locally. I mapped the workspace to my local drive and did a Map & Get. This opened the project locally but it was not in Source Control (determined by the fact that there were no lock icons next to the files).
I was even able to open my local VS, choose the project, went to File | Source Control | Open from Server | saw and selected my VSO account | selected my the project and saw it get the files from the server. However, as soon as it tried to open the project after copying all the files I got the same "TF30063: You are not authorized to access VSOAccount\DefaultCollection".
Anyone have any suggestions on something I can try?
Try to connect to the project from "Team Explorer\Manage Connections\Connect to team project".
If it still does not work, try following actions:
Log out your account.
Clear IE Cookies.
Clear TFS Cache. The cache folder usually locates in C:\Users\\AppData\Local\Microsoft\Team Foundation. You may
see several folders like 3.0, 4.0, 5.0 in it. Clean the Cache folder
in these folders.
Go to Help/Register Product in Visual Studio and make sure the account you need to access the VSO account is listed under All Accounts.
I'm trying to publish an Azure application, but can't sign in using Visual Studio 2010. I get the error message "The web browser cannot be started. To resolve this problem, you must restart Windows."
I've tried both rebooting and making Internet Explorer the default browser, but I still get the error message. This also occurs when clicking on other links (for example "Online Privacy Statement" in the same publish dialog box).
How can I fix this, or alternatively, are there any other easy ways to publish to Azure?
There are several ways to publish to Azure. Depending on your preference, some of them may be easy. Some, not so much.
First of all, are you using a source control? If you're using git, then you can use Azure Git Repository that comes free with Azure Websites and also Azure Cloud Services. So when you push your code to the Azure repository, it automatically publishes the final bits to the corresponding site.
If you're using TFS locally (at home or office), you can set up a build task that'll deploy the bits to Azure. Also, check out TFS Preview if you are comfortable with a Microsoft hosted free TFS server.
If you feel comfortable using FTP, you can get the FTP account details from the Azure portal when you set up a new azure website or a cloud service.
Finally, one of the easiest way to publish to Azure is to use the Publish Profile feature.
You'll find a link called "Download Publish Profile" associated with
your azure website. Click on that to download the profile (an XML
file).
Then right click on your VS project and hit Publish. Under Profile
tab, select "Import" and pick this downloaded file.
It should populate all the details for you. Test your connection to make sure everything works okay.
Publish and ENJOY!
UPDATE: Based on the comment to this answer, adding screenshot to show where to get the FTP details for your azure website.
Using VStudio 2010 wizard to set up basic 'Hello World' asp.net web role, works under emulator but when importing publish file from azure management portal get error
'publishsettings does not contain valid publish settings for Windows Azure'.
Have set up web site, storage and cloud service in Azure latest management portal (preview version) so unclear what problem is.
If you are using Windows Azure Websites (Preview) and using Visual Studio Publish wizard for your application you would need to download the publish file from your website located as shows below:
After that you can just use this .publishsettings file in VS Publish wizard and there not even a single click needed and your website will be published.
Please see my latest blog: Deploying Windows Azure Website using Visual Studio Web Publish wizard
I had the same issue.
Seems like the publishsettings files related to specific sites/services/apps are always rejected.
The solution seems to be to get a publishsettings file for your entire Azure account instead, and after that you're able to access your sites/services/apps or create new ones and publish to them.
This is performed using the following steps:
. Right click the project in VS10 and open 'Publish...' (the Azure
publish settings)
. Go to the Summary tab. Here you are able to download a publish settings file related to your Azure account. This file is named something like 'three month free evaluation period 1-1-2013-credentials.publishsettings' rather than the publish settings file for a particular site, which would be named somethiung like 'mysite.azurewebsites.net.publishsettings'. Import that file - it will work!
3. Now go to the settings tab. Here you can select a cloud service (select existing or you can create a new one) and assign some settings.
. When the configuration is complete and you've clicked the Next button, VS10 will start deploying your project to the selected service. This is displayed in the 'Windows Azure Activity Log' output window in VS10.