Forum Home › Forums › Understanding the Software › Using Formulas › error: Scripts is inaccessible due to its protection level
- This topic has 1 reply, 2 voices, and was last updated 11 months, 3 weeks ago by Mikhail.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
October 19, 2023 at 6:35 am #13526JWParticipant
Version: 6.1.5
I got the following error when uploading the project, not sure why-------------------------------------------------------------------------------- 2023-10-19 02:16:09 [JW-Y9000X][JW-Y9000X$][ACT] Server 6.1.1.1 started 2023-10-19 02:16:09 [JW-Y9000X][JW-Y9000X$][ACT] Storage FileStorage 6.1.0.0 loaded from file C:\Program Files\SCADA\ScadaServer\FileStorage.dll 2023-10-19 02:16:09 [JW-Y9000X][JW-Y9000X$][ACT] Start logic processing 2023-10-19 02:16:09 [JW-Y9000X][JW-Y9000X$][ACT] The configuration database has been read successfully 2023-10-19 02:16:09 [JW-Y9000X][JW-Y9000X$][INF] Number of active channels for archiving: 162 2023-10-19 02:16:09 [JW-Y9000X][JW-Y9000X$][INF] Number of active channels for sending commands: 176 2023-10-19 02:16:09 [JW-Y9000X][JW-Y9000X$][ACT] Compile the source code of scripts and formulas 2023-10-19 02:16:09 [JW-Y9000X][JW-Y9000X$][ACT] Added the following dependencies: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.23\netstandard.dll C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.23\System.ComponentModel.Primitives.dll C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.23\System.Console.dll C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.23\System.Diagnostics.Process.dll C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.23\System.Linq.dll C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.23\System.Private.CoreLib.dll C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.23\System.Runtime.dll C:\Program Files\SCADA\ScadaServer\ScadaCommon.dll C:\Program Files\SCADA\ScadaServer\ScadaServerEngine.dll 2023-10-19 02:16:10 [JW-Y9000X][JW-Y9000X$][ERR] Error compiling the source code of the scripts and formulas: (386,54): error CS0122: 'Scripts.DT()' is inaccessible due to its protection level (387,54): error CS0122: 'Scripts.DT()' is inaccessible due to its protection level (388,54): error CS0122: 'Scripts.DT()' is inaccessible due to its protection level (389,54): error CS0122: 'Scripts.DT()' is inaccessible due to its protection level (390,54): error CS0122: 'Scripts.DT()' is inaccessible due to its protection level (391,54): error CS0122: 'Scripts.DT()' is inaccessible due to its protection level (392,54): error CS0122: 'Scripts.DT()' is inaccessible due to its protection level (393,54): error CS0122: 'Scripts.DT()' is inaccessible due to its protection level Check the source code in C:\Program Files\SCADA\ScadaServer\Log\CalcEngine.cs 2023-10-19 02:16:10 [JW-Y9000X][JW-Y9000X$][ERR] Normal execution is impossible 2023-10-19 02:17:17 [JW-Y9000X][JW-Y9000X$][ACT] Server is stopped --------------------------------------------------------------------------------
the fomula is
double DT() { return Cnl/10; }
October 19, 2023 at 8:25 am #13527MikhailModeratorYou need
public double DT()...
User’s functions should be declared as public in v6. -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.