Calling a asp.net object from asp, returns Invalid procedure call or argument
I had to pass an object from asp to asp.net component but every time it returned an
'Invalid procedure call or argument:object name'
I found that when passing objects from asp to .net components use the below method :
oObject.Save(oObjectToBeSaved, errMsg) -- returned error message
oObject.Save((oObjectToBeSaved), errMsg) -- works successfully.
Also, the .net componenet which accepts parameters should have its signature set as ByRef..
'Invalid procedure call or argument:object name'
I found that when passing objects from asp to .net components use the below method :
oObject.Save(oObjectToBeSaved, errMsg) -- returned error message
oObject.Save((oObjectToBeSaved), errMsg) -- works successfully.
Also, the .net componenet which accepts parameters should have its signature set as ByRef..
Comments