AzMan non-admin problem under Win XP

AzMan non-admin problem under Win XP

am 10.10.2006 20:16:26 von v_gorunov

Hello All,

I have a problem with AzMan under Windows XP.
On my web site I use AzMan/AD role management. Store installed on Win
2003 SP1 server, but site works under WinXP SP2.

For IIS identity domain account with non-admin’s privileges is used.

In this case the error occurs: "The parameter is incorrect. (Exception
from HRESULT: 0x80070057 (E_INVALIDARG))" when page is loaded or after
role checking (Roles.IsUserInRole(User.Identity.Name, "Administrator")).
But if I add domain account to local Administrators group - everything
works correctly.

We face this problem only if site runs under Win XP. If site runs under
Win 2003 – it is ok.

It is forbidden to run the site under administrator. How could this
problem be resolved? Do you have an insight on this?

I used microsoft sample from :

http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/dnpag2/
html/PAGHT000018.asp?_r=1

with following web.config:


connectionString="msldap://server:50000/CN=AzManADAMStore,OU =SecNetParti
tion,O=SecNet,C=US" />








enabled="true"
cacheRolesInCookie="false"
defaultProvider="RoleManagerAzManADAMProvider"
cookieName=".ASPXROLES"
cookiePath="/"
cookieTimeout="1"
cookieRequireSSL="false"
cookieSlidingExpiration="false"
createPersistentCookie="false"
cookieProtection="None">

type="System.Web.Security.AuthorizationStoreRoleProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
publicKeyToken=b03f5f7f11d50a3a"
connectionStringName="AzManADAMServer"
applicationName="iHomeOwner"
/>



*** Sent via Developersdex http://www.developersdex.com ***

Re: AzMan non-admin problem under Win XP

am 10.10.2006 20:30:07 von reb01501

Vovan.Net Net wrote:
> with following web.config:

There was no way for you to know it (except maybe by browsing through
some of the previous questions before posting yours - always a
recommended practice), but this is a classic asp newsgroup. ASP.Net is
a different technology from classic ASP. While you may be lucky enough
to find a dotnet-savvy person here who can answer your question, you
can eliminate the luck factor by posting your question to a newsgroup
where the dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.
There are also forums at www.asp.net where you can find a lot of people
to help you.

HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.