I'm using protocol transition to create user accounts in an ASP.NET context.
The login seems to be working ok, but I'm getting a nasty security exception
"Attempted to perform an unauthorized operation" (see stacktrace).
I get the same error message in the debugger when I quick watch
httpcontext.current.user.identity, AuthenticationType property (it's a
WindowsIdentity with name=CONTOSO\Administrator and IsAuthenticated=True).
----------------------------------------------------------
Attempted to perform an unauthorized operation.
at System.Security.Principal.WindowsIdentity.get_AuthenticationType()
at System.Web.HttpRequest.CalcDynamicServerVariable(DynamicServerVariable
var)
at System.Web.HttpServerVarsCollectionEntry.GetValue(HttpRequest request)
at System.Web.HttpServerVarsCollection.GetServerVar(Object e)
at System.Web.HttpServerVarsCollection.Get(Int32 index)
at System.Web.HttpServerVarsCollection.GetValues(Int32 index)
at
System.Collections.Specialized.NameValueCollection.Add(NameValueCollection c)
at System.Web.HttpRequest.FillInParamsCollection()
at System.Web.HttpRequest.GetParams()
at System.Web.HttpRequest.get_Params()
----------------------------------------------------------------
Re: strange security errors with protocol transition
Check that your have permission to login! I would ask this on the ASP.NET
group!
--
http://www.goldwatches.com/mens/cufflinks.html http://www.jewelerslounge.com/
"Iain Mcleod" <IainMcleod@discussions.microsoft.com> wrote in message
news:0BE1CFD3-BD3E-48F3-9EFD-5ACBAB7B57C8@microsoft.com...
> Hi
>
> I'm using protocol transition to create user accounts in an ASP.NET
> context.
> The login seems to be working ok, but I'm getting a nasty security
> exception
> "Attempted to perform an unauthorized operation" (see stacktrace).
> I get the same error message in the debugger when I quick watch
> httpcontext.current.user.identity, AuthenticationType property (it's a
> WindowsIdentity with name=CONTOSO\Administrator and IsAuthenticated=True).
>
>
> ----------------------------------------------------------
> Attempted to perform an unauthorized operation.
> at System.Security.Principal.WindowsIdentity.get_AuthenticationType()
> at
> System.Web.HttpRequest.CalcDynamicServerVariable(DynamicServerVariable
> var)
> at System.Web.HttpServerVarsCollectionEntry.GetValue(HttpRequest
> request)
> at System.Web.HttpServerVarsCollection.GetServerVar(Object e)
> at System.Web.HttpServerVarsCollection.Get(Int32 index)
> at System.Web.HttpServerVarsCollection.GetValues(Int32 index)
> at
> System.Collections.Specialized.NameValueCollection.Add(NameValueCollection
> c)
> at System.Web.HttpRequest.FillInParamsCollection()
> at System.Web.HttpRequest.GetParams()
> at System.Web.HttpRequest.get_Params()
> ----------------------------------------------------------------
>
> Any ideas anyone?
>
> Thanks
> Iain Mcleod
>
>
>
>
Re: strange security errors with protocol transition
Thanks James. I'll repost to the ASP.NET group.
If a solution comes up I'll update this thread with the answer.
Cheers
Iain
"James Matthews" wrote:
> Check that your have permission to login! I would ask this on the ASP.NET
> group!
>
> --
>
> http://www.goldwatches.com/mens/cufflinks.html
> http://www.jewelerslounge.com/
> "Iain Mcleod" <IainMcleod@discussions.microsoft.com> wrote in message
> news:0BE1CFD3-BD3E-48F3-9EFD-5ACBAB7B57C8@microsoft.com...
> > Hi
> >
> > I'm using protocol transition to create user accounts in an ASP.NET
> > context.
> > The login seems to be working ok, but I'm getting a nasty security
> > exception
> > "Attempted to perform an unauthorized operation" (see stacktrace).
> > I get the same error message in the debugger when I quick watch
> > httpcontext.current.user.identity, AuthenticationType property (it's a
> > WindowsIdentity with name=CONTOSO\Administrator and IsAuthenticated=True).
> >
> >
> > ----------------------------------------------------------
> > Attempted to perform an unauthorized operation.
> > at System.Security.Principal.WindowsIdentity.get_AuthenticationType()
> > at
> > System.Web.HttpRequest.CalcDynamicServerVariable(DynamicServerVariable
> > var)
> > at System.Web.HttpServerVarsCollectionEntry.GetValue(HttpRequest
> > request)
> > at System.Web.HttpServerVarsCollection.GetServerVar(Object e)
> > at System.Web.HttpServerVarsCollection.Get(Int32 index)
> > at System.Web.HttpServerVarsCollection.GetValues(Int32 index)
> > at
> > System.Collections.Specialized.NameValueCollection.Add(NameValueCollection
> > c)
> > at System.Web.HttpRequest.FillInParamsCollection()
> > at System.Web.HttpRequest.GetParams()
> > at System.Web.HttpRequest.get_Params()
> > ----------------------------------------------------------------
> >
> > Any ideas anyone?
> >
> > Thanks
> > Iain Mcleod
> >
> >
> >
> >
>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.