Settings in web.config

Besides the database settings (key Connstring and DataAccessComponent) there are some additional variables in web.config which you can use to configure the application to work as you want it to:



    <add key="BannerMediaDirectory"
             value="BannerMedia" />
    <add key="LogFileDirectory"
             value="Logs" />



    <add key="FileType_Image"
             value="JPG,JPEG,PNG,GIF" />
    <add key="FileType_Flash"
             value="SWF" />


    <add key="MinutesForCacheInvalidate"
             value="60" />



All these are pretty selfexplainatory. The MinutesForCacheInvalidate is however interesting. It was added to support clustered solutions and allows you to set a lower value for how long active banners will be stored in cache before being read again from the database. The cache does invalidate directly when you make changes to a campaign, however in a clustered solution only the server serving the administrator changing the campaign will be affected. So, therefore this setting was added - by setting the value to, say "5" it will take around 2.5 minutes (max 5) before all servers in the cluster has gotten the recently updated campaign information.

Changing to medium trust

At the end of the web.config file there is a trust level key. Change it to medium:



<trust level="Medium"/>