473,406 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Authorization Manager (AzMan) COMException

Hello

I'trying to get AzMan running on Windows XP SP2. I wrote a small app that creates an xml-store. It works perfectly if I install the Windows 2003 Administrotion Tools Pack before running the application. However, I wondered if its possible to get this running by only installing the runtime library, eg no Gui and stuff (I wouldn't need it on a client anyway). I tried with the Windows 2000 Authorization Manager Runtime, but no luck. The following error occurs:

C:\ErrorDemo\ErrorDemo\bin\Release>ErrorDemo.exe msxml://c:\teststore.xml

Unbehandelte Ausnahme: System.Runtime.InteropServices.COMException (0x80040154):
Klasse nicht registriert (Ausnahme von HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG
))
bei Microsoft.Interop.Security.AzRoles.AzAuthorization StoreClass.Initialize(I
nt32 lFlags, String bstrPolicyURL, Object varReserved)
bei ErrorDemo.Program.Main(String[] args) in C:\VC_Projects\ErrorDemo\ErrorDe
mo\Program.cs:Zeile 11.

The following code produces this error:
Expand|Select|Wrap|Line Numbers
  1. namespace ErrorDemo {
  2.     class Program {
  3.         static void Main(string[] args) {
  4.             const int AZ_AZSTORE_FLAG_CREATE = 0x01;
  5.             IAzAuthorizationStore store = new AzAuthorizationStoreClass();
  6.             store.Initialize(AZ_AZSTORE_FLAG_CREATE, args[0], null);
  7.             store.Submit(0, null);
  8.         }
  9.     }
  10. }
The Microsoft.Interop.Security.AzRoles.dll is in the same directory as the exe-File that I'm trying to run.

Thanks for any Hints!
Christoph
Feb 20 '07 #1
1 3092
kenobewan
4,871 Expert 4TB
Apparently the key is to include the OU, e.g.
msldap://localhost:389/CN=AuthorizationStore,OU=Users,O=MyOrganization
Do you have a msldap or other connection?
Feb 22 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: John Lee | last post by:
Hi, Could someone help me on one issue regarding to Authorization Manager (AzMan)? Thanks in advance!!! I first open the AD based azMan store and an application, everything seems work fine...
2
by: John Lee | last post by:
Hi, Could someone help me on one issue regarding to Authorization Manager (AzMan)? Thanks in advance!!! I first open the AD based azMan store and an application, everything seems work fine...
1
by: Renzo | last post by:
Hi, I Have a web application that uses IIS 6.0 URL Authorization and AzMan to control access to URLs based on custom user roles. In some pages there is a custom web control that uses an...
1
by: Michael Herman \(Parallelspace\) | last post by:
In the thread below from microsoft.public.windows.server.active_directory, Joe Kaplan point out there is a ActiveDirectoryMembershipProvider for AD but there doesn't appear to be an AD/ADAM...
0
by: MS Newsgroups | last post by:
Hi, Does anyone have a sample on how to perform a access check with Azman in VB ..net ? . I have created a Application Store and defined a application, tasks, operations and roles. I have...
4
by: sklett | last post by:
I have been doing some initial research for authentication and authorization options for our next round of apps. I found an article in MSDN magazine that involved using MS Authorization Manager...
0
by: Geordie | last post by:
Authorization Manager was introduced with Windows 2003 and is currently version 1.0. I have not been able to find any indication that a new version of this tool is on the drawing boards. Does...
1
by: adcomjbrown | last post by:
I am new to AzMan, but it seems as though what I am looking for is not possible, but I wanted to get some feedback. I have a set of Service Methods which I want to secure each method with a single...
0
by: SpaceMarine | last post by:
hello, for my ASP.NET 2.0 intranet apps i am using integrated windows authentication. for my RoleManager i am using the microsoft System.Web.Security.AuthorizationStoreRoleProvider. this uses a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.