Error while running Install Certificate Script
Dear all,
I have encountered a problem while running the VB script for installing certificate. I does not have this problem when I try to install it on a laptop. However, this problem comes when I try to create the cardspace environment in a virtual machine using VMware.
The error message is "The security ID structure is invalid."
The error code is 80070539.
When i try zoom in into the script. It was found that the error is triggered by a line the VB-Script-Library.vbs
'Adds a READ ACL for a user on a file
sub AddReadACL( resource, user )
dim oADsSecurityUtility, oSD, oDacl, oAce
set oADsSecurityUtility = CreateObject("ADsSecurityUtility")
set oSD = oADsSecurityUtility.GetSecurityDescriptor(resource, ADS_PATH_FILE, ADS_SD_FORMAT_IID)
set oDacl = oSD.DiscretionaryAcl
set oAce = CreateObject("AccessControlEntry")
oAce.Trustee = user
oAce.AccessMask = ADS_RIGHT_GENERIC_READ
oAce.AceType = ADS_ACETYPE_ACCESS_ALLOWED
oAce.AceFlags = ADS_ACEFLAG_INHERIT_ACE + 1
oDacl.AddAce(oAce)
oSD.DiscretionaryAcl = oDacl
oADsSecurityUtility.SetSecurityDescriptor resource , ADS_PATH_FILE, oSD, ADS_SD_FORMAT_IID
'MsgBox("ACL Added for " & user& " using resource " & resource)
end sub
The error is triggered by the red colored line of code. It seems that when it is trying the set the permission, the instruction fails.
As a result, the client aren't able to access the web pages running with C# scripts. If not, is there any way to set the permission manually? I try to set the IIS 5 to run scripts and executables, but it still fails.
Please help me.
Your help is greatly appreciated. Thanks.
Ronghwa

