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

2

5

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.

Chinaware answered 15/3, 2015 at 1:5 Comment(0)
I
2

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.

Inchoation answered 18/3, 2015 at 14:30 Comment(1)
You got it, VS uses C:\Program Files (x86)\IIS\Microsoft Web Deploy\msdeploy.exe which apparently is an older version.Chinaware
D
6

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

enter image description here

It worked for me

Diazomethane answered 6/5, 2015 at 15:34 Comment(0)
I
2

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.

Inchoation answered 18/3, 2015 at 14:30 Comment(1)
You got it, VS uses C:\Program Files (x86)\IIS\Microsoft Web Deploy\msdeploy.exe which apparently is an older version.Chinaware

© 2022 - 2024 — McMap. All rights reserved.