Hi,
Our Organization is working on moving towards VAF, away from VBscript from within Admin. As part of this process I am testing an application that has one of our Event handlers in it and I am installing it on one of our test Vaults. I am seeing the following error when the event fires in M-Files.
Executing the "StartOperations" method of the application "KageInnovation.VAF.EventHandlers" failed.
The remote procedure call failed.
ExtensionManager_Legacy.cpp, 3185, Executing the "StartOperations" method of the application "KageInnovation.VAF.EventHandlers" failed. (0x80040120)
ExtObjectPlatform_Legacy.cpp, 140, Executing the "StartOperations" method of the application "KageInnovation.VAF.EventHandlers" failed. (0x80040120)
ExtObjectPlatform_Legacy.cpp, 1382, Executing the "StartOperations" method of the application "KageInnovation.VAF.EventHandlers" failed. (0x80040120)
ExtObjectPlatform_Legacy.cpp, 1916, Executing the "StartOperations" method of the application "KageInnovation.VAF.EventHandlers" failed. (0x80040120)
MCallInLoop.h, 535, Executing the "StartOperations" method of the application "KageInnovation.VAF.EventHandlers" failed. (0x80040120)
ExtObjectPlatform_Legacy.cpp, 2005, Executing the "StartOperations" method of the application "KageInnovation.VAF.EventHandlers" failed. (0x80040120)
ExtObjectPlatform_Legacy.cpp, 2147, Executing the "StartOperations" method of the application "KageInnovation.VAF.EventHandlers" failed. (0x80040120)
ExtObjectPlatform_Legacy.cpp, 2147, The remote procedure call failed. (0x800706BE)
(M-Files 25.2.14524.3 2025-03-04T18:56:18.286Z)
Code (Removed Specifics in the Event handler code):
using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Reflection.Emit; using System.Runtime.Remoting; using System.Text; using MFiles.VAF; using MFiles.VAF.Common; using MFilesAPI; using static MFiles.VAF.Placeholders.PlaceholderTemplateParser; using static System.Collections.Specialized.BitVector32; using System.Windows; namespace KageInnovation.VAF.EventHandlers { public partial class VaultApplication : VaultApplicationBase { [EventHandler(MFEventHandlerType.MFEventHandlerAfterCheckInChangesFinalize, ObjectType = "MFiles.ObjectType.Part Revision")] [EventHandler(MFEventHandlerType.MFEventHandlerBeforeCreateNewObjectFinalize, ObjectType = "MFiles.ObjectType.Part Revision")] public void NullToEmptyEventHandler(EventHandlerEnvironment env) { --Event Handler Logic Here } } }
Any Idea as to why we are seeing this error?