Question

Hi, 

I have a mysterious bug on my local installation. When I compile, I get an "Access is denied" error. I tried all sort of things and I'm out of ideas. Does anyone had this problem? How did you fix it?

 

Thanks

 

Like 0

Like

1 comments

Hello, 

You do not have access to the configuration folders.


At the IIS level, please ensure that the user under which IIS is running has access to all the necessary folders.

site\Terrasoft.WebApp\conf
site\Terrasoft.WebApp\Terrasoft.Configuration\Pkg.

Regards, 
Orkhan

Show all comments

Hello,

 

I am trying running into a problem in my instance where I'm encountering a problem when I publish and compile where I receive a message saying that "One or more errors occurred. Sequence contains more than one matching element"

 

I am unclear as to what this message could be referring to. There error is unclear and I'm unsure as to how to proceed without more information. Has anybody encountered this problem before?

Like 0

Like

2 comments

If it's a compilation error, maybe there is more details in the Compilation errors? In the lookups section, add the "Compilation errors" object to view the contents.

Ryan

Hello Kevin

In my case, the problem was caused by a duplicate lookup object: deleting the duplicate solved the problem.

Show all comments

Hi All,

I have two instances of Creatio and they are both fail to compile.

 

Old Instance 

New Instance 

I do have the c:\windows\system32\inetsrv\NuGet\Migrations folder created.  

 

Both logs show a variegation of the below error messages, 6 in the old and 12 in the new one.

 

2024-05-29 15:36:07,813 [99] INFO IIS APPPOOL\Studio_Assignment Build CaptureOutput - C:\Program Files\dotnet\sdk\8.0.100\NuGet.targets(156,5): error :   No such host is known. (api.nuget.org:443) [C:\Creatio\Studio_Softkey_MSSQL_assinment\Terrasoft.WebApp\Terrasoft.Configuration\Terrasoft.Configuration.ODataEntities.csproj]
2024-05-29 15:36:07,813 [99] INFO IIS APPPOOL\Studio_Assignment Build CaptureOutput - C:\Program Files\dotnet\sdk\8.0.100\NuGet.targets(156,5): error :   No such host is known. [C:\Creatio\Studio_Softkey_MSSQL_assinment\Terrasoft.WebApp\Terrasoft.Configuration\Terrasoft.Configuration.ODataEntities.csproj]

 

I installed sdk\8.0.100 but the problem persists.

 

While looking at the documentation i see that sdk\8.0.100 is not a requirment so I'm a bit confused as to why the logs show this error message. 

 

The old version worked up until yesterday, not sure what changed.

Any help is much appreciated,

Thanks,

Paddy 

 

 

File attachments
Like 1

Like

2 comments
Best reply

It’s working now (the next day), both compile. 

 

My network was filtering some Microsoft traffic, after I removed the network restriction it worked as expected. 

It’s working now (the next day), both compile. 

 

My network was filtering some Microsoft traffic, after I removed the network restriction it worked as expected. 

Hello,
 

We are glad to hear that you managed to solve the compilation issues.

Based on the errors, the dotnet components lacked the necessary files for the application to work correctly and an attempt was made to get the necessary files from the NuGet repository, but since there was no full access to the repository via the Internet, this error occurred.

Show all comments

Hello team, 

While compiling i get the following error

2023-02-28 00:25:54,747 [75] ERROR IIS APPPOOL\test_site Build BuildInternal - An error occured while running dotnet cli

System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified

   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)

   at Terrasoft.Core.Compilation.ProjectBuilder.BuildInternal(String projectFilePath, String tempPath, BuildCommandParameters parameters).

 

I have already tried the suggestion in this thread : https://community.creatio.com/questions/buildcompile-error

and still keep getting the same error

Sasori

Like 0

Like

3 comments

Sasori Oshigaki



Can you please share the complete error captured in log file?

Hi Bhoobalan Palanivelu,

The one mentioned is the complete error in the BuildLog file

Regards

Make sure the IIS AppPool user has full write access to CreatioWebroot\Terrasoft.WebApp\Configuration

Ryan

Show all comments

Hi there, 

 

I have made a customisation to the "Opportunity closure" process by adding in 2 additional elements (see below, nothing fancy). 

When I save a new version of the process and compile, I get a host of errors:

 

 

