Calculation is not starting

Discussion created by nfilatov on Jul 29, 2011
Latest reply on Aug 3, 2011 by andreas



I can't to create ACE Calculation. With PI ACE Wizard i wrote that code:

Imports OSIsoft.PI.ACE
Imports System.Diagnostics

Public Class AceTestClass
    Inherits PIACENetClassModule
    '      Tag Name/VB Variable Name Correspondence Table
    ' Tag Name                                VB Variable Name
    ' ------------------------------------------------------------
    Public Overrides Sub ACECalculations()
        EventLog.WriteEntry("Event of ACE", "")
    End Sub

    Protected Overrides Sub InitializePIACEPoints()
    End Sub

    ' User-written module dependent initialization code
    Protected Overrides Sub ModuleDependentInitialization()
    End Sub

    ' User-written module dependent termination code
    Protected Overrides Sub ModuleDependentTermination()
    End Sub
End Class



But when I try to test this module with PIACENetWizard, I have error "Failed to create ACE Module: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)" in Visual Studio. So, if I set schedule of Calculation in PI ACE Manager and start calculution every 10 seconds there are no events from ACE module.


What am I doing wrong?