How to get .publishsettings for Web Deployable Web Role?

廉价感情. 提交于 2020-01-05 06:28:16

问题


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?


回答1:


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:




回答2:


You can get publishsettings file from the following link: https://windows.azure.com/download/publishprofile.aspx




回答3:


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...



来源:https://stackoverflow.com/questions/17884585/how-to-get-publishsettings-for-web-deployable-web-role

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!