Configure the blob path in a load balanced environment

Vote:
 

Hi

blobs automatically placed in AppData folder, but how can I use a commen share in a load balanced environment?

Where do I change the path?

Since episerverframework and episerver config files are gone, I guess the configuration is in web.config... but here is only the AppData basePath="", I guess changing this would affect aother things..?

Please help :)

Fredrik

#112766
Nov 05, 2014 11:36
Vote:
 

Forgot to mention, this is EPi 7.5 and version 7.14.2

#112767
Nov 05, 2014 11:48
Vote:
 

In EPiServerFramework.config, you should see this:

  <appData basePath="<somepath>" />

This can be shared in load-balancing environment.

Regards.

/Q

#112772
Nov 05, 2014 12:05
Vote:
 

You can specify the standard blob provider (FileBlobProvider) path liks this:

  <episerver.framework>
    <blob defaultProvider="fileShare">
      <providers>
        <add name="fileShare" path="\\dbserver\blobs" type="EPiServer.Framework.Blobs.FileBlobProvider, EPiServer.Framework" />
      </providers>
    </blob>
#112773
Nov 05, 2014 12:10
Vote:
 

Tried that, but

<blob defaultProvider="fileShare">



is not valid ...(Unrecognized attribute 'defaultprovider')


And no, the EpiserverFramework file is gone... or should I make one just for this purpose?

 

#112774
Edited, Nov 05, 2014 12:12
Vote:
 

It's the 

<episerver.framework>

section which matters. You can change the AppData basePath in web.config. 

#112776
Nov 05, 2014 12:14
Vote:
 

Freguz, 

The episerver.framework file has been moved into the web.config file, in a <episerver.framework> section. There you will also find <appData basePath>.

Example:

  <configuration>
    .... lots more settings
    <episerver.framework>
      <blob defaultProvider="fileShare">
        <providers>
          <add name="fileShare" path="\\dbserver\blobs" type="EPiServer.Framework.Blobs.FileBlobProvider, EPiServer.Framework" />
        </providers>
      </blob>
      <appData basePath="App_Data" />
      ... more settings
    </episerver.framework>
    ...
  </configuration>
#112777
Edited, Nov 05, 2014 12:32
Vote:
 

And remember that config settings are case sensitive, so make sure you have a capital P in defaultProvider

#112778
Nov 05, 2014 12:35
Vote:
 

Thanks all! It works fine now, and thanks Per it is case sensitive I had the lowercase p :-/

/Fredrik

#112794
Nov 05, 2014 15:03
Vote:
 

One thing you can do in a load balanced enviroment is to have for example DFS to sync your local AppData folder.

#112803
Nov 05, 2014 16:26
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.