asp.net - Asp redirects to Login even though Request.IsAuthenticated = true (using windows authentication) -
i have webapplication, have running in wan in lan. same code runs in separate web apps. in wan have configured use forms authentication. works seamlessly. lan app configured use windows authentication.
what happens now, website says "hello domain\testuser" shows, that
- request.isauthenticated must true
- user.identity.name set correct user
however: i'm finding myself on "account/login" page. clarification: login page using general layout-template performs 'request.isauthenticated' mentioned above.
my question: why being redirected login page, when authentication evidently succeeded? , do make work? :)
this, guess crucial part of configuration:
<system.web> <authentication mode="windows"> <forms loginurl="~/account/login" timeout="2880" /> </authentication> <membership defaultprovider="simplemembershipprovider"> <providers> <clear /> <add name="simplemembershipprovider" type="webmatrix.webdata.simplemembershipprovider, webmatrix.webdata" /> </providers> </membership> </system.web>
the iis web app setup windows authentication enabled , other methods of authentication disabled.
(i'm using asp.net mvc 4)
encountered before , have compare local iis deployment, project runs fine, of deployed on server. turns out there dlls that should not have been deployed. scenario though bit different yours. project working on local machine not on lan environment. files needed removed:
- webmatrix.data.dll
- webmatrix.webdata.dll
i hope it's same case yours, 1 hard deployment issue catch.
Comments
Post a Comment