# Error compiling a project with Elements

**URL:** https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682
**Category:** Oxygene
**Tags:** visual-studio, net, oxygene
**Created:** [December 28, 2022, 3:40pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682 "2022-12-28T15:40:42Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Anderson\_Gregorio](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@Anderson\_Gregorio](https://talk.remobjects.com/u/Anderson_Gregorio)
#### Post date: [December 28, 2022, 3:40pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/1 "2022-12-28T15:40:42Z")

</div>

Hi

We’re facing a problem compiling our project.

We`ve just installed the following version of Elements and Data abstract, some environments are ok, while others aren`t.

Erro (E221) Error while processing licenses: System.IO.FileNotFoundException: Não foi possível carregar arquivo ou assembly ‘RemObjects.Everwood.Live.Base, Version=4.7.0.883, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098’ ou uma de suas dependências. O sistema não pode encontrar o arquivo especificado.  
Nome do arquivo: ‘RemObjects.Everwood.Live.Base, Version=4.7.0.883, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098’  
em System.ComponentModel.LicenseManager.CreateWithContext(Type type, LicenseContext creationContext, Object args)  
em bj.a(Stream a, String b, String c, String d)

AVI: o log de associações de assembly está desativado.  
Para ativar o log de falhas de assembly, defina o valor do Registro [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) como 1.  
Observação: há alguma penalidade para o desempenho associada ao log de falha de associação de assembly.  
Para desativar esse recurso, remova o valor do Registro [HKLM\Software\Microsoft\Fusion!EnableLog]. dxserver C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\RemObjects Software\Elements\RemObjects.Elements.Echoes.targets 70

 ![image](https://talk.remobjects.com/uploads/default/original/3X/9/f/9fa7a31f390f109ceece0d5a359a310403aadfba.png)

What could we do to detect exactly the problem?

**System config**  
OS: Windows 10  
Visual Studio 2019 Version: 16.10.2  
RemObjects Data Abstract for Delphi, Server Edition - 10.0.0.1553.exe  
RemObjects Data Abstract for Water and Visual Studio, Server Edition - 10.0.0.1553  
RemObjects Elements with Water - 11.0.0.2785.exe

Thank you!

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [December 28, 2022, 6:12pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/3 "2022-12-28T18:12:11Z")

</div>

Can yu make sure the issue persists with the very latest versions of DA and Elements?

---

<div class="post-metadata">

### Author: ![Anderson\_Gregorio](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@Anderson\_Gregorio](https://talk.remobjects.com/u/Anderson_Gregorio)
#### Post date: [December 28, 2022, 6:35pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/4 "2022-12-28T18:35:54Z")

</div>

Hi

I don’t think is related with latest version, because most environments worked fine, just some are with this problem.

Thank you.

---

<div class="post-metadata">

### Author: ![Anderson\_Gregorio](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@Anderson\_Gregorio](https://talk.remobjects.com/u/Anderson_Gregorio)
#### Post date: [December 28, 2022, 6:37pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/5 "2022-12-28T18:37:10Z")

</div>

We have already reinstalled every package again

Is there any order needed to follow?

Thank you.

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 28, 2022, 6:39pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/6 "2022-12-28T18:39:11Z")

</div>

Hi,

try this order:

- Elements
- Data Abstract

Note: Data Abstract .1553 was created after Elements .2785

* * *

**Edit** try to uninstall all RemObjects products and install them from scratch.  
we don’t ship `RemObjects.Everwood.Live.Base.dll` since last year

---

<div class="post-metadata">

### Author: ![Anderson\_Gregorio](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@Anderson\_Gregorio](https://talk.remobjects.com/u/Anderson_Gregorio)
#### Post date: [December 28, 2022, 8:29pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/13 "2022-12-28T20:29:37Z")

</div>

Reinstalled everything from scratch

same error.

![image](https://talk.remobjects.com/uploads/default/original/3X/0/4/04d35a023c51a84759bee76c78ea4183b67b0602.png)

Following this order:

- Elements
- Data Abstract

Thank you,

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 28, 2022, 8:34pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/14 "2022-12-28T20:34:50Z")

</div>

Hi,

I think, you have installed Hydra 6.4 sometimes.  
Can you uninstall it or install modern version of Hydra, pls?

---

<div class="post-metadata">

### Author: ![Anderson\_Gregorio](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@Anderson\_Gregorio](https://talk.remobjects.com/u/Anderson_Gregorio)
#### Post date: [December 28, 2022, 8:49pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/15 "2022-12-28T20:49:38Z")

</div>

Hi

just Hydra?

Thank you!

---

<div class="post-metadata">

### Author: ![Anderson\_Gregorio](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@Anderson\_Gregorio](https://talk.remobjects.com/u/Anderson_Gregorio)
#### Post date: [December 28, 2022, 8:58pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/16 "2022-12-28T20:58:47Z")

</div>

Uninstalled just Hydra, the problem remain…

I’ve installed

1 - Elements  
2 - Data Abstract for .Net  
3 - Data Abstract for Delphi

![image](https://talk.remobjects.com/uploads/default/original/3X/0/d/0d85ace1542a23b32674b731c5fbfeefa92d5ace.png)

Obs: These are the version lastest version released when we started testing November the 3rd.

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 28, 2022, 9:07pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/17 "2022-12-28T21:07:42Z")

</div>

Hi,

odd. lets cleanup your pc.  
for this:

- uninstall Elements
- uninstall DataAbstract
- remove `C:\Program Files (x86)\RemObjects Software` folder
- uninstall all `RemObjects.*` dll from GAC
- also you can remove all `RemObjects.*` folders from these folders:
  - `C:\Windows\assembly\GAC_MSIL`
  - `C:\Windows\Microsoft.NET\assembly\GAC_MSIL`

* * *

- launch VS - it should be launched w/o any warnings

* * *

- install `Elements`
- install both `Data Abstract`

---

<div class="post-metadata">

### Author: ![Anderson\_Gregorio](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@Anderson\_Gregorio](https://talk.remobjects.com/u/Anderson_Gregorio)
#### Post date: [December 28, 2022, 9:19pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/19 "2022-12-28T21:19:00Z")

</div>

I’ll try thank you

---

<div class="post-metadata">

### Author: ![Anderson\_Gregorio](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@Anderson\_Gregorio](https://talk.remobjects.com/u/Anderson_Gregorio)
#### Post date: [December 28, 2022, 10:41pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/20 "2022-12-28T22:41:26Z")

</div>

Hi,

I’ve followed the instructions, removing every occurrence of RemObjects in GAC

But there is still some reference is missing:

![image](https://talk.remobjects.com/uploads/default/original/3X/0/1/01a724e4bd63fd09945fdadee17d70a02861c45b.png)

These are the new installed in GAC

 ![image](https://talk.remobjects.com/uploads/default/original/3X/f/8/f8c880360e5fd61dd744786c24561e426936f098.png)

Is there some other place do look for new missing references?

Thank you.

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 29, 2022, 10:12am UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/21 "2022-12-29T10:12:05Z")

</div>

Hi,

Check your `dxserver` project and `licenses.licx` in it - they shouldn’t contain 10.0.0.1495 version

finally you should remove hardcoded dependence to .1495 build.

---

<div class="post-metadata">

### Author: ![Anderson\_Gregorio](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@Anderson\_Gregorio](https://talk.remobjects.com/u/Anderson_Gregorio)
#### Post date: [December 29, 2022, 12:09pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/22 "2022-12-29T12:09:46Z")

</div>

Hi

The file licenses.licx keeps these versions

RemObjects.SDK.Server.MemorySessionManager, RemObjects.SDK.Server, Version=10.0.0.1495, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098  
RemObjects.DataAbstract.Server.ConnectionManager, RemObjects.DataAbstract.Server, Version=10.0.0.1495, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098  
RemObjects.SDK.Server.IpHttpServerChannel, RemObjects.SDK.Server, Version=10.0.0.1495, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098  
RemObjects.DataAbstract.Server.ODataSchemaDispatcher, RemObjects.DataAbstract.Server, Version=10.0.0.1495, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098  
RemObjects.DataAbstract.LocalDataAdapter, RemObjects.DataAbstract.Server

We must replace for the new one or there is a way to not bind to the version?

Is there a way to generate this file dinamically? Or just in the project creation?

Thank you.

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 29, 2022, 1:09pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/24 "2022-12-29T13:09:33Z")

</div>

Hi,

replace it with

```auto
RemObjects.SDK.Server.MemorySessionManager, RemObjects.SDK.Server
RemObjects.DataAbstract.Server.ConnectionManager, RemObjects.DataAbstract.Server
RemObjects.SDK.Server.IpHttpServerChannel, RemObjects.SDK.Server
RemObjects.DataAbstract.Server.ODataSchemaDispatcher, RemObjects.DataAbstract.Server
RemObjects.DataAbstract.LocalDataAdapter, RemObjects.DataAbstract.Server

```

---

<div class="post-metadata">

### Author: ![Anderson\_Gregorio](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@Anderson\_Gregorio](https://talk.remobjects.com/u/Anderson_Gregorio)
#### Post date: [December 29, 2022, 2:05pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/26 "2022-12-29T14:05:28Z")

</div>

Hi

It works fine, thank you for the help

---

<div class="post-metadata">

### Author: ![Anderson\_Gregorio](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@Anderson\_Gregorio](https://talk.remobjects.com/u/Anderson_Gregorio)
#### Post date: [December 29, 2022, 2:49pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/27 "2022-12-29T14:49:15Z")

</div>

Hi

In a enviroment appeared this error after clean instalation

```auto
3>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\RemObjects Software\Elements\RemObjects.Elements.Echoes.targets(53,3): error E253: Error while generating executable: System.NotSupportedException: System.String
3> em Mono.Cecil.SignatureWriter.WritePrimitiveValue(Object value)
3> em Mono.Cecil.SignatureWriter.WriteCustomAttributeValue(TypeReference type, Object value)
3> em Mono.Cecil.SignatureWriter.WriteCustomAttributeElement(TypeReference type, CustomAttributeArgument argument)
3> em Mono.Cecil.SignatureWriter.WriteCustomAttributeFixedArgument(TypeReference type, CustomAttributeArgument argument)
3> em Mono.Cecil.SignatureWriter.WriteCustomAttributeNamedArgument(Byte kind, CustomAttributeNamedArgument named_argument)
3> em Mono.Cecil.SignatureWriter.WriteCustomAttributeNamedArguments(Byte kind, Collection`1 named_arguments)
3> em Mono.Cecil.SignatureWriter.WriteICustomAttributeNamedArguments(ICustomAttribute attribute)
3> em Mono.Cecil.MetadataBuilder.GetCustomAttributeSignature(CustomAttribute attribute)
3> em Mono.Cecil.MetadataBuilder.AddCustomAttributes(ICustomAttributeProvider owner)
3> em Mono.Cecil.MetadataBuilder.AddMethod(MethodDefinition method)
3> em Mono.Cecil.MetadataBuilder.AddMethods(TypeDefinition type)
3> em Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type)
3> em Mono.Cecil.MetadataBuilder.AddTypes()
3> em Mono.Cecil.MetadataBuilder.BuildTypes()
3> em Mono.Cecil.MetadataBuilder.BuildModule()
3> em Mono.Cecil.MetadataBuilder.BuildMetadata()
3> em Mono.Cecil.ModuleWriter.Write(ModuleDefinition module, Disposable`1 stream, WriterParameters parameters)
3> em Mono.Cecil.ModuleWriter.WriteModule(ModuleDefinition module, Disposable`1 stream, WriterParameters parameters)
3> em Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters)
3> em E.b(Stream a)
3>Projeto de compilação pronto "dxserver.oxygene" -- FALHA.