Can someone help me please? 

Like 0

Like

2 comments
Best reply

Hello,

 

This issue might be connected to how packages are saved in new versions.

Please try doing the following:

1. Run full code generation

2. In the properties of the package that is mentioned in the error, uncheck the box "Compile into separate assembly"

3. Run the full compilation again.



That the error should be gone after that.

Hello,

 

This issue might be connected to how packages are saved in new versions.

Please try doing the following:

1. Run full code generation

2. In the properties of the package that is mentioned in the error, uncheck the box "Compile into separate assembly"

3. Run the full compilation again.



That the error should be gone after that.

Hi, thank you this worked!

Show all comments

Hi,

 

I was trying to create Assemble Package and created one c# file which has dependencies on NewtonsoftJSON dll. When I tried to publish it says it required dll (attached reference). If we import the DLL into the current package it is working as expected but as per my understanding, we need to add the Assembly package dependencies on [Package name].csproj file.

 

I could see below code already presents there,



        

            False

        

        

            False

        

    

 

which means should we need to create any folder with Assemblies or we manually need to import all the package dependencies through import?

 

Thanks,

Altaf Hussian M

 

Like 0

Like

1 comments

Hi Altaf Hussian,



If it’s a regular package you can use the Newtonsoft.Json core library, but for the assembly package, the required DLL must be added to the package explicitly.



The Assembly package is like an external cs project.

If you want to use an external library like Newtonsoft.Json.dll in your project - you have to specify it as a reference for your project (using) by adding that dll to the package.



The same can be achieved by using the Terrasoft core class without adding any explicit dll reference into the package as below,

Example of the code:

using CommonJson = Terrasoft.Common.Json;
string orderItemsInput = CommonJson.Json.Serialize("YourObject");
string orderItemsInput = Terrasoft.Common.Json.Json.Serialize("yourObject");



Terrasoft.Common.Json

Serialize Polymorphism

 

 

BR,

Bhoobalan Palanivelu.

Show all comments

Hello team,

What is the difference between Compile all and Generate Source Code for all schemas? 

Is there any significant difference between the two? When are the best scenarios to use each of them?

Like 0

Like

2 comments
Best reply
Full generation is needed to build links between 
configuration items. Items can be objects and schemas or 
links between packages and their dependencies.
Full generation links them.

Compilation, in addition to its main purpose also generates
source files along the /src path which are necessary when 
working with no-code elements and allow you to create an 
instance between an object and a table in the DB.
Full generation is needed to build links between 
configuration items. Items can be objects and schemas or 
links between packages and their dependencies.
Full generation links them.

Compilation, in addition to its main purpose also generates
source files along the /src path which are necessary when 
working with no-code elements and allow you to create an 
instance between an object and a table in the DB.

Владислав Киселевич,

Thank you !

Show all comments

Hello community,



After successfully importing my custom package from file system, I tried to compile it and I got the following error:

 

After checking the Build.log I found the following error:

2022-02-01 03:44:23,013 [122] INFO IIS APPPOOL\Creatio Build BuildConfigurationProjects - WorkspaceCompiler.Build started at 00:00:09.0206194

2022-02-01 03:44:23,013 [122] INFO IIS APPPOOL\Creatio Build SetCustomProperties - UseSourceCodeSchemaGenerator = True

2022-02-01 03:44:23,013 [122] INFO IIS APPPOOL\Creatio Build SetCustomProperties - OldUI = False

2022-02-01 03:44:23,013 [122] INFO IIS APPPOOL\Creatio Build SetCustomProperties - NetStandardCompatibilityMode = True

2022-02-01 03:44:23,653 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Core

2022-02-01 03:44:23,653 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - Copyright (C) Microsoft Corporation. All rights reserved.

2022-02-01 03:44:24,325 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput -   Determining projects to restore...

2022-02-01 03:45:00,886 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets(128,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\inetpub\wwwroot\Creatio\Terrasoft.WebApp\Terrasoft.Configuration\Pkg\FzLoanOriginationIntegration\Files\FzLoanOriginationIntegration.csproj]

2022-02-01 03:45:00,886 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets(128,5): error :   No such host is known. [C:\inetpub\wwwroot\Creatio\Terrasoft.WebApp\Terrasoft.Configuration\Pkg\FzLoanOriginationIntegration\Files\FzLoanOriginationIntegration.csproj]

