Unit XData.Web.Client not found

Hi,

XData.Web.Client unit can't be found in a WebCore app. I have uninstalled and re-installed XData using TMS Smart Setup GUI but no difference. Only library path is C:\Pair\TMS Setup\Products\tms.biz.xdata\packages\d12\Win32\Release, I don't know when this started happening as I haven't compiled my app in a while. I get the same error with any XData Web Demo.

What is strange is that code completion on entering XData.Web.Client Works!

Any help greatly appreciated.

Thanks,

Ken

In Web Core library path options (Web Core, not Delphi) you should have the path where XData.Web.Client.pas unit is located.

Note that there are two XData.Web.Client.pas files, one in <xdata>\source\core, the other in <xdata>\source\core\web. It's the latter one that should be in Web Core library path, the former should be in regular Delphi library path.

However, Smart Setup should properly set such paths accordingly. Can you please uninstall XData, check the library path values (for both Delphi and Web Core), reinstall again, and then check if the paths were added to both configurations.

Then check if the compilation is working. If still failing, please send detailed information about the procedure described and also please send the logs.zip file.

Thanks Wagner. I only have one entry in Web Core library path:

$(TMSWebDir)\Core Source\*

What is the best approach to rebuilding this?

You can go to command-line and run the following command from your Smart Setup folder:

tms build tms.biz.xdata -full

Then check if it works, if not send the logs.zip file ideally before running any other command or doing any other operation.

I get past XData.Web.Client not found but now Bcl.Json.Attributes not found. I have sent the zip to support.

Have you had a chance to look at the logs i sent via email?

Hi Ken,

What value do you have in your registry key

HKEY_CURRENT_USER\Software\tmssoftware\TMS WEB Core\LibraryPaths?

C:\Pair\TMS Setup\Products\tms.biz.bcl\source\core\common;
C:\Pair\TMS Setup\Products\tms.biz.bcl\source;
C:\Pair\TMS Setup\Products\tms.biz.sparkle\source\core\common;
C:\Pair\TMS Setup\Products\tms.biz.sparkle\source;
C:\Pair\TMS Setup\Products\tms.biz.xdata\source\core\common;
C:\Pair\TMS Setup\Products\tms.biz.xdata\source\core\web;
C:\Pair\TMS Setup\Products\tms.biz.xdata\source;
C:\Pair\TMS Setup\Products\tms.biz.sphinx\source\core\common;
C:\Pair\TMS Setup\Products\tms.biz.sphinx\source\core\web;
C:\Pair\TMS Setup\Products\tms.biz.sphinx\source;
C:\Pair\TMS Setup\Products\tms.fnc.core;
C:\Pair\TMS Setup\Products\tms.fnc.cloudpack;
C:\Pair\TMS Setup\Products\tms.fnc.uipack;
C:\Pair\TMS Setup\Products\tms.fnc.cloudpackresteditor;
C:\Pair\TMS Setup\Products\tms.fnc.maps;
C:\Pair\TMS Setup\Products\tms.fnc.websocket;
C:\Pair\TMS Setup\Products\tms.fnc.wxpack

Can you please then clarify this (maybe with a screenshot)?

Is this in project options, or IDE options?

IDE Options.

Are you running Delphi IDE under the same Windows users that you used to check the registry key?

Also are you running Smart Setup with the same Windows user you are running Delphi IDE?

Maybe some of those operations (registry reading, Smart Setup, Delphi) is running in an elevated mode (admin) and thus they are different Windows users?

There is only one user account.

HKEY_CURRENT_USER\Software\tmssoftware\TMS WEB Core\LibraryPaths is where the lib path is stored.What you have in this registry should be shown in the IDE under Tools, Options, TMS WEB, Library path and what you enter there should be saved to this registry key.
I can only assume you run the IDE with a different Windows user account (perhaps you run it as admin) and then it looks in the registry under the admin reg. key

I do run Delphi as administrator and I always have. Is that why I get this line in the log for Aurelius and most other products? What should I do?

[INFO ] [2025-05-24 18:48:27.358] Skipping TMS Aurelius 5.21. Ignored in command line or the config file

This is a completely different question and problem.
First, have you solved the library path issue?

Second, no, the Aurelius skipping has nothing to do with admin rights. Probably it's just the command-line used that explicitly asked to install a set of products that doesn't include Aurelius. In this case send the log file for better analysis, but this is a completely different subject.

I have resolved it by appending the Web Core library path from the registry to the TMS Web>Options>Library Path in the IDE>Tools>Options. Not sure why they are out of sync!