ASP.NET security error -
iam trying work set property value in iis 6.0 api , getting security error: access denied. (exception hresult: 0x80070005 (e_accessdenied)) on line: path.commitchanges();
this code:
function test() '-- dim metabasepath string dim propertyname string dim newvalue string '-- dim path directoryentry dim propvalues propertyvaluecollection '--
'set iis path metabasepath = "iis://localhost/w3svc/1/root/image" ' propertyname = "path" newvalue = "d:\royshoa" path = new directoryentry(metabasepath) propvalues = path.properties(propertyname) propvalues.clear() propvalues.add(newvalue) path.commitchanges() response.write(propvalues.value)
end function
thanks, roy shoa.
Comments
Post a Comment