Roles from ASP.NET to COM+
Hi,
I wish to keep my users and roles in a database and use forms authentication to check the credentials of the user. If the credentials are OK, I wish to create a new GenericPrincipal and assign role names based on the users roles stored in the database. I then assign the new GenericPrincipal to the Context.User.
I was then hoping that calls into .NET assemblies in COM+ would pick up on the callers roles that were set against the GenericPrincipal in my ASP.NET page. The roles used in COM+ match those of the database. But COM+ detects machinename/ASPNET as the identity, not that of the GenericPrincipal, and errors with 'Access Denied'.
I have set basic and windows authentication 'off', and anonymous to 'on'. COM+ has 'Enforce access checks' and 'Perform checks at Process and Component Level'.
Does anyone know how to get the Principal I have set on my ASP.NET logon page to authenticate through to COM+? Any answers much appreciated.
Cheers,
RC