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
- namespace ErrorDemo {
- class Program {
- static void Main(string[] args) {
- const int AZ_AZSTORE_FLAG_CREATE = 0x01;
- IAzAuthorizationStore store = new AzAuthorizationStoreClass();
- store.Initialize(AZ_AZSTORE_FLAG_CREATE, args[0], null);
- store.Submit(0, null);
- }
- }
- }
Thanks for any Hints!
Christoph