When using the VDF, there are some settings that you need to provide to enable full functionality. The VDF will still operate normally, but features will be missing if you do not provide all the settings. What follows is a summary of which assemblies and services contain the settings you need to supply. These settings affect the VDF globally and are not for any specific workflow.
ApplicationConfiguration Service: This service contains a number of configuration options that help integrate the VDF into your application.
LocalFileLocation Service: This service computes the paths where configuration files are stored by the VDF.
ConectionManager Service: This service helps handle all connections to a vault server. It provides utilities for checking what products the server supports and what products your application requires.
SetCulture(System.Globalization.CultureInfo info): This will set the culture that this assembly and all its dependencies will use when returing resources. Threads are created using the culture of the operating system by default, so if your culture is different you must call this function to get properly translated resources. This method exists in all the static Library classes in the VDF if you are not using all 4 DLLs.
app.config
To reduce memory usage and improve performance for file transfers, the .NET app.config file for your application consuming the VDF needs to be modified. Find or create the <configSections> portion and add the following line:
<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Then, add the following somewhere in the <configuration> section:
<microsoft.web.services3> <messaging> <maxMessageLength value="51200"> </maxMessageLength> <mtom clientMode="On"/> </messaging> <security> <!-- Specifies the time buffer used by WSE to determine when a SOAP message is valid. set to the max of 24hr in seconds --> <timeToleranceInSeconds value="86400"/> </security> </microsoft.web.services3>