Skip to main content

Hi all,


I have a smart object with the following method:[SourceCode.SmartObjects.Services.ServiceSDK.Attributes.Method("ArchiveFile",MethodType.Execute,"Archive File","...",new string[] { "MyId" },new string[] { "MyId" },new string[] { })]



public void ArchiveFile([SourceCode.SmartObjects.Services.ServiceSDK.Attributes.Parameter("MyFile", SoType.File, "MyFile", "")] object MyFile) { ...}



When calling the method through the Smart Object Event in the process I get the following error message: Unable to cast object of type 'SourceCode.SmartObjects.Client.SmartParameter' to type 'SourceCode.SmartObjects.Client.SmartFileProperty'


Any ideas?


Thanks

Be the first to reply!

Reply