AzMan problems -- InvalidCastException

From: Robert Ginsburg (robert.ginsburg_at_ver3.com)
Date: 04/06/05


Date: Wed, 6 Apr 2005 06:38:26 -0400

I cannot find a newgroup dedicated to AzMan so if anyone has any ideas on
where else to go, I would appreciate the recomendation. On to my problem, I
have built a windows service that makes decisions based on AzMan roles and
operations. Client requests come in over .NET remoting. I am having problems
with the authorization manager store and application objects. If I create
the store and open the application for every request, it all works. However
I would like to open the store object and the application when the service
cranks up and use those objects to open client contexts (sounds like it
would perform better, but to date it just breaks) . When I try to do this, I
almost always get an interop error the error is "InvalidCastException
calling any method on the IAzApplication. (System.InvalidCastException:
QueryInterface for interface
Microsoft.Interop.Security.AzRoles.IAzApplication failed).". If I run the
exact same code in a winforms applicaitno, the calls work fine. I am pretty
sure I am hitting a threading problem here (see note below), but cant seem
to figure it out

Thanks in advance for any ideas or advice

-Robert

p.s. I have found a similar discussion on
http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-interop/1590/InvalidCastException-Using-AzMan-from-ASP-NET,
but no resolution



Relevant Pages

  • AzMan threading problems
    ... I cannot find a newgroup dedicated to AzMan so if anyone has any ideas on ... Client requests come in over .NET remoting. ... the store and open the application for every request, ... almost always get an interop error the error is "InvalidCastException ...
    (microsoft.public.dotnet.security)
  • Re: AzMan problems -- InvalidCastException
    ... In case any of you are interested, the AzMan object is not actually STA, it ... but it does correctly keep user az client context ... > the store and open the application for every request, ... > almost always get an interop error the error is "InvalidCastException ...
    (microsoft.public.platformsdk.security)
  • Re: AzMan threading problems
    ... In case any of you are interested, the AzMan object is not actually STA, it ... but it does correctly keep user az client context ... >create the store and open the application for every request, ... I almost always get an interop error the error is ...
    (microsoft.public.dotnet.security)
  • Re: Using local AzMan XML store from Win32 Service
    ... but what does IIRC stand for? ... However, to host the AzMan store in AD, you must have ... Windows Server 20003 --- at least that's what I remember. ... >> XML store from a process running as a Win32 service. ...
    (microsoft.public.dotnet.security)
  • Re: Azman Help
    ... This newsgroup is for questions about security in Access, ... > the code snippet declaring application store looks like as follows: ... > Another question is how to define more than 3 level hierarchical roles ... > AzMan? ...
    (microsoft.public.access.security)