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

1 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.

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

Hi community,

 

Like the subject says, is compiling from the advanced settings UI equivalent to compile from the Workspace console utility using the "BuildWorkspace" operation ?

 

Thanks for this clarification.

Like 0

Like

1 comments
Best reply

Hi Jonathan,
 

The compiling from the advanced settings UI is equivalent to compile from the Workspace console utility using the "BuildWorkspace" operation.
 

Best regards,
​​​​​​​Bogdan

Hi Jonathan,
 

The compiling from the advanced settings UI is equivalent to compile from the Workspace console utility using the "BuildWorkspace" operation.
 

Best regards,
​​​​​​​Bogdan

Show all comments

Hi Community,

Is it recommended to "Compile All" items in configuration after package installation? Or a compile modified items is already enough? Why I am asking is that "Compile All" items is taking too much time to finish. 

Like 0

Like

1 comments

Dear Fulgen, 

The compilation is not required after the package installation. However, if you install packages via configuration section, I would recommend to compile the system afterwards. 

Show all comments

Hello

Very frequently we find that the Generate, compile, publish or Update operations from the Configuration manager take a long time to run ( > 30 mins). This happens across developers across projects. 

Sometimes it keeps running endlessly and we need to force abort. 

1. Are there any specific reasons why this might happen? Our hardware configurations are in line with what is recommended by Creatio for developer machines. So, I doubt if it is hardware related. 

2. How long is Generate, publish, compile or update generally expected to take? 

2. Could this be because of too many objects/schemas inside one package? If Yes, What is the recommended scale/volume of work that can go inside one package.

Like 0

Like

6 comments

Hello!

Compilation and source code generation depends on several parameters. 1st most significant parameter is connected to hardware. To ensure your hardware can provide enough resources for those action monitor server performance during compilation or source code generation. 
2nd parameter is amount of code that should be compiled/generated. OOB instance without customisations can be fully compiled in 5-10 minutes. More code you have more time it will take for system to compile.

Most important recommendation here is not to compile all - you should understand when your system needs to be compiled and what should be compiled. In general you can simply compile only modified items to reduce compilation time and generate/compile all only before updates/package installation. 

Best regards,
Angela

Angela Reyes,

To clarify, We only compile modified items and not compile all items. But still it takes a significant time. Your point regarding hardware does help. Thank you Angela.. 

Regarding my 3rd question, 
Is there a maximum number of objects or schemas that is recommended to be in a package? Beyond that number, Would you suggest creating a new package? (This is presuming that generation and compilation happens only on the selected package?)

M Shrikanth,

There is no maximum number of objects in each package. Amount of objects in package should only depend on your development process so that you could always tell which package contains certain functionality. 

Angela Reyes,

Thank you Angela. One follow up question.

It was recommended to us to have all the functionality in a single package, and not split into different packages. Would you have the same recommendation? Any reasons why?

M Shrikanth,

You can use several packages in case you have several different customisations that are not connected to each other and can be installed separately without each other. If all your changes are connected it is better to use 1 package. 

Angela Reyes,

Thank you Angela for your comments. They really help us!

Show all comments

I'm getting an error popup window on the first compilation for a new application. The error is states that 1 error occurred, and to view the application logs. However, none of the logs states that any error occurred. Has anyone had this problem before?

Like 1

Like

5 comments

Vladimir Sokolov,

Thanks Vladimir,

I found more detail in the "Build" log, and as you pointed out it was a dotnet cli error. I updated the framework and dotnet core and it worked correctly!

Thanks,
Morgan

I got the same error on my first compilation - I am unsure where to check the logs.  I followed the links above and installed but still getting the comp error.  Can some point me in the right direction please?

 

Darlene,

Logs are located in temp files. Usually it is windows -> temp -> bpmonline. There will be folder with IIS application name that stores 2 folders - application logs and IIS logs. You shoyld check both to find the source of this issue. 

Vladimir Sokolov,

 

Still i am facing compilation issue after updating .Net framework also.In log files still showing .Net cli error. i was cross checked my windows update as well as installed sdk and developer pack. kindly help me to fix these issue. Thanks in advance

 

Show all comments