Wednesday, March 7, 2012

Error in FormAuthentication

I'm using Microsoft Forms Authentication sample to implement custom security
extension. Everything works fine except the following:
(1) After i registerd the user ,i cannot log into the Report Manager.It is
saying like
"The request failed with HTTP status 401: Access Denied."
(2) But with the same username and password i am entering into the
Reportserver
I set the credentials in Reference.cs as
public ReportingService()
{
this.Credentials = new
System.Net.NetworkCredential("username","password","Domain");
this.Url = "http://localhost/reportserver/reportservice.asmx";
}
And the logfile saying like
CantCommunicateWithReportServerException: Unable to communicate with report
server. Please verify that the report server is operational.
at Microsoft.ReportingServices.UI.RSWebServiceWrapper.GetSecureMethods()
at Microsoft.SqlServer.ReportingServices.RSConnection.IsSecureMethod(String
methodname)
at Microsoft.ReportingServices.UI.Global.SecureAllAPI()
at Microsoft.ReportingServices.UI.ReportingPage.EnsureHttpsLevel(HttpsLevel
level)
at Microsoft.ReportingServices.UI.ReportingPage.ReportingPage_Init(Object
sender, EventArgs args)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain()
aspnet_wp!ui!134!2/22/2005-11:18:01:: e ERROR: Exception in ShowErrorPage:
System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
at at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
could anybody tell me in which file possibly wrong?
Thanks,
simmiIf you are using Forms Authentication you have to log on using LogOnUser
(see my post to your other post).
--
Adrian M.
MCP
"simmi" <simmi@.discussions.microsoft.com> wrote in message
news:8DEC1F92-5E7B-445B-B07C-79A20F0A02BD@.microsoft.com...
> I'm using Microsoft Forms Authentication sample to implement custom
> security
> extension. Everything works fine except the following:
> (1) After i registerd the user ,i cannot log into the Report Manager.It is
> saying like
> "The request failed with HTTP status 401: Access Denied."
> (2) But with the same username and password i am entering into the
> Reportserver
> I set the credentials in Reference.cs as
> public ReportingService()
> {
> this.Credentials = new
> System.Net.NetworkCredential("username","password","Domain");
> this.Url = "http://localhost/reportserver/reportservice.asmx";
> }
>
> And the logfile saying like
> CantCommunicateWithReportServerException: Unable to communicate with
> report
> server. Please verify that the report server is operational.
> at Microsoft.ReportingServices.UI.RSWebServiceWrapper.GetSecureMethods()
> at
> Microsoft.SqlServer.ReportingServices.RSConnection.IsSecureMethod(String
> methodname)
> at Microsoft.ReportingServices.UI.Global.SecureAllAPI()
> at
> Microsoft.ReportingServices.UI.ReportingPage.EnsureHttpsLevel(HttpsLevel
> level)
> at Microsoft.ReportingServices.UI.ReportingPage.ReportingPage_Init(Object
> sender, EventArgs args)
> at System.EventHandler.Invoke(Object sender, EventArgs e)
> at System.Web.UI.Control.OnInit(EventArgs e)
> at System.Web.UI.Control.InitRecursive(Control namingContainer)
> at System.Web.UI.Page.ProcessRequestMain()
> aspnet_wp!ui!134!2/22/2005-11:18:01:: e ERROR: Exception in ShowErrorPage:
> System.Threading.ThreadAbortException: Thread was being aborted.
> at System.Threading.Thread.AbortInternal()
> at System.Threading.Thread.Abort(Object stateInfo)
> at System.Web.HttpResponse.End()
> at System.Web.HttpServerUtility.Transfer(String path, Boolean
> preserveForm)
> at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String
> errMsg)
> at at System.Threading.Thread.AbortInternal()
> at System.Threading.Thread.Abort(Object stateInfo)
> at System.Web.HttpResponse.End()
> at System.Web.HttpServerUtility.Transfer(String path, Boolean
> preserveForm)
> at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String
> errMsg)
>
> could anybody tell me in which file possibly wrong?
> Thanks,
> simmi
>

No comments:

Post a Comment