Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish-Item crashes #1129

Closed
webbson opened this issue Aug 20, 2019 · 3 comments
Closed

Publish-Item crashes #1129

webbson opened this issue Aug 20, 2019 · 3 comments
Assignees
Labels
area-commands bug
Milestone

Comments

@webbson
Copy link

@webbson webbson commented Aug 20, 2019

Expected Behavior

Trying to run a simple script

$theme = Get-Item -Path "master:/sitecore/media library/themes/PublicWebsites/Corporate Site/CorporateTheme"
$theme | Publish-Item -Recurse

This should publish the theme and all descendants.

Actual Behavior

A crash with the following message:

Publish-Item : Could not load type 'Sitecore.Jobs.Job' from assembly 'Sitecore.Kernel, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null'.
At line:2 char:10
+ $theme | Publish-Item -Recurse
+          ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Publish-Item], TypeLoadException
    + FullyQualifiedErrorId : System.TypeLoadException,Cognifide.PowerShell.Commandlets.Data.PublishItemCommand

Steps to Reproduce the Problem

Clean install with:

Sitecore 9.2
Sitecore PowerShell Extensions 5.1.0.19766
SXA 1.9.0 rev. 190528.

Just try to publish an item from PowerShell ISE with Publish-Item command.

@AlexKasaku
Copy link
Contributor

@AlexKasaku AlexKasaku commented Aug 20, 2019

@michaellwest - Was looking to see if this is related to the known compatability issue with 9.2, but I think this different as looks to be the latest 5.1 release? The publishing API calls made by PublishItemCommand may need to be abstracted into the versioned assemblies?

@AlexKasaku AlexKasaku added the bug label Aug 20, 2019
@AlexKasaku
Copy link
Contributor

@AlexKasaku AlexKasaku commented Aug 20, 2019

Can confirm I can reproduce this with a clean install of 9.2 and the latest 5.1 release.

@AlexKasaku AlexKasaku self-assigned this Aug 20, 2019
@AlexKasaku AlexKasaku added this to the 6.0 milestone Aug 20, 2019
@AlexKasaku AlexKasaku added the area-commands label Aug 20, 2019
@AlexKasaku
Copy link
Contributor

@AlexKasaku AlexKasaku commented Aug 20, 2019

Thanks for reporting this @webbson, have confirmed this is a bug and fixed for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-commands bug
Projects
No open projects
Development

No branches or pull requests

3 participants