Cannot open image via image editor

Found in

EPiServer.CMS.Core 10.4.0

Fixed in

EPiServer.CMS.Core 10.4.2

Created

Feb 08, 2017

Updated

Mar 09, 2017

Area

CMS Core

State

Closed, Fixed and tested


Description

step to reproduce:

  1. Create an Alloy site (I tested with an MVC site).
  2. Go to edit mode.
  3. Select an existing image.
  4. Open the context menu.
  5. Select Open in the Image editor.

Expected: You can open the image in the image editor to edit.

Actual: Cannot open the image in the image editor. You get a message "There was an error when loading image. The image format is not supported by your browser or the image could not be reached. Close Image editor?"

Note:

  • Don't see bug on daily site, but see bug on site which created on QA server
  • Don't see bug on "EPiServer.CMS.UI" version="10.2.0"

500 error on request to url like this one: http://localhost:17000/episerver/CMS/Edit/ImageEditor/RenderImage.ashx?epieditmode=True&zoom=100&quality=100&img=%2Flink%2Faaa4967b119942a8937fe482cfeacf72.aspx%26timestamp%3D1486723486506&commands=&contentLink=51_52

Server Error in '/' Application.
 
Could not find endpoint element with name 'ImageServiceClientEndPoint' and contract 'EPiServer.ImageLibrary.IImageService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.
 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
 
Exception Details: System.InvalidOperationException: Could not find endpoint element with name 'ImageServiceClientEndPoint' and contract 'EPiServer.ImageLibrary.IImageService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.
 
Source Error: 
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace: 
 
 
[InvalidOperationException: Could not find endpoint element with name 'ImageServiceClientEndPoint' and contract 'EPiServer.ImageLibrary.IImageService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.]
   System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName) +16312527
   System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName, Configuration configuration) +157
   System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address) +198
   System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress) +161
   EPiServer.ImageLibrary.ImageServiceClient.CreateChannelFactory() +109
   EPiServer.ImageLibrary.ImageServiceClient.Init() +84
   EPiServer.ImageLibrary.ImageServiceClient.RenderImage(Byte[] imageBuffer, IEnumerable`1 operations, String mimeType, Single zoomFactor, Int32 jpegQuality) +40
   EPiServer.UI.Edit.ImageEditor.RenderImage.ProcessRequest(HttpContext context) +944
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +508
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92
 
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1069.1