Не стартует KPModBus.dll

Просмотр 3 сообщений - с 1 по 3 (из 3 всего)
  • Автор
    Сообщения
  • #16909
    timon84
    Участник

    Здравствуйте.
    Такая проблема при обновлении системы на удаленном компе, при выгрузке проекта через Администратор, перестает работать МодБас. При компиляции того же проекта на своем компьютере и перебросе всей папки SCADA — все работает (иногда появляется такая же проблема). На локальном компьютере вообще проблем нет.

    --------------------------------------------------------------------------------
    2020-08-08 15:31:10 <DESKTOP-UPK3M4C><SYSTEM><ACT> ScadaCommService 5.2.1.1 is started
    2020-08-08 15:31:11 <DESKTOP-UPK3M4C><SYSTEM><ACT> Load device library: KpModbus.dll
    2020-08-08 15:31:11 <DESKTOP-UPK3M4C><SYSTEM><EXC> Error creating communication line 1:
    Scada.ScadaException: Error getting device logic type from the library KpModbus.dll: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information. ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
       at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
       at System.Reflection.Assembly.LoadFile(String path)
       at Scada.Comm.Devices.KPFactory.GetKPLogic(String kpDir, String dllName, Int32 kpNum)
       --- End of inner exception stack trace ---
       at Scada.Comm.Devices.KPFactory.GetKPLogic(String kpDir, String dllName, Int32 kpNum)
       at Scada.Comm.Engine.CommLine.CreateKPLogic(Int32 kpNum, String dllName, AppDirs appDirs, Dictionary

    2 kpTypes, Log appLog)
    at Scada.Comm.Engine.CommLine.Create(CommLine commLineSett, CommonParams commonParams, AppDirs appDirs, PassCmdDelegate passCmd, Dictionary`2 kpTypes, Log appLog)
    at Scada.Comm.Engine.Manager.CreateCommLine(CommLine commLineSett)
    2020-08-08 15:31:11 <DESKTOP-UPK3M4C><SYSTEM><ACT> Load device library: KpModbus.dll
    2020-08-08 15:31:11 <DESKTOP-UPK3M4C><SYSTEM><EXC> Error creating communication line 2:
    Scada.ScadaException: Error getting device logic type from the library KpModbus.dll: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information. —> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
    at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
    at System.Reflection.Assembly.LoadFile(String path)
    at Scada.Comm.Devices.KPFactory.GetKPLogic(String kpDir, String dllName, Int32 kpNum)
    — End of inner exception stack trace —
    at Scada.Comm.Devices.KPFactory.GetKPLogic(String kpDir, String dllName, Int32 kpNum)
    at Scada.Comm.Engine.CommLine.CreateKPLogic(Int32 kpNum, String dllName, AppDirs appDirs, Dictionary`2 kpTypes, Log appLog)
    at Scada.Comm.Engine.CommLine.Create(CommLine commLineSett, CommonParams commonParams, AppDirs appDirs, PassCmdDelegate passCmd, Dictionary`2 kpTypes, Log appLog)
    at Scada.Comm.Engine.Manager.CreateCommLine(CommLine commLineSett)
    2020-08-08 15:31:11 <DESKTOP-UPK3M4C><SYSTEM><ACT> Load device library: KpModbus.dll
    2020-08-08 15:31:11 <DESKTOP-UPK3M4C><SYSTEM><EXC> Error creating communication line 3:
    Scada.ScadaException: Error getting device logic type from the library KpModbus.dll: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information. —> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
    at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
    at System.Reflection.Assembly.LoadFile(String path)
    at Scada.Comm.Devices.KPFactory.GetKPLogic(String kpDir, String dllName, Int32 kpNum)
    — End of inner exception stack trace —
    at Scada.Comm.Devices.KPFactory.GetKPLogic(String kpDir, String dllName, Int32 kpNum)
    at Scada.Comm.Engine.CommLine.CreateKPLogic(Int32 kpNum, String dllName, AppDirs appDirs, Dictionary`2 kpTypes, Log appLog)
    at Scada.Comm.Engine.CommLine.Create(CommLine commLineSett, CommonParams commonParams, AppDirs appDirs, PassCmdDelegate passCmd, Dictionary`2 kpTypes, Log appLog)
    at Scada.Comm.Engine.Manager.CreateCommLine(CommLine commLineSett)
    2020-08-08 15:31:11 <DESKTOP-UPK3M4C><SYSTEM><ERR> No active communication lines
    2020-08-08 15:31:11 <DESKTOP-UPK3M4C><SYSTEM><ERR> Normal program execution is impossible`

    #16910
    timon84
    Участник

    Решил. Нужно было «унлочить» длл-ки.

    За лог вне кода, прошу прощения. Сразу не заметил, а теперь не могу отредактировать.

    #16912
    Mikhail
    Модератор

    Добрый день!
    Хорошо, что проблема решилась.

    Ошибка ниже обычно означает, что необходимо разблокировать DLL:
    An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch.

Просмотр 3 сообщений - с 1 по 3 (из 3 всего)
  • Вы должны авторизироваться для ответа в этой теме.