M
Matt
I am receiving the following error from the simple script below. This works
fine from a .NET form but when I access the dll from a Classic ASP page it
fails.
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument: 'GetGroups'
Dim oUser 'As mnaSecurityUser
Dim oDBAdapter 'As mnasecurityDBAdapter
Dim group 'As mnasecurityGroup
Set oUser = Server.CreateObject("mnaSecurityControl.mnasecurityUser")
Set oDBAdapter =
Server.CreateObject("mnaSecurityControl.mnasecurityDBAdapter")
Set oUser = oDBAdapter.GetUser("mamarsha")
'This works ok
Response.Write "'" & oUser.FirstName & "'"
'This line returns the error
Set oUser.Groups = oDBAdapter.GetGroups(oUser)
For each group in oUser.Groups
Response.Write "'" & group.name & "'"
Next
GetGroups is a method that accepts an mnasecurityUser object as a parameter.
Groups (in oUser.Groups) is a collection object property of the
mnasecurityUser object.
fine from a .NET form but when I access the dll from a Classic ASP page it
fails.
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument: 'GetGroups'
Dim oUser 'As mnaSecurityUser
Dim oDBAdapter 'As mnasecurityDBAdapter
Dim group 'As mnasecurityGroup
Set oUser = Server.CreateObject("mnaSecurityControl.mnasecurityUser")
Set oDBAdapter =
Server.CreateObject("mnaSecurityControl.mnasecurityDBAdapter")
Set oUser = oDBAdapter.GetUser("mamarsha")
'This works ok
Response.Write "'" & oUser.FirstName & "'"
'This line returns the error
Set oUser.Groups = oDBAdapter.GetGroups(oUser)
For each group in oUser.Groups
Response.Write "'" & group.name & "'"
Next
GetGroups is a method that accepts an mnasecurityUser object as a parameter.
Groups (in oUser.Groups) is a collection object property of the
mnasecurityUser object.