Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bhushan 5 posts 95 karma points
    19 days ago
    Bhushan
    0

    Umbraco 13.4.1 and media folder location

    Hi,

    In our development environment, we are using default media folder location.

    But for Production/Live environment, we have two servers both are using same shared sql server database for umbraco. But for media, when we try to use one common shared location "//networkshare/media", it throws following an exception

     An error occurred while starting the application. DirectoryNotFoundException: \\networkshare\media\ Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(string root, ExclusionFilters filters)
    

    We have set this media folder path in appsettings.json file as,

    "Umbraco": {
    "CMS": {
      "Global": {
       "UmbracoMediaPhysicalRootPath": "//networkshare/media"
      }}}
    

    What we are doing wrong ?

    Kindly suggest solution for this problem.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    16 days ago
    Huw Reddick
    0

    cany you map the share to a drive or local folder maybe?

  • Bhushan 5 posts 95 karma points
    16 days ago
    Bhushan
    0

    For local folder, it is working fine.

    But our requirement is that, we have two server in load balancers which are using common SQL server database for umbraco. and we want to have both server access common share folder for media files.

  • Ayo Adesina 445 posts 1059 karma points
    16 days ago
    Ayo Adesina
    0

    Have you considered configuring your application to use Azure blob storage?

  • Bhushan 5 posts 95 karma points
    1 week ago
    Bhushan
    100

    Hello All,

    Thanks for your suggestions.

    But shared drive location for media file storage which we are trying are working properly now, just we need to give proper network access permissions to the IIS Application Pool.

    Thank You

Please Sign in or register to post replies

Write your reply to:

Draft