Sitecore – Bad IL Format

Happy New Year and Merry Xmas. This is the first blog post for 2017 :D. Today I have experienced the following error: “Bad IL Format”. Below is part of the stacktrace:

[BadImageFormatException: Bad IL format.]
   Sitecore.Data.Database.GetItem(String path) +0
   Cognifide.PowerShell.Core.Modules.ModuleManager.GetDbModules(String database) +196
   Cognifide.PowerShell.Core.Modules.ModuleManager.get_Modules() +215
   Cognifide.PowerShell.Core.Modules.ModuleManager.GetFeatureRoots(String featureName) +99
   Cognifide.PowerShell.Integrations.Pipelines.PipelineProcessor`1.Process(TPipelineArgs args) +133

The main reason for this error is because the version of the Sitecore PowerShell Extensions is not compatible with the Sitecore Version Instance.

In order to fix the issue, first, delete the Cognifide.PowerShell.config from the path Website/App_Config/Include. By removing this file, it will make your Sitecore Instance to be up again.

Now, click here to go to the Sitecore MarketPlace to download the PowerShell Extension for Sitecore. When downloading the module, make sure to download the correct version based on the Sitecore Instance Version. Example, download the latest SPE for Sitecore 8 4.3 for Sitecore 8. At last, install the Sitecore Package and overwrite the existing files and items.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s