regulardude
Programmer
Having a little hiccup trying to get Forms Authentication working with SSRS.
Got the Forms Login and registered the user, but now I get an error when I try to login.
Tried debuging but didn't help much.
Here is the error:
Server Error in '/Reports' Application.
--------------------------------------------------------------------------------
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
Source Error:
Line 125: catch(Exception ex)
Line 126: {
Line 127: lblMessage.Text = string.Format(CultureInfo.InvariantCulture, ex.Message); ;
Line 128: return;
Line 129: }
Source File: C:\Program Files\Microsoft SQL Server\90\Samples\Reporting Services\Extension Samples\FormsAuthentication Sample\cs\FormsAuthentication\UILogon.aspx.cs Line: 127
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.Text.StringBuilder.FormatError() +54
System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args) +2835092
System.String.Format(IFormatProvider provider, String format, Object[] args) +93
ReportingServices.CustomSecurity.UILogon.BtnLogon_Click(Object sender, EventArgs e) in C:\Program Files\Microsoft SQL Server\90\Samples\Reporting Services\Extension Samples\FormsAuthentication Sample\cs\FormsAuthentication\UILogon.aspx.cs:127
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Got the Forms Login and registered the user, but now I get an error when I try to login.
Tried debuging but didn't help much.
Here is the error:
Server Error in '/Reports' Application.
--------------------------------------------------------------------------------
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
Source Error:
Line 125: catch(Exception ex)
Line 126: {
Line 127: lblMessage.Text = string.Format(CultureInfo.InvariantCulture, ex.Message); ;
Line 128: return;
Line 129: }
Source File: C:\Program Files\Microsoft SQL Server\90\Samples\Reporting Services\Extension Samples\FormsAuthentication Sample\cs\FormsAuthentication\UILogon.aspx.cs Line: 127
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.Text.StringBuilder.FormatError() +54
System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args) +2835092
System.String.Format(IFormatProvider provider, String format, Object[] args) +93
ReportingServices.CustomSecurity.UILogon.BtnLogon_Click(Object sender, EventArgs e) in C:\Program Files\Microsoft SQL Server\90\Samples\Reporting Services\Extension Samples\FormsAuthentication Sample\cs\FormsAuthentication\UILogon.aspx.cs:127
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42