RE: Can't create application in Authorization Manager
From: Reza (Reza_at_discussions.microsoft.com)
Date: 04/29/05
- Previous message: Paul Lamoreux: "Re: Missing Microsoft Enhanced Cryptographic Provider"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 29 Apr 2005 10:53:17 -0700
Hi
After creating application you should write App.Submit
Likewise after creating operation you say op_create.Submit
Regards
Reaz
"phillip" wrote:
> I'm trying to create a new authorization policy store using the AzMan
> API, but I keep getting an error after adding an application and
> trying to create an operation:
>
> "The operation could not be performed because the object's parent is
> either uninstantiated or deleted."
>
> I've tried this in C# and also in a basic VBScript on two different
> machines. I still keep getting the same error. The first machine is
> a Windows 2K SP4 machine and the second is a Windows XP Pro SP1.
>
> Here's the VBScript, and maybe you can tell me what's wrong:
>
> Option Explicit
>
> Dim AzMan
> Dim App
> Dim tlb, guid
> Dim op_create, op_read, op_update, op_delete
>
> guid = "{509666E4-34E5-490b-922E-D1E4AB2F202C}"
>
> Set AzMan = CreateObject("Azroles.AzAuthorizationStore")
> AzMan.Initialize 1+2+4,
> "msxml://C:\WorkflowSecurityPolicy.xml"AzMan.Submit
> Set App = AzMan.CreateApplication(guid)
> AzMan.Submit
> Set op_create = App.CreateOperation("Create")
> op_create.OperationID = 1
> AzMan.Submit
> Set op_read = App.CreateOperation("Read")
> op_read.OperationID = 2
> AzMan.Submit
> Set op_update = App.CreateOperation("Update")
> op_update.OperationID = 3
> AzMan.Submit
> Set op_delete = App.CreateOperation("Delete")
> op_delete.OperationID = 4
> AzMan.Submit
>
> I've changed this around as many ways as possible, but I'm still
> getting the error on the first CreateOperation() call. TIA.
>
- Previous message: Paul Lamoreux: "Re: Missing Microsoft Enhanced Cryptographic Provider"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|