PC Review


Reply
 
 
=?Utf-8?B?V2VpZGUgWmhhbmc=?=
Guest
Posts: n/a
 
      17th Jun 2005
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
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      17th Jun 2005
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.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Weide Zhang" <(E-Mail Removed)> wrote in message
news:8F7C3B76-03BD-428D-937C-(E-Mail Removed)...
>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



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AzMan headeach Smith Microsoft ASP .NET 0 30th Mar 2007 11:55 AM
AzMan API and Examples Sachin Microsoft ASP .NET 1 25th Jan 2006 12:07 PM
AzMan !!!! cesar.degollado@gmail.com Microsoft Dot NET 0 24th Jan 2006 06:12 PM
AzMan !!! cesar.degollado@gmail.com Microsoft ASP .NET 0 24th Jan 2006 06:11 PM
PIA for Azman? Geoff Anderson Microsoft C# .NET 1 3rd Jun 2004 10:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:58 AM.