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..

Comments

Popular posts from this blog

Error when Installing SQL Server 2008 R2 Management Studio

Windows 7 and GoToMyPC - Configure the Domain Group Policy to allow GoToMyPC to send Ctrl-Alt-Del

Technical Team Lead Interview Questions