Sunday, 15 July 2012

c# - Why doesn't this SSRS Windows authentication work? -



c# - Why doesn't this SSRS Windows authentication work? -

i have ssrs express 2012, sql express 2012 db , asp.net 4.5 application , in same box.the application uses

forms authentication

. in ssrs gave admin rights user

ntauthority/iusr

the web.config of web app, ssrs web service , ssrs study manager have <authentication mode="windows" /> , <identity impersonate="true" /> the service business relationship

local system

the authentication types in rsreportserver.config <rswindowsnegotiate /> , <rswindowskerberos /> , <rswindowsntlm /> in iis 7, web site has asp.net impersonation , windows authentication enabled, others disabled the database uses windows authentication. have created login called

ntauthority/iusr

and given login, rights database used

when run study application error

the effort connect study server failed. check connection info , study server compatible version. anonymous identity cannot perform impersonation

the study viewer in asp.net has code follows

public class reportcredentials : ireportservercredentials { public bool getformscredentials(out cookie authcookie, out string username, out string password, out string authority) { authcookie = null; username = null; password = null; authorization = null; homecoming false; } public windowsidentity impersonationuser { { homecoming (windowsidentity)httpcontext.current.user.identity; } } public icredentials networkcredentials { { homecoming null; } } }

c# asp.net .net sql-server reporting-services

No comments:

Post a Comment