Media selection form control cannot show images

Idam Adiguna asked on October 2, 2020 10:27

Recently I have upgraded our Kentico instance from v10 to v11. Then we found that media selection form control cannot show any images. Meanwhile, if I check the images via Media Library, those images are available and can be displayed correctly. However, I found that from the media libraries, the URL to show the image a bit different with the one from media Selection. For instances:

  • Media Library: /getmedia/1567b7dc-00a0-4ad5-a938-0d36fe94382d/logo_australia (image is successfully displayed)
  • Media Selection Form Control: /getmedia/1567b7dc-00a0-4ad5-a938-0d36fe94382d/logo_australia.png?ext=.png (image is not successfully displayed)

Any assistance would be appreciated.

Thank you in advance.

Correct Answer

Zoltán Jalsovszky answered on October 2, 2020 13:57

This can happen if the runAllManagedModulesForAllRequests="true" attribute was removed during the upgrade process from the web.config file. Can you please make sure that this property still there?

<system.webServer>
  ...
  <modules runAllManagedModulesForAllRequests="true">
    <remove name="WebDAVModule" />
    <remove name="XHtmlModule" />
    <remove name="CMSApplicationModule" />
    ...
  </modules>
...
</system.webServer>
0 votesVote for this answer Unmark Correct answer

Recent Answers


Idam Adiguna answered on October 2, 2020 15:10

This actually solves the issue. Not sure why the Kentico Upgrade Tool remove that attribute if it will break the Media Selection Form Control behavior. Any explanation will be appreciated.

Thank you in advance.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.