toms2866
June 21, 2007, 09:07:40
I'm struggling to get the server control working due to a licensing problem:
ASP.NET 2.0 app written in VB.NET using VS 2005
The ASP.NET app references a DLL (also written in VB.NET) that wraps the TX Text Server Control. The ASP.NET app never directly references the TX Text Server Control.
licenses.licx is in root of ASP.NET app
TX Text Control binaries in Bin folder inside ASP.NET root folder
Same licenses.licx is also in My Projects folder inside DLL's root folder
TX Text Control binaries in Bin folder inside DLL's root folder
licenses.licx contents: TXTextControl.ServerTextControl, TXTextControl, Version=12.0.400.500, Culture=neutral, PublicKeyToken=6b83fe9a75cfb638
At runtime, I get the following message:
System.ComponentModel.LicenseException: The following control could not be licensed: TXTextControl.ServerTextControl
at TXTextControl.TXServerLicenseProvider.GetLicense(L icenseContext context, Type type, Object instance, Boolean allowExceptions)
etc.
The error is thrown in the DLL at the following line of code:
Dim txDoc As New TXTextControl.ServerTextControl
In VS2005, I tried right-clicking the licenses.licx in the ASP.NET app's root and choosing "Build Runtime Licenses", but get the following error message:
c:\inetpub\wwwroot\xl\licenses.licx: Could not transform the licenses file into a binary resource. (1) : error LC0004 : Exception occurred creating type 'TXTextControl.ServerTextControl, ... (contents of licenses.licx)' System.DllNotFoundException: The Text Control kernel DLL file could not be found.
at ...
What am I doing wrong?
ASP.NET 2.0 app written in VB.NET using VS 2005
The ASP.NET app references a DLL (also written in VB.NET) that wraps the TX Text Server Control. The ASP.NET app never directly references the TX Text Server Control.
licenses.licx is in root of ASP.NET app
TX Text Control binaries in Bin folder inside ASP.NET root folder
Same licenses.licx is also in My Projects folder inside DLL's root folder
TX Text Control binaries in Bin folder inside DLL's root folder
licenses.licx contents: TXTextControl.ServerTextControl, TXTextControl, Version=12.0.400.500, Culture=neutral, PublicKeyToken=6b83fe9a75cfb638
At runtime, I get the following message:
System.ComponentModel.LicenseException: The following control could not be licensed: TXTextControl.ServerTextControl
at TXTextControl.TXServerLicenseProvider.GetLicense(L icenseContext context, Type type, Object instance, Boolean allowExceptions)
etc.
The error is thrown in the DLL at the following line of code:
Dim txDoc As New TXTextControl.ServerTextControl
In VS2005, I tried right-clicking the licenses.licx in the ASP.NET app's root and choosing "Build Runtime Licenses", but get the following error message:
c:\inetpub\wwwroot\xl\licenses.licx: Could not transform the licenses file into a binary resource. (1) : error LC0004 : Exception occurred creating type 'TXTextControl.ServerTextControl, ... (contents of licenses.licx)' System.DllNotFoundException: The Text Control kernel DLL file could not be found.
at ...
What am I doing wrong?