Publish to Azure fails with “ Unrecognized link extension 'contentLibExtension'” Error

雨燕双飞 提交于 2019-12-22 06:15:27

问题


I am trying to publish ASP.NET MVC 6 App to Azure with Visual Studio 2015 CTP. And getting the following error

Publishing with publish method [MSDeploy] Calling msdeploy with the command: ["C:\Program Files (x86)\IIS\Microsoft Web Deploy\msdeploy.exe" -source:IisApp='C:\Users\*****\AppData\Local\Temp\AspNetPublish\NgCalendar-28\wwwroot' -dest:IisApp='ngcalendar',ComputerName='https://ngcalendar.scm.azurewebsites.net/msdeploy.axd',UserName='$ngcalendar',Password='{PASSWORD-REMOVED-FROM-LOG}',IncludeAcls='False',AuthType='Basic' -verb:sync -enableLink:contentLibExtension -enableRule:DoNotDeleteRule -retryAttempts:2 ] INVOKEPOWERSHELL(0,0): Error : Unrecognized link extension 'contentLibExtension'. INVOKEPOWERSHELL(0,0): Error count: 1.

Not sure where it's coming from and how to tweak it.


回答1:


I had the same error. In my case the problem was an old version of "msdeploy.exe".

After some searching I found one "msdeploy.exe" in the folder "C:\Program Files (x86)\IIS\Microsoft Web Deploy\msdeploy.exe" which caused the problem and another one in the folder "C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe".

As I don't know how to change the path in Visual Studio to the newer version, I just saved the old folder and copied the complete content of the new folder into the old.

After this everything worked for me and I was able to publish to Azure :) Hope this helps.




回答2:


Try deselecting "Publish using PowerShell script" checkbox in publish Settings

It worked for me



来源:https://stackoverflow.com/questions/29056117/publish-to-azure-fails-with-unrecognized-link-extension-contentlibextension

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