If your licence key file is stored in the Bin folder of the project several minutes after starting the project you may find that the 51Degrees.dat data file has been updated automatically to the latest V3 format data set. Look for the following lines in the log.txt file contained in the App_Data folder.
If your project does not automatically update because of firewall configurations, local security permissions, or download throttling on the 51Degrees data distributor you will need to login to the device data portal and download the data file manually.
Enter your licence key and a screen similar to the following will appear.
Download the Premium Binary V3 data file with the gz extension.
Unzip the file into the App_Data folder and ensure its file name matches the one provided in the 51Degrees.config file. For example; the following line in the 51Degrees.config file would require the file to be named 51Degrees.dat in the App_Data folder.
<detection enabled="true" autoUpdate="true" binaryFilePath="~/App_Data/51Degrees.dat" />
Restart the project and confirm Premium device data is being used by checking the /Mobile web page.
You should also see the following lines in the log file confirming the data source used when the application restarted.
2014-06-03T11:04:46.3451221Z - 7092 - Info - Creating stream provider from binary data file ‘XXX\App_Data\51Degrees.dat.b5769541-00eb-418a-82b2-c13b0e1d8033.tmp'.
2014-06-03T11:04:46.5132693Z - 7092 - Info - Created provider from binary data file 'XXX\App_Data\51Degrees.dat'.
Notice that a new file has been created in the App_Data folder with the extension tmp. Because V3 defaults to storing the device data on disk and no longer loading it into memory a temporary copy of the master data file is needed to ensure device detection is not compromised when the master data file is updated. These temporary files will be automatically removed when the data file changes or the application restarts.