Bcl.Validation.Attributes.pas → can’t find unit “System.RegularExpressions”

Bonjour,

J’ai créé un nouveau projet application WEB + XData server avec l’assistant. Le server compile et fonctionne parfaitement. le client web ne compile pas, il ressort une erreur dans le fichier Bcl.Validation.Attributes.pas → can’t find unit “System.RegularExpressions”. Ce fichier fait partie de la solution TMS, je suis surpris qu’il ne compile pas. J’ai désinstallé complètement la solution TMS avec TMS smart setup et je l’ai complètement réinstallée. Cela na pas solutionné le problème.

ci-joint une copie d’écran, pouvez-vous m’aider?

cordialement,

Stéphane

Not all TMS BIZ features are supported in TMS Web Core, which is the case for the Bcl.Validation.Attributes. For more information about using XData with Web Core, please refere to this section in documentation:

Hi,

I followed the documentation instructions, compiled and installed the four packages indicated. The tms.biz.sphinx package fails to compile, giving the error "[Error] XData.Web.Response.pas(9): identifier not found "Variant"". I created a new web application using the TMS XData Web Application wizard, and when I try to compile the application created by the wizard, it also fails to compile, giving the error "[Error] XData.Web.Response.pas(9): identifier not found "Variant"".

look at the screenshot

The compilation error is in a TMS source file!

I need your help please

You have manually tweaked the installation but did it wrong, adding folders containing stub units to the Web Core library path.

I can't help you out with exact instructions because I don't know exactly what you did.

My recommendation is that you undo everything you done, uninstall everything, make sure your installation is clean with no leftovers from library path, Windows PATH, etc., and then do a fresh install using Smart Setup. That should be enough to have your Delphi set up with the correct folders and paths and installed packages.

I followed all your recommendations. I uninstalled all TMS components using Smart Setup. I removed all references to TMS from my directories and the Windows registry. I downloaded tmsdashboard.zip and tmssmartsetup.zip, which I extracted to D:\TMS on my D: drive.

I ran TMSDashboard.exe to completely reinstall the product (TMS ALL ACCESS). The installation logs indicate that it went smoothly. However, I still get compilation errors when I use an xData component in a Web Core application. The error is attached: [Erreur] MainForm.pas(7): can't find unit "XData.Web.Client"
In the menu, Options, TMS Web, Options, the library path is set to “$(TMSWebDir)\core source\*”. Is this sufficient?
The file indicated in the error is in a lower-level directory.

When I tested TMS with the trial libraries, I had no problems.

I don't know what to do anymore.

Stéphane

You should add
\source\core\web
to the TMS WEB Core library path.

See also this thread

Hi,
the path \source\core\web doesn't exist!

I checked the thread in the link, where it mentions a key in the Windows registry (HKEY_CURRENT_USER\Software\tmssoftware\TMS WEB Core\LibraryPaths). On my machine, the LibraryPaths value doesn't exist; instead, I find "Core Source," and it contains the following value: "$(TMSWebDir)\Core Source".
Do I need to add all the directories mentioned in the post?
Why isn't smartsetup initializing it?

Thank you for your help.

This support center interface deleted part of the URL
it should have been
[xdatainstallpath]\source\core\web

Thank you very much.
The compilation works fine after adding the directories in the TMS Web options.

Can Aurelius be used in a web application?
My XData server uses Aurelius to access my database data, but when I add my Entities.pas file to my web project, the compilation gets stuck on the following error: [Error] Aurelius.Mapping.Attributes.pas(9): can't find unit "Bcl.Validation.Attributes"
I added the following path: D:\TMS\tmssmartsetup\Products\tms.biz.aurelius\source in Tools > Options... > TMS Web > Library Path options. But the error persists.

Hi,
after reading the documentation, I understand how XDataServer, Aurelius, and WebCore work together.
Thanks again for your help.

1 Like

I have the same problem.

I reinstall every package still got the error.

Here the paths in tools/Options/TMS WEB/Optionnes

When build XDaataNorthwind.web

got error: [Error] Bcl.Validation.Attributes.pas(8): can't find unit "System.RegularExpressions"

Try with only the *\web folders added in your TMS WEB Core library path, i.e. only

\tmssoftware\TMS XData\Products\tms.biz.xdata\source\core\web

and remove all the others

Get [Error] NorthWindEntities.pas(23): can't find unit "Aurelius.Mapping.Attributes"

Please refer to:

It is the example Northwind provide by TMS so i hope all feature in the project are supported.

Which example are you referring to, exactly?
Nevertheless, not al TMS BIZ features are available in TMS Web Core applications.

The examples shows what can be used at Web Core side, it doesn't use Aurelius with Web Core. Aurelius is used server-side.