2022-02-01 03:45:00,917 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - Build FAILED.

2022-02-01 03:45:00,917 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets(128,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\inetpub\wwwroot\Creatio\Terrasoft.WebApp\Terrasoft.Configuration\Pkg\FzLoanOriginationIntegration\Files\FzLoanOriginationIntegration.csproj]

2022-02-01 03:45:00,933 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets(128,5): error :   No such host is known. [C:\inetpub\wwwroot\Creatio\Terrasoft.WebApp\Terrasoft.Configuration\Pkg\FzLoanOriginationIntegration\Files\FzLoanOriginationIntegration.csproj]

2022-02-01 03:45:00,933 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput -     0 Warning(s)

2022-02-01 03:45:00,933 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput -     1 Error(s)

2022-02-01 03:45:00,933 [8] INFO IIS APPPOOL\Creatio Build CaptureOutput - Time Elapsed 00:00:37.16

 

Can someone explain why is this error happening, because I am not using any nuget library on my package and it is .Net framework version not .Net core. 

 

Thank you

Like 0

Like

2 comments

Hi Erald, 

this problems happens because .net Core SDK 2.2 is not installed in the server. Please try downloading it from here (please note that you don't need to delete the .net Core SDK 3.1 which is already installed) https://dotnet.microsoft.com/en-us/download/dotnet/2.2 and let us know if the problem persists. Once installed please restart the server and try compiling the app again.

developer,

 

We see that you have created a separate post (https://community.creatio.com/questions/problem-while-compiling-packages) and provided more details in it, we will work on your question there.

Show all comments

Hi Community,

 

While Compile All Items getting Access to the path 'web. config' is denied error.

image

Can you please help us how to resolve this issue,

Thanks in Advance.

 

Regards,

Mansoor

Like 0

Like

6 comments

Hello, 

 

Could you please re-attach the screenshot or provide us with the text of the error message, so we could assist you with this particular request?

Thank you in advance!

Best regards,

Anastasiia

Anastasiia Zhuravel,

 

Hi Anastasiia,

getting below error while doing Compile All Items

 

1. Error

Access to the path '_FileContentBootstraps.js' is denied.

2. Error

attempt to write a readonly database

attempt to write a readonly database

 

Regards,

Mansoor

Mansoor Basha,

 

Hello, 

 

Thank you for clarifying!

In order to resolve the issue, please double-check if the user under which this compilation is initiated has the corresponding access rights to the folder with an instance. 

Also, errors "attempt to write a readonly database" indicate that the user specified in ConnectionString.conf for connecting to DB doesn't have access to the record.

Additionally, I would suggest to check the access rights for the "C:\Windows\temp\" folder (if there is no access, please grand it accordingly) and check if .NET Framework is installed on the web-server. 

 

Once done, the compilation issue should not occur again. 

Best regards, 

Anastasiia

 

 

 

Hi Anastasiia Zhuravel,

 

 

Thank you for the reply,

Reg the access rights for users, could you pls provide us information on how and where we can check?

 

Error "Attempt to write a read-only database" - we have created the user and provided access to DB, just the same way we generally set up for all other instances but we are facing issues only in this.

Kindly help us to solve this.

 

Also, we have checked all the access-related things and the .Net framework. We have all things in place without any issues.

 

Regards,

Mansoor

Mansoor Basha,



The IIS user should have access rights to the root folder of the Creatio application. Please ensure that folder has the privilege.

Hi Bhoobalan Palanivelu,

 

Thank you for your response,

Now I'm able to Compile All Items Successfully.

 

Regards,

Mansoor

 

Show all comments

I created a custom package working in file system mode on my PC.

The package is set to be "Compiled into a separate assembly".

When I compile it (selecting "Compile" in the dropdown menu near the package name and selecting "Compile all" in the Actions button) I see a popup error reporting syntax errors in all the Client modules of the package (see image below).

Creatio shouldn't compile Client modules since they are Javascript and not C# (the errors are syntax errors related to C# language).

I also "Generate for all schemas".. I tried almost everything without success.

The package works fine, even exported and installed in cloud production environment, but I cannot compile it in my development environment.

Why does Creatio try to compile in C# the Client modules?

 

 

Like 0

Like

0 comments
Show all comments