Publish to Azure fails with "Unrecognized link extension" contentLibExtension '"Error

I am trying to publish an ASP.NET MVC 6 application for Azure using Visual CTP 2015. And get 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 comes from or how to set it up.

+5
source share
2 answers

I had the same error. In my case, the problem was the 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" that caused the problem and the other in the folder "C: \ Program Files ( x86) \ IIS \ Microsoft Web Deploy V3 \ msdeploy.exe. "

Since I do not know how to change the path in Visual Studio to a newer version, I just saved the old folder and copied the full contents of the new folder to the old one.

After that, everything worked for me, and I was able to post to Azure :) I hope this helps.

+2
source

Try unchecking the "Publish using PowerShell script" checkbox in publish settings

enter image description here

It worked for me

+6
source

Source: https://habr.com/ru/post/1215371/


All Articles