![]() |
Custom Action Error
I'm trying to make a custom action, and when it runs i get this error
Unable to convert property ServerName (value: asgard) to Boolean Its a c# action, but i don't think its getting to my actual code in the dll. Here is my action file. i can provide the c# code if needed. I'm trying to make a custom action to start and stop vmware virtual servers. Bitmap="NETAction.bmp"> Description="VMWare GSX Server Name" Width="200"> Description="GSX Login Name" Width="200"> Description="GSX Password" Width="200"> Description="Virtual Machine Name" Width="200"> Description="Virtual Machine Action" Width="200" DefaultValue="1"> |
It looks like the error is happening in your custom action when calling
step.get_ExpProperty(builder, "ServerName", (short)VarEnum.VT_BOOL) The ExpProperty method attempts to convert the property value to the type specified in the 3rd parameter, and that will fail for a value that isn't numeric or True/False. I suspect that you don't actually want to change the server name to boolean, so using VarEnum.VT_BSTR instead should work. |
thanks i'll give that a go...
was actually using VT_LPSTR... |
All times are GMT -5. The time now is 08:27 PM. |
Copyright © 1999-2023 Kinook Software, Inc.