PDA

View Full Version : licx issue in asp.net with dll


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?

toms2866
June 21, 2007, 15:00:17
As a follow-up...I can't even properly add the control to the Toolbox. I browse for the TXTextControl.dll file and it shows up as it should in the Toolbox. But when I drag the control to a web form, I get the following message:

Failed to create component 'ServerTextControl'. The error message follows:
'System.DllNotFoundException: The Text Control kernel DLL file could not be found.
at TXTextControl.TXLibraryHelper..ctor()
at TXTextControl.ServerTextControl..ctor()

Björn Meyer
June 21, 2007, 17:00:03
Just a quick question: Do you own a license of TX Text Control .NET Server 12.0?

toms2866
August 7, 2007, 23:30:54
Just a quick question: Do you own a license of TX Text Control .NET Server 12.0?

Yes.

Installing 13.0 Trial appears to fix problem (but now am getting a fatal error in IE when closing window after displaying a PDF, but that's another problem...), but I would prefer to make it work with 12.0 (since I don't own full license to 13.0).

Björn Meyer
August 8, 2007, 09:50:12
Does your serial number for version 12.0 starts with "DA-"?

toms2866
August 21, 2007, 23:43:37
Does your serial number for version 12.0 starts with "DA-"?

Yes it does.