Sitecore.Ship icon indicating copy to clipboard operation
Sitecore.Ship copied to clipboard

Sitecore ship throws MissingMethodException on SC9

Open matthiasduyck opened this issue 7 years ago • 9 comments

Hi

When trying to use Sitecore ship to install packages on a Sitecore 9 installation I'm getting the following error: Method not found: 'Void Sitecore.Update.Installer.XmlEntrySerializer.Serialize(System.Collections.Generic.List`1<Sitecore.Update.Installer.ContingencyEntry>, System.IO.Stream)'.

I'm guessing they changed something in 9 that breaks functionality. Any ideas?

Thanks

matthiasduyck avatar Dec 22 '17 09:12 matthiasduyck

It works if you build the sources from this branch: https://github.com/dharnitski/Sitecore.Ship/tree/feature/sitecore82 with dlls from Sitecore 9. You will have to comment out Sitecore.Configuration.Settings.Indexing.Enabled as it's deprecated and the build fails with it. Also change target framework for ship projects to 4.6.2

whuu avatar May 30 '18 10:05 whuu

I have downloaded the branch(sitecore82) and with sitecore 9 dlls(Sitecore.Client.dll

  • Sitecore.Kernel.dll
  • Sitecore.Logging.dll
  • Sitecore.Update.dll
  • Sitecore.Zip.dll
  • System.Web.Helpers.dll). The solution is not compiling because of the sitecore 9 dlls built using the .net framework 4.6.2 and ship built .net framework 4.5.2 .

Any idea sitecore ship supporting the sitecore 9 version?

Amarapathi avatar Jun 06 '18 13:06 Amarapathi

You should change target framework to 4.6.2 in Sitecore.Ship projects too

whuu avatar Jun 06 '18 15:06 whuu

Thanks working now. I am uploading .update file from vsts tool(Sitecore ship Deploy Task) to Azure PaaS. I am getting the server timeout error after few mins. But ship updating the sitecore items in azure PaaS. Any idea how to resolve the timeout issue.(I tried to increase the timeout but no help) Error: ##[error]System.Net.Http.HttpRequestException: Status code InternalServerError. Reason . Server reported the following message:

500 - The request timed out. 500 - The request timed out.

Issue 2: After upgrade the framework 4.6.2, there is no logs written in the sitecore log file about sitecore ship.(failure or success).

Amarapathi avatar Jun 08 '18 07:06 Amarapathi

@Amarapathi - i was also getting the same error and could not resolve this. Finally i had to switch to TDS package deployer module.

prabhatsingh2011 avatar Jun 27 '18 02:06 prabhatsingh2011

@prabhatsingh2011 Could you please provide me the reference link which you have refered for the TDS package deployer.

Amarapathi avatar Jun 27 '18 09:06 Amarapathi

@Amarapathi - here it is. I have used Octopus and VSTS. if required i can share my step templates(powershell scripts) for you to use.

https://www.teamdevelopmentforsitecore.com/Blog/sitecore-package-deployer

prabhatsingh2011 avatar Jun 28 '18 15:06 prabhatsingh2011

@prabhatsingh2011 Yes please share the steps which you used.

Thanks, Amarapathi.

Amarapathi avatar Jul 02 '18 04:07 Amarapathi

@prabhatsingh2011 Can you please share the steps. I have to use same one with Octopus and Teamcity.

Thanks, Vikas Kumar

kumar-vika avatar Mar 21 '19 12:03 kumar-vika