RE: Can't create application in Authorization Manager

From: Reza (Reza_at_discussions.microsoft.com)
Date: 04/29/05

  • Next message: Sudhakar Govindavajhala: "How to get the file ACLs in C++ ?"
    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.
    >


  • Next message: Sudhakar Govindavajhala: "How to get the file ACLs in C++ ?"

    Relevant Pages

    • RE: Cant create application in Authorization Manager
      ... > I've tried this in C# and also in a basic VBScript on two different ... The first machine is ... > Dim AzMan ... > Dim App ...
      (microsoft.public.platformsdk.security)
    • Re: Sending email with attachments
      ... Give it a valid username and password. ... Private Sub SendEmail(ByVal Path As String, ByVal Too As String, ... Dim SendMessage As New SmtpClient ... Dim App As Attachment ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Sending email with attachments
      ... Private Sub SendEmail(ByVal Path As String, ByVal Too As String, ... Optional ByVal Body As String = "") ... Dim SendMessage As New SmtpClient ... Dim App As Attachment ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Sending email with attachments
      ... Private Sub SendEmail(ByVal Path As String, ByVal Too As String, ... Optional ByVal Body As String = "") ... Dim SendMessage As New SmtpClient ... Dim App As Attachment ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Save a file to SharePoint
      ... Dim APP As Excel.Application ... xlApp.Workbooks.SaveAs buildsavedest ... SaveFile is parsed, as such: ...
      (microsoft.public.excel.programming)