Azman Help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 2 questions,
first, when i use Azman to create application store in C#, why it always
says at the first run that "System.UnauthorizedAccessException". However, the
xml storage is correctly created and nothing seems wrong when I open MMC to
see its content. In the second and third run, there are no such exception.
But I wonder how that can happen? I am using Windows XP Prof.

the code snippet declaring application store looks like as follows:

try
{
store = new AzAuthorizationStoreClass();
store.Initialize(1, @"msxml://c:\xml\library.xml", null);
store.Submit(0,null);
}
catch(COMException e)
{
Console.WriteLine("Store already exists");
}
catch(Exception e)
{
Console.WriteLine(e.Message);

}

store.Initialize(2, @"msxml://c:\xml\library.xml", null);

try
{
app2 = store.CreateApplication("library", null);
app2.Submit(0,null);
}
catch(COMException e)
{
Console.WriteLine("Application Already Exists");

}


Another question is how to define more than 3 level hierarchical roles into
AzMan? Are they all defined into roles or something else? How to represent
relationships? I know one kind of method is to define task and set
isroledefinition attribute into true. However, when I use such method
programmatically I can not see more than 3 level hierarchical representation
in Azman MMC. Any one can share some hint on this? Thanks
 
Sorry, you'll need to find a more appropriate newsgroup to ask this
question.

This newsgroup is for questions about security in Access, the database
product that's part of Office Professional.
 
Back
Top