1
'LicenseKey' is not a member of 'GleamTech.FileUltimate.FileManager'
Problem reported by Ben Cooper - April 6, 2016 at 7:18 AM
Not A Problem
Hi,
 
I tried to upgrade a site using FileUltimate v4.8.0 to v5.1.5 and got this error:
'LicenseKey' is not a member of 'GleamTech.FileUltimate.FileManager'
 
The .aspx page looks like this:
<%@ Register TagPrefix="GleamTech" Assembly="GleamTech.FileUltimate" Namespace="GleamTech.FileUltimate" %> 	

<!DOCTYPE html>

<html >
<head runat="server">
    <title>H Drive Plus</title>
</head>
<body>


	<asp:Label ID="lblMessage" runat="server" ForeColor="Red" Font-Bold="true"></asp:Label>
	<GleamTech:FileManager ID="fileManager" runat="server" />
	
    <form id="form1" runat="server">
    </form>
		
</body>
</html>
The .aspx.vb has the following imports and Page_Load event:
Imports GleamTech.FileUltimate
Imports System.DirectoryServices
Imports Intranet_Web_Controls.HelperClasses
Imports System.Net
Imports System.IO

...

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            fileManager.DisplayLanguage = "en"
            fileManager.LicenseKey = "[license key here]"
            fileManager.Width = Unit.Percentage(100)
            fileManager.Height = 600

            If Request.Browser.Browser = "Safari" Then
                fileManager.UploadMethods.Clear()
                fileManager.UploadMethods.Add(UploadMethod.Html4)
            End If



        End If
    End Sub
After copying over GleamTech.FileUltimate.dll to the bin folder, the site complained about not being able to find GleamTech.Core.  I then copied GleamTech.Core.dll into the bin folder.  After that I got the above error.  Any idea what I should try next?

1 Reply

Reply to Thread
1
Cem Alacayir Replied
April 6, 2016 at 7:27 AM
Employee Post
Hi Ben,
After v5.0, some API is changed, for example there is no more fileManager.LicenseKey property.
From now on, you should set the license key in one of these ways:
 
1. Insert following line into the Application_Start method of your Global.asax.vb:
 
//Set this property only if you have a valid license key, otherwise do not 
//set it so FileUltimate runs in trial mode.  
FileUltimateConfiguration.Current.LicenseKey = "QQJDJLJP34..."
2. Alternatively you can specify the configuration in <appSettings> tag of your Web.config.
 
<appSettings
  <add key="FileUltimate:LicenseKey" value="QQJDJLJP34..." /> 
</appSettings>
As you would notice, FileUltimate: prefix maps to FileUltimateConfiguration.Current
 
 
Also from now on, you need to add reference to both GleamTech.Core.dll and GleamTech.FileUltimate.dll found in "Bin" folder of FileUltimate-vX.X.X.X.zip package. Please see this updated KB article for more information (there is the explanation about the other DLLs):
 

Reply to Thread