```

What could I do to fix it?

I think is the same error:

> [@Error while compiling the project in Visual Studio](https://talk.remobjects.com/t/error-while-compiling-the-project-in-visual-studio/26735):
>
> Hi Recently, our project stopped working while compiling through Visual Studio 2022 with the Elements version RemObjects Elements with Water - 11.0.0.2705. Visual Studio Closes during compilation, generating event log: Aplicativo: devenv.exe Versão do Framework: v4.0.30319 Descrição: O processo foi terminado devido a uma exceção sem tratamento. Informações da Exceção: System.Runtime.InteropServices.COMException em Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread(System.String…

We have found this in GAC

Mono.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL

[ro\_assemblies.txt](https://talk.remobjects.com/uploads/short-url/hOwtGFCaJ7z2vu9hbCU19aqQae4.txt) (137.5 KB)

Thank you.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [December 29, 2022, 3:22pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/29 "2022-12-29T15:22:10Z")

</div>

This seems to be a separate error, and an actual compiler bug. could I get

(a) the full build log with :“Diagnostic” level? (easiest would be to build the project from the command line: “`ebuild dxserver.oxygene --debug`”

(b) the full project (via PM to support@ or mh@) that shows this error?

thanx!  
marc

---

<div class="post-metadata">

### Author: ![Anderson\_Gregorio](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@Anderson\_Gregorio](https://talk.remobjects.com/u/Anderson_Gregorio)
#### Post date: [December 29, 2022, 6:12pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/30 "2022-12-29T18:12:14Z")

</div>

I’ve sent a message in private

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [December 29, 2022, 6:23pm UTC](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682/31 "2022-12-29T18:23:46Z")

</div>

> [@Anderson\_Gregorio](#):
>
> I’ve sent a message in private

Thanx. I cannot reproduce the problem locally, but I also notice from the log that toner compilers is ancient:

> Version 11.0.0.2731 (develop) built on bajor, 20220415-141032. Commit e27166a.

can you update to latest and see if the issue persists? We fixed and changed _a lot_ since April.

[Next page](https://talk.remobjects.com/t/error-compiling-a-project-with-elements/27682.md?page=2